mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Check for image support
For SPIR-V tests which require image support, check that images are actually supported, otherwise skip these tests.
This commit is contained in:
committed by
Kévin Petit
parent
31a56be88c
commit
1a6c15bb5c
@@ -389,6 +389,7 @@ int test_image_decorate(cl_device_id deviceID,
|
||||
#define TEST_SPIRV_IMAGE_DECORATE(type) \
|
||||
TEST_SPIRV_FUNC(decorate_##type) \
|
||||
{ \
|
||||
PASSIVE_REQUIRE_IMAGE_SUPPORT(deviceID); \
|
||||
return test_image_decorate(deviceID, context, queue, \
|
||||
"decorate_" #type); \
|
||||
} \
|
||||
@@ -399,6 +400,7 @@ TEST_SPIRV_IMAGE_DECORATE(nonwritable)
|
||||
|
||||
TEST_SPIRV_FUNC(decorate_nonreadable)
|
||||
{
|
||||
PASSIVE_REQUIRE_IMAGE_SUPPORT(deviceID);
|
||||
const char *name = "decorate_nonreadable";
|
||||
const int width = 4096;
|
||||
const int height = 4096;
|
||||
|
||||
Reference in New Issue
Block a user