Skip to content

Commit fe1590d

Browse files
author
Ewan Crawford
authored
Fix incorrect command-buffer error case (#804)
`clEnqueueCommandBufferKHR()` currently has an error case defined as * `CL_INVALID_COMMAND_QUEUE` if *command_queue* is not a valid command-queue. However there is no parameter named `command_queue` in `clEnqueueCommandBufferKHR()`, only `queues` and `num_queues`. This patch updates the error condition to reflect this and return the error code if any queue in the `queues` list is not a valid command-queue.
1 parent 774114e commit fe1590d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ext/cl_khr_command_buffer.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,8 @@ execution was successfully queued, or one of the errors below:
733733
* `CL_INVALID_VALUE` if _num_queues_ is > 0 and not the same value as
734734
_num_queues_ set on _command_buffer_ creation.
735735

736-
* `CL_INVALID_COMMAND_QUEUE` if _command_queue_ is not a valid command-queue.
736+
* `CL_INVALID_COMMAND_QUEUE` if any element of _queues_ is not a valid
737+
command-queue.
737738

738739
* `CL_INCOMPATIBLE_COMMAND_QUEUE_KHR` if any element of _queues_ is not
739740
<<compatible, compatible>> with the command-queue set on _command_buffer_

0 commit comments

Comments
 (0)