mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix test_api negative_set_read_write_image_arg. (#2510)
When the implementation does not have image support, the functions used are not required to be defined and the test should be skipped.
This commit is contained in:
@@ -807,6 +807,8 @@ REGISTER_TEST(negative_set_read_write_image_arg)
|
||||
constexpr cl_image_format format = { CL_RGBA, CL_UNSIGNED_INT8 };
|
||||
const int size_dim = 128;
|
||||
|
||||
PASSIVE_REQUIRE_IMAGE_SUPPORT(device);
|
||||
|
||||
// Setup the test
|
||||
error = create_single_kernel_helper(context, &program, nullptr, 2,
|
||||
test_kernels, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user