mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -76,12 +76,10 @@ struct BasicMutableCommandBufferTest : BasicCommandBufferTest
|
|||||||
|
|
||||||
bool Skip() override
|
bool Skip() override
|
||||||
{
|
{
|
||||||
bool extension_avaliable =
|
bool extension_available = is_extension_available(
|
||||||
is_extension_available(device,
|
device, "cl_khr_command_buffer_mutable_dispatch");
|
||||||
"cl_khr_command_buffer_mutable_dispatch")
|
|
||||||
== true;
|
|
||||||
|
|
||||||
if (extension_avaliable)
|
if (extension_available)
|
||||||
{
|
{
|
||||||
Version device_version = get_device_cl_version(device);
|
Version device_version = get_device_cl_version(device);
|
||||||
if ((device_version >= Version(3, 0))
|
if ((device_version >= Version(3, 0))
|
||||||
@@ -96,7 +94,7 @@ struct BasicMutableCommandBufferTest : BasicCommandBufferTest
|
|||||||
log_info("cl_khr_command_buffer_mutable_dispatch version "
|
log_info("cl_khr_command_buffer_mutable_dispatch version "
|
||||||
"0.9.4 is "
|
"0.9.4 is "
|
||||||
"required to run the test, skipping.\n ");
|
"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)
|
sizeof(mutable_capabilities), &mutable_capabilities, nullptr)
|
||||||
&& mutable_capabilities != 0;
|
&& mutable_capabilities != 0;
|
||||||
|
|
||||||
return !mutable_support || !extension_avaliable
|
return !mutable_support || !extension_available
|
||||||
|| BasicCommandBufferTest::Skip();
|
|| BasicCommandBufferTest::Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user