pan/bi: Fix swizzle for second argument to ST_VARY
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 11 Mar 2020 19:17:25 +0000 (15:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 20:28:21 +0000 (20:28 +0000)
Off-by-one.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>

src/panfrost/bifrost/bifrost_compile.c

index 8124970b6e895423957ea6cb283b342cfa0070f6..5b42b3ccd4e455d0dcc4a1b354c80eeaded8e26d 100644 (file)
@@ -149,6 +149,7 @@ bi_emit_st_vary(bi_context *ctx, nir_intrinsic_instr *instr)
                         bir_src_index(&instr->src[0])
                 },
                 .swizzle = {
+                        { 0 },
                         { 0, 1, 2, 3 }
                 }
         };