From: Eric Anholt Date: Sun, 7 Sep 2014 21:42:33 +0000 (-0700) Subject: vc4: The r4_count is supposed to be how many writes, not reads. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04faeff28a4a9c1bad2b0c72befe5456cf950a6e;p=mesa.git 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. --- 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++; }