OSDN Git Service

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 216abb3..69152e7 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;
         }