Skip to content

Test mutable command-buffer deferred kernel arguments#2538

Merged
bashbaug merged 2 commits intoKhronosGroup:mainfrom
EwanC:cmd-buf_def_args
Nov 27, 2025
Merged

Test mutable command-buffer deferred kernel arguments#2538
bashbaug merged 2 commits intoKhronosGroup:mainfrom
EwanC:cmd-buf_def_args

Conversation

@EwanC
Copy link
Copy Markdown
Contributor

@EwanC EwanC commented Oct 7, 2025

Tests the scenario outlined in #2520 (comment) to verify the functionality added in OpenCL-Docs PR KhronosGroup/OpenCL-Docs#1382.

Closes #2520

Tests the scenario outlined in
KhronosGroup#2520 (comment)
to verify the functionality added in OpenCL-Docs PR
KhronosGroup/OpenCL-Docs#1382.

Note that this bumps the required cl_khr_command_buffer_mutable_dispatch
minor version by 2 because
KhronosGroup#2477 is not yet merged
which test the intermediate version.

This also assumes the proposed OpenCL-Docs change in
KhronosGroup/OpenCL-Docs#1471 is merged, as
the PR does a negative test for command-buffer enqueue while the
command-buffer is in the finalized state.

Closes KhronosGroup#2520
bashbaug
bashbaug previously approved these changes Nov 13, 2025
Copy link
Copy Markdown
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's going to be challenging to support the new FINALIZED state with the command buffer emulation layer, but these tests appear to be correct.

…nd_buffer_mutable_dispatch/mutable_command_defer_arguments.cpp

Co-authored-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
@bashbaug
Copy link
Copy Markdown
Contributor

Merging as discussed over email.

@bashbaug bashbaug merged commit 34e9bae into KhronosGroup:main Nov 27, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add a test case for setting kernel arguments before recording it in command buffer

2 participants