[command-buffer] Remove deleted enum (#1798)
The enum value `CL_COMMAND_BUFFER_STATE_INVALID_KHR` no longer exists: * https://github.com/KhronosGroup/OpenCL-Headers/pull/235 * https://github.com/KhronosGroup/OpenCL-Docs/pull/885 Replace variable initialization using this enum with a value where all the bits are set, requiring the runtime to write to it for the test to pass.
This commit is contained in:
parent
ddf46ca9e8
commit
df53e02a12
1 changed files with 1 additions and 2 deletions
|
|
@ -211,8 +211,7 @@ struct CommandBufferGetCommandBufferInfo : public BasicCommandBufferTest
|
|||
|
||||
// lambda to verify given state
|
||||
auto verify_state = [&](const cl_command_buffer_state_khr &expected) {
|
||||
cl_command_buffer_state_khr state =
|
||||
CL_COMMAND_BUFFER_STATE_INVALID_KHR;
|
||||
cl_command_buffer_state_khr state = ~cl_command_buffer_state_khr(0);
|
||||
|
||||
cl_int error = clGetCommandBufferInfoKHR(
|
||||
command_buffer, CL_COMMAND_BUFFER_STATE_KHR, sizeof(state),
|
||||
|
|
|
|||
Loading…
Reference in a new issue