pan/bi: Fix lower_combine swizzle rewrite
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 14 Apr 2020 22:51:55 +0000 (18:51 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 17 Apr 2020 20:25:35 +0000 (16:25 -0400)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4615>

src/panfrost/bifrost/bi_lower_combine.c

index 802955707288cfb31d63d0b267e9c53b5a164bbf..350f4a1cce06042d8a28d284ba24dde2a8c488f2 100644 (file)
@@ -96,7 +96,7 @@ bi_rewrite_uses(bi_context *ctx,
                         if (ins->src[s] != old) continue;
 
                         for (unsigned i = 0; i < 16; ++i)
-                                ins->swizzle[s][0] += (newc - oldc);
+                                ins->swizzle[s][i] += (newc - oldc);
 
                         ins->src[s] = new;
                 }