Skip to content

Commit 8fbdf2a

Browse files
committed
Fix up command-buffer enqueue error after PR-1382
KhronosGroup#1382 added support for deferring setting arguments on a kernel command which is updatable. To achieve this we added an extra command-buffer state, "Finalized" which is entered when a command-buffer has been finalized but doesn't yet have all it's arguments set. However, if a user tries to enqueue a command-buffer in this state it shouldn't be valid. Therefore update our current wording about when an command-buffer can be enqueued to say the specifically the executable state, rather than just after the finalization operation, which could result in the command-buffer being in either the finalization or executable state.
1 parent e22f577 commit 8fbdf2a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15135,7 +15135,8 @@ execution was successfully queued, or one of the errors below:
1513515135

1513615136
* {CL_INVALID_COMMAND_BUFFER_KHR} if _command_buffer_ is not a valid
1513715137
command-buffer.
15138-
* {CL_INVALID_OPERATION} if _command_buffer_ has not been finalized.
15138+
* {CL_INVALID_OPERATION} if _command_buffer_ is not in the
15139+
{CL_COMMAND_BUFFER_STATE_EXECUTABLE_KHR} state.
1513915140
* {CL_INVALID_VALUE} if _queues_ is `NULL` and _num_queues_ is > 0, or
1514015141
_queues_ is not `NULL` and _num_queues_ is 0.
1514115142
* {CL_INVALID_VALUE} if _num_queues_ is > 0 and not the same value as

0 commit comments

Comments
 (0)