add missing image support checks to a few SPIR-V tests (#2411)

The tests for new image operands should not run on devices that do not
support images.
This commit is contained in:
Ben Ashbaugh
2025-06-11 09:46:31 -07:00
committed by GitHub
parent b79a8a2f42
commit 26f8b3a7e8
2 changed files with 4 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ REGISTER_TEST(spirv14_image_operand_signextend)
log_info("SPIR-V 1.4 not supported; skipping tests.\n"); log_info("SPIR-V 1.4 not supported; skipping tests.\n");
return TEST_SKIPPED_ITSELF; return TEST_SKIPPED_ITSELF;
} }
PASSIVE_REQUIRE_IMAGE_SUPPORT(device);
return test_image_operand_helper(device, context, queue, true); return test_image_operand_helper(device, context, queue, true);
} }
@@ -107,6 +108,7 @@ REGISTER_TEST(spirv14_image_operand_zeroextend)
log_info("SPIR-V 1.4 not supported; skipping tests.\n"); log_info("SPIR-V 1.4 not supported; skipping tests.\n");
return TEST_SKIPPED_ITSELF; return TEST_SKIPPED_ITSELF;
} }
PASSIVE_REQUIRE_IMAGE_SUPPORT(device);
return test_image_operand_helper(device, context, queue, false); return test_image_operand_helper(device, context, queue, false);
} }

View File

@@ -29,6 +29,8 @@ REGISTER_TEST(spirv16_image_operand_nontemporal)
return TEST_SKIPPED_ITSELF; return TEST_SKIPPED_ITSELF;
} }
PASSIVE_REQUIRE_IMAGE_SUPPORT(device);
cl_int error = CL_SUCCESS; cl_int error = CL_SUCCESS;
clProgramWrapper prog; clProgramWrapper prog;