[Mesa-dev] [PATCH 2/2] nir: Don't try to scalarize unpack ops.

Eric Anholt eric at anholt.net
Mon Aug 3 16:36:21 PDT 2015


---
 src/glsl/nir/nir_lower_alu_to_scalar.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/glsl/nir/nir_lower_alu_to_scalar.c b/src/glsl/nir/nir_lower_alu_to_scalar.c
index 5d15fb2..96c84e8 100644
--- a/src/glsl/nir/nir_lower_alu_to_scalar.c
+++ b/src/glsl/nir/nir_lower_alu_to_scalar.c
@@ -100,6 +100,12 @@ lower_alu_instr_scalar(nir_alu_instr *instr, void *mem_ctx)
        */
       return;
 
+   case nir_op_unpack_unorm_4x8:
+      /* There is no scalar version of this op, unless we were to break it
+       * down to bitshifts and math (which is definitely not intended).
+       */
+      return;
+
       LOWER_REDUCTION(nir_op_fdot, nir_op_fmul, nir_op_fadd);
       LOWER_REDUCTION(nir_op_ball_fequal, nir_op_feq, nir_op_iand);
       LOWER_REDUCTION(nir_op_ball_iequal, nir_op_ieq, nir_op_iand);
-- 
2.1.4



More information about the mesa-dev mailing list