fixes a warning and a typo in the mutable dispatch test (#2579)

Fixes a warning in the mutable dispatch test with some compilers:

```
3>C:\git\OpenCL-CTS\test_conformance\extensions\cl_khr_command_buffer\cl_khr_command_buffer_mutable_dispatch\mutable_command_basic.h(82,16): warning C4805: '==': unsafe mix of type 'int' and type 'bool' in operation
```

Also fixes a misspelled variable name while we're at it.
This commit is contained in:
Ben Ashbaugh
2025-11-18 15:06:57 -08:00
committed by GitHub
parent ec546b80c5
commit 02e99f4554

View File

@@ -76,12 +76,10 @@ struct BasicMutableCommandBufferTest : BasicCommandBufferTest
bool Skip() override
{
bool extension_avaliable =
is_extension_available(device,
"cl_khr_command_buffer_mutable_dispatch")
== true;
bool extension_available = is_extension_available(
device, "cl_khr_command_buffer_mutable_dispatch");
if (extension_avaliable)
if (extension_available)
{
Version device_version = get_device_cl_version(device);
if ((device_version >= Version(3, 0))
@@ -96,7 +94,7 @@ struct BasicMutableCommandBufferTest : BasicCommandBufferTest
log_info("cl_khr_command_buffer_mutable_dispatch version "
"0.9.4 is "
"required to run the test, skipping.\n ");
extension_avaliable = false;
extension_available = false;
}
}
}
@@ -109,7 +107,7 @@ struct BasicMutableCommandBufferTest : BasicCommandBufferTest
sizeof(mutable_capabilities), &mutable_capabilities, nullptr)
&& mutable_capabilities != 0;
return !mutable_support || !extension_avaliable
return !mutable_support || !extension_available
|| BasicCommandBufferTest::Skip();
}