pan/bi: Passthrough type for ATEST
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 23 Apr 2020 23:03:44 +0000 (19:03 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 14:52:25 +0000 (14:52 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4766>

src/panfrost/bifrost/bifrost_compile.c

index a28308b53a0fd339d1941fe446c3b25e6de72b39..cdaf772709cb85bb622707491af476737bb00b17 100644 (file)
@@ -127,7 +127,7 @@ bi_emit_frag_out(bi_context *ctx, nir_intrinsic_instr *instr)
                         },
                         .src_types = {
                                 nir_type_uint32,
-                                nir_type_float32
+                                nir_intrinsic_type(instr)
                         },
                         .swizzle = {
                                 { 0 },
@@ -151,7 +151,7 @@ bi_emit_frag_out(bi_context *ctx, nir_intrinsic_instr *instr)
                         BIR_INDEX_REGISTER | 60 /* Can this be arbitrary? */,
                 },
                 .src_types = {
-                        nir_type_float32,
+                        nir_intrinsic_type(instr),
                         nir_type_uint32
                 },
                 .swizzle = {