diff options
author | Eric Anholt <[email protected]> | 2015-06-23 18:08:49 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-06-23 18:40:50 -0700 |
commit | 997f6778414a352457162b73ff5295e51e09ad63 (patch) | |
tree | e42f1f674daf176a35029c1f483c3a5c352e31de | |
parent | 0f69d59b1c8f5314c1abe18659b96adcfc51a0e5 (diff) |
vc4: Don't try to CSE color reads.
It returns a new value for each sample in the TLB. We've already avoided
trying to get the same index's color multiple times at the vc4_program.c
level, so we're not losing anything by doing this.
-rw-r--r-- | src/gallium/drivers/vc4/vc4_opt_cse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_cse.c b/src/gallium/drivers/vc4/vc4_opt_cse.c index 92c8260eb59..51a56504e5e 100644 --- a/src/gallium/drivers/vc4/vc4_opt_cse.c +++ b/src/gallium/drivers/vc4/vc4_opt_cse.c @@ -130,7 +130,8 @@ qir_opt_cse(struct vc4_compile *c) list_for_each_entry(struct qinst, inst, &c->instructions, link) { if (qir_has_side_effects(c, inst) || - qir_has_side_effect_reads(c, inst)) { + qir_has_side_effect_reads(c, inst) || + inst->op == QOP_TLB_COLOR_READ) { continue; } |