vc4: The r4_count is supposed to be how many writes, not reads.

It's part of the key so that you can tell which r4 value is being read.
This commit is contained in:
Eric Anholt 2014-09-07 14:42:33 -07:00
parent 5679ccfcaf
commit 04faeff28a

View file

@ -173,7 +173,7 @@ qir_opt_cse(struct vc4_compile *c)
}
}
if (qir_reads_r4(inst))
if (qir_writes_r4(inst))
r4_count++;
}