vc4: Allow dead code elimination of instructions that read uniforms.
authorEric Anholt <eric@anholt.net>
Tue, 16 Sep 2014 23:02:27 +0000 (16:02 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 17 Sep 2014 21:21:24 +0000 (14:21 -0700)
src/gallium/drivers/vc4/vc4_qir.c

index 216abb37828cac952384f08db502ce37a759b65b..69152e79dda15a1fb2c4a6d05bde3c2dfe4b4d87 100644 (file)
@@ -120,8 +120,7 @@ bool
 qir_has_side_effects(struct qinst *inst)
 {
         for (int i = 0; i < qir_get_op_nsrc(inst->op); i++) {
-                if (inst->src[i].file == QFILE_VARY ||
-                    inst->src[i].file == QFILE_UNIF)
+                if (inst->src[i].file == QFILE_VARY)
                         return true;
         }