Skip to content

Commit c84629e

Browse files
committed
mutable_command_info: fix Skip logic in PropertiesArray test
the test uses CL_MUTABLE_DISPATCH_ARGUMENTS_KHR, but does not check for support.
1 parent a4a9493 commit c84629e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_info.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
125125
if ((device_version >= Version(3, 0))
126126
|| is_extension_available(device, "cl_khr_extended_versioning"))
127127
{
128-
129128
cl_version extension_version = get_extension_version(
130129
device, "cl_khr_command_buffer_mutable_dispatch");
131130

@@ -134,6 +133,16 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
134133
return true;
135134
}
136135
}
136+
137+
cl_mutable_dispatch_fields_khr mutable_capabilities;
138+
cl_int error = clGetDeviceInfo(
139+
device, CL_DEVICE_MUTABLE_DISPATCH_CAPABILITIES_KHR,
140+
sizeof(mutable_capabilities), &mutable_capabilities, nullptr);
141+
test_error(error, "clGetDeviceInfo failed");
142+
143+
if ((mutable_capabilities & CL_MUTABLE_DISPATCH_ARGUMENTS_KHR) == 0)
144+
return true;
145+
137146
return false;
138147
}
139148

0 commit comments

Comments
 (0)