nir/spirv: Claim support for SampleRateShading
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 14 Sep 2016 04:09:28 +0000 (21:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Sep 2016 12:39:06 +0000 (05:39 -0700)
We already support all of the decorations that require this capability.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/spirv/spirv_to_nir.c

index 49338b2..04add3e 100644 (file)
@@ -2449,6 +2449,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvCapabilityDerivativeControl:
       case SpvCapabilityInterpolationFunction:
       case SpvCapabilityMultiViewport:
+      case SpvCapabilitySampleRateShading:
          break;
 
       case SpvCapabilityClipDistance:
@@ -2468,7 +2469,6 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvCapabilityImageGatherExtended:
       case SpvCapabilityStorageImageMultisample:
       case SpvCapabilityImageCubeArray:
-      case SpvCapabilitySampleRateShading:
       case SpvCapabilityInt8:
       case SpvCapabilityInputAttachment:
       case SpvCapabilitySparseResidency: