vc4: The r4_count is supposed to be how many writes, not reads.
authorEric Anholt <eric@anholt.net>
Sun, 7 Sep 2014 21:42:33 +0000 (14:42 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 10 Sep 2014 03:38:38 +0000 (20:38 -0700)
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

index bc91218370c771017c6cf9edb221751f8d0792d4..a9b5fda3764ab811c4002334d4538913c9c7ec28 100644 (file)
@@ -173,7 +173,7 @@ qir_opt_cse(struct vc4_compile *c)
                         }
                 }
 
-                if (qir_reads_r4(inst))
+                if (qir_writes_r4(inst))
                         r4_count++;
         }