mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user