[Mesa-dev] [PATCH 1/2] nir/spirv: Claim support for SampleRateShading

Jason Ekstrand jason at jlekstrand.net
Wed Sep 14 04:26:54 UTC 2016


We already support all of the decorations that require this capability.

Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
---
 src/compiler/spirv/spirv_to_nir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 7e7a026..0c6743b 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -2448,6 +2448,7 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvCapabilityDerivativeControl:
       case SpvCapabilityInterpolationFunction:
       case SpvCapabilityMultiViewport:
+      case SpvCapabilitySampleRateShading:
          break;
 
       case SpvCapabilityClipDistance:
@@ -2467,7 +2468,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:
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list