From 26f8b3a7e87d46166f686da2b87905c753c3e789 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Wed, 11 Jun 2025 09:46:31 -0700 Subject: [PATCH] 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. --- test_conformance/spirv_new/test_spirv_14.cpp | 2 ++ test_conformance/spirv_new/test_spirv_16.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test_conformance/spirv_new/test_spirv_14.cpp b/test_conformance/spirv_new/test_spirv_14.cpp index 6a643dfc..6fc5e864 100644 --- a/test_conformance/spirv_new/test_spirv_14.cpp +++ b/test_conformance/spirv_new/test_spirv_14.cpp @@ -97,6 +97,7 @@ REGISTER_TEST(spirv14_image_operand_signextend) log_info("SPIR-V 1.4 not supported; skipping tests.\n"); return TEST_SKIPPED_ITSELF; } + PASSIVE_REQUIRE_IMAGE_SUPPORT(device); 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"); return TEST_SKIPPED_ITSELF; } + PASSIVE_REQUIRE_IMAGE_SUPPORT(device); return test_image_operand_helper(device, context, queue, false); } diff --git a/test_conformance/spirv_new/test_spirv_16.cpp b/test_conformance/spirv_new/test_spirv_16.cpp index 9c9b05a5..2e5dd0de 100644 --- a/test_conformance/spirv_new/test_spirv_16.cpp +++ b/test_conformance/spirv_new/test_spirv_16.cpp @@ -29,6 +29,8 @@ REGISTER_TEST(spirv16_image_operand_nontemporal) return TEST_SKIPPED_ITSELF; } + PASSIVE_REQUIRE_IMAGE_SUPPORT(device); + cl_int error = CL_SUCCESS; clProgramWrapper prog;