Skip to content

Commit

Permalink
cl_khr_command_buffer_mutable_dispatch: fix incorrect logic in Skip c…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
franz committed Oct 17, 2024
1 parent d483aa1 commit fd357b4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
virtual bool Skip() override
{
Version device_version = get_device_cl_version(device);
if (InfoMutableCommandBufferTest::Skip())
return true;
if ((device_version >= Version(3, 0))
|| is_extension_available(device, "cl_khr_extended_versioning"))
{
Expand All @@ -132,7 +134,7 @@ struct PropertiesArray : public InfoMutableCommandBufferTest
return true;
}
}
return InfoMutableCommandBufferTest::Skip();
return false;
}

cl_int Run() override
Expand Down

0 comments on commit fd357b4

Please sign in to comment.