pan/bi: Pass blend descriptor explicitly in IR
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 3 Aug 2020 16:48:25 +0000 (12:48 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 16 Sep 2020 20:05:34 +0000 (20:05 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6749>

src/panfrost/bifrost/bifrost_compile.c

index 3f08638..5519387 100644 (file)
@@ -156,6 +156,9 @@ bi_emit_frag_out(bi_context *ctx, nir_intrinsic_instr *instr)
                 .src = {
                         pan_src_index(&instr->src[0]),
                         BIR_INDEX_REGISTER | 60 /* Can this be arbitrary? */,
+                        /* Blend descriptor */
+                        BIR_INDEX_PASS | BIFROST_SRC_CONST_LO,
+                        BIR_INDEX_PASS | BIFROST_SRC_CONST_HI,
                 },
                 .src_types = {
                         nir_intrinsic_type(instr),