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.
This commit is contained in:
parent
0f69d59b1c
commit
997f677841
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue