From: Eric Anholt Date: Tue, 16 Sep 2014 23:02:27 +0000 (-0700) Subject: vc4: Allow dead code elimination of instructions that read uniforms. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44b8eb743d644d2839fad12911fd6330414d22e3;p=mesa.git vc4: Allow dead code elimination of instructions that read uniforms. --- diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index 216abb37828..69152e79dda 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -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; }