summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-09-07 14:42:33 -0700
committerEric Anholt <[email protected]>2014-09-09 20:38:38 -0700
commit04faeff28a4a9c1bad2b0c72befe5456cf950a6e (patch)
tree31780a9400d8e34fc5d04a7196ad6b0349e2a289 /src/gallium/drivers/vc4
parent5679ccfcaf8221cc1252e3214e182085dd850d33 (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/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_opt_cse.c2
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++;
}