Skip to content

Commit b67a8fd

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 9be6dc2 commit b67a8fd

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
@@ -124,7 +124,6 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
124124
if ((device_version >= Version(3, 0))
125125
|| is_extension_available(device, "cl_khr_extended_versioning"))
126126
{
127-
128127
cl_version extension_version = get_extension_version(
129128
device, "cl_khr_command_buffer_mutable_dispatch");
130129

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

0 commit comments

Comments
 (0)