spirv: Add support for IntegerFunctions2INTEL capability
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Sep 2018 13:46:48 +0000 (06:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 00:18:57 +0000 (00:18 +0000)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>

src/compiler/shader_info.h
src/compiler/spirv/spirv_to_nir.c

index 136e71ce23428b265bfd07ed3ad50deb7ec2c749..cbc22d24636efc905a0171f1e712b6a462343822 100644 (file)
@@ -53,6 +53,7 @@ struct spirv_supported_capabilities {
    bool int16;
    bool int64;
    bool int64_atomics;
+   bool integer_functions2;
    bool kernel;
    bool min_lod;
    bool multiview;
index fc74ab661eefe0285df62e3856b2799b0717ac41..6df936b44f973b753f4522f82aaf14cc06f3f1bd 100644 (file)
@@ -4119,6 +4119,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
          spv_check_supported(amd_image_read_write_lod, cap);
          break;
 
+      case SpvCapabilityIntegerFunctions2INTEL:
+         spv_check_supported(integer_functions2, cap);
+         break;
+
       default:
          vtn_fail("Unhandled capability: %s (%u)",
                   spirv_capability_to_string(cap), cap);