From 04faeff28a4a9c1bad2b0c72befe5456cf950a6e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 7 Sep 2014 14:42:33 -0700 Subject: [PATCH] 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. --- src/gallium/drivers/vc4/vc4_opt_cse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.30.2