Mesa (master): spirv: Silence unsupported capability warnings for Clip/ CullDistance.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue Nov 22 08:30:36 UTC 2016


Module: Mesa
Branch: master
Commit: 536af43fe3fafc728a8a790692be197c38213721
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=536af43fe3fafc728a8a790692be197c38213721

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Oct  3 23:46:37 2016 -0700

spirv: Silence unsupported capability warnings for Clip/CullDistance.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/compiler/spirv/spirv_to_nir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 9c5d331..5ff09c9 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -2443,10 +2443,10 @@ vtn_handle_preamble_instruction(struct vtn_builder *b, SpvOp opcode,
       case SpvCapabilityInterpolationFunction:
       case SpvCapabilityMultiViewport:
       case SpvCapabilitySampleRateShading:
-         break;
-
       case SpvCapabilityClipDistance:
       case SpvCapabilityCullDistance:
+         break;
+
       case SpvCapabilityGeometryStreams:
       case SpvCapabilityTessellation:
       case SpvCapabilityTessellationPointSize:




More information about the mesa-commit mailing list