mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
api: Allow vendor flags (#957)
Mask off vendor extensions when querying host command queue properties.
This commit is contained in:
committed by
GitHub
parent
7fd87c704a
commit
90b57a2d7a
@@ -119,6 +119,11 @@ int test_get_command_queue_info_compatibility(cl_device_id deviceID, cl_context
|
||||
clGetDeviceInfo(deviceID, CL_DEVICE_QUEUE_PROPERTIES, sizeof(device_props), &device_props, NULL);
|
||||
log_info("CL_DEVICE_QUEUE_PROPERTIES is %d\n", (int)device_props);
|
||||
|
||||
// Mask off vendor extension properties. Only test standard OpenCL
|
||||
// properties
|
||||
device_props &=
|
||||
CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE;
|
||||
|
||||
clCommandQueueWrapper queue = clCreateCommandQueue( context, deviceID, device_props, &error );
|
||||
test_error( error, "Unable to create command queue to test with" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user