diff options
author | Eric Anholt <[email protected]> | 2014-09-16 16:02:27 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-17 14:21:24 -0700 |
commit | 44b8eb743d644d2839fad12911fd6330414d22e3 (patch) | |
tree | 6cc04c633348af2a57bff0580545f32d0fba005f /src | |
parent | 5e90ed79f670cc1c5c12c8b733d4591af0acb5ab (diff) |
vc4: Allow dead code elimination of instructions that read uniforms.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 3 |
1 files changed, 1 insertions, 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; } |