vc4: Fix register class handling of DDX/DDY arguments.
authorEric Anholt <eric@anholt.net>
Fri, 11 Nov 2016 22:04:42 +0000 (14:04 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 13 Nov 2016 02:46:35 +0000 (18:46 -0800)
I had this exactly backwards, but apparently the piglit tests were all
landing in r0-r3 anyway.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/vc4/vc4_register_allocate.c

index 6c99b054e9f2224a1292d1654ff5041bdf0503db..ab343ee3134409ba9603b18790cf41a5136d6113 100644 (file)
@@ -247,7 +247,7 @@ vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c)
 
                 case QOP_ROT_MUL:
                         assert(inst->src[0].file == QFILE_TEMP);
-                        class_bits[inst->src[0].index] &= ~CLASS_BIT_R0_R3;
+                        class_bits[inst->src[0].index] &= CLASS_BIT_R0_R3;
                         break;
 
                 default: