pan/bi: Fix missing src_types
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 12 Mar 2020 01:45:32 +0000 (21:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 12:41:08 +0000 (12:41 +0000)
We want types to be consistent throughout the IR so we don't have to
make exceptions to parse things out. These cases just got missed.

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

src/panfrost/bifrost/bifrost_compile.c

index 5b42b3ccd4e455d0dcc4a1b354c80eeaded8e26d..0195940cda0e68900a50a9dd55c7652fd641bcf4 100644 (file)
@@ -125,6 +125,9 @@ bi_emit_frag_out(bi_context *ctx, nir_intrinsic_instr *instr)
                 .src = {
                         bir_src_index(&instr->src[0])
                 },
+                .src_types = {
+                        nir_type_float32,
+                },
                 .swizzle = {
                         { 0, 1, 2, 3 }
                 }
@@ -148,6 +151,10 @@ bi_emit_st_vary(bi_context *ctx, nir_intrinsic_instr *instr)
                         address.dest,
                         bir_src_index(&instr->src[0])
                 },
+                .src_types = {
+                        nir_type_uint64,
+                        nir_type_uint32
+                },
                 .swizzle = {
                         { 0 },
                         { 0, 1, 2, 3 }