From 637deb0011afd05ccf2bb7672f6cf5831d6b24ae Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 7 Mar 2025 10:08:58 -0800 Subject: [PATCH] add missing Float16 capability (#2304) A recent improvement to the SPIR-V validator added checks to ensure the **Float16** capability is declared when directly operating on fp16 values, which identified issues in one of our SPIR-V test files. This PR fixes the SPIR-V files to add the missing capability. --- .../spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm32 | 1 + .../spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm64 | 1 + 2 files changed, 2 insertions(+) diff --git a/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm32 b/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm32 index 2195ebe8..fa95d0a5 100644 --- a/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm32 +++ b/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm32 @@ -5,6 +5,7 @@ ; Schema: 0 OpCapability Addresses OpCapability Kernel + OpCapability Float16 OpCapability Float16Buffer %1 = OpExtInstImport "OpenCL.std" OpMemoryModel Physical32 OpenCL diff --git a/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm64 b/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm64 index 47dc418a..eb4b897d 100644 --- a/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm64 +++ b/test_conformance/spirv_new/spirv_asm/op_spec_constant_half_simple.spvasm64 @@ -5,6 +5,7 @@ ; Schema: 0 OpCapability Addresses OpCapability Kernel + OpCapability Float16 OpCapability Float16Buffer %1 = OpExtInstImport "OpenCL.std" OpMemoryModel Physical64 OpenCL