Mesa (master): vc4: Allow dead code elimination of instructions that read uniforms.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Sep 17 21:31:06 UTC 2014
Module: Mesa
Branch: master
Commit: 44b8eb743d644d2839fad12911fd6330414d22e3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=44b8eb743d644d2839fad12911fd6330414d22e3
Author: Eric Anholt <eric at anholt.net>
Date: Tue Sep 16 16:02:27 2014 -0700
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 216abb3..69152e7 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;
}
More information about the mesa-commit
mailing list