diff options
author | Eric Anholt <[email protected]> | 2014-09-07 14:42:33 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-09 20:38:38 -0700 |
commit | 04faeff28a4a9c1bad2b0c72befe5456cf950a6e (patch) | |
tree | 31780a9400d8e34fc5d04a7196ad6b0349e2a289 /src/gallium | |
parent | 5679ccfcaf8221cc1252e3214e182085dd850d33 (diff) |
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.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_opt_cse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_opt_cse.c b/src/gallium/drivers/vc4/vc4_opt_cse.c index bc91218370c..a9b5fda3764 100644 --- a/src/gallium/drivers/vc4/vc4_opt_cse.c +++ b/src/gallium/drivers/vc4/vc4_opt_cse.c @@ -173,7 +173,7 @@ qir_opt_cse(struct vc4_compile *c) } } - if (qir_reads_r4(inst)) + if (qir_writes_r4(inst)) r4_count++; } |