From a4fb88723e74041b53d3dddda5b08f3ec94510b6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 18 Mar 2020 23:12:23 -0400 Subject: [PATCH] pan/bi: Flesh out BI_BLEND It ingests the output of ATEST, whatever that actually is. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index e19f0961e9b..0755d1313fc 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -147,14 +147,20 @@ bi_emit_frag_out(bi_context *ctx, nir_intrinsic_instr *instr) .type = BI_BLEND, .blend_location = nir_intrinsic_base(instr), .src = { + BIR_INDEX_REGISTER | 60 /* Can this be arbitrary? */, bir_src_index(&instr->src[0]) }, .src_types = { + nir_type_uint32, nir_type_float32, }, .swizzle = { + { 0 }, { 0, 1, 2, 3 } - } + }, + .dest = BIR_INDEX_REGISTER | 48 /* Looks like magic */, + .dest_type = nir_type_uint32, + .writemask = 0xF }; bi_emit(ctx, blend); -- 2.30.2