From 44b8eb743d644d2839fad12911fd6330414d22e3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 16 Sep 2014 16:02:27 -0700 Subject: [PATCH] vc4: Allow dead code elimination of instructions that read uniforms. --- src/gallium/drivers/vc4/vc4_qir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.30.2