Skip to content

Commit fccf1e0

Browse files
committed
cl_khr_command_buffer_mutable_dispatch: fix incorrect logic in Skip check
the test checks 'cl_khr_extended_versioning' then immediately calls: get_extension_version(device, "cl_khr_command_buffer_mutable_dispatch"); .. however, get_extension_version throws an exception when called with unsupported extension.
1 parent 10130a1 commit fccf1e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test_conformance/extensions/cl_khr_command_buffer/cl_khr_command_buffer_mutable_dispatch/mutable_command_info.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
120120
virtual bool Skip() override
121121
{
122122
Version device_version = get_device_cl_version(device);
123+
if (InfoMutableCommandBufferTest::Skip())
124+
return true;
123125
if ((device_version >= Version(3, 0))
124126
|| is_extension_available(device, "cl_khr_extended_versioning"))
125127
{
@@ -132,7 +134,7 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
132134
return true;
133135
}
134136
}
135-
return InfoMutableCommandBufferTest::Skip();
137+
return false;
136138
}
137139

138140
cl_int Run() override

0 commit comments

Comments
 (0)