From: Alyssa Rosenzweig Date: Thu, 19 Mar 2020 03:12:23 +0000 (-0400) Subject: pan/bi: Flesh out BI_BLEND X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4fb88723e74041b53d3dddda5b08f3ec94510b6;p=mesa.git pan/bi: Flesh out BI_BLEND It ingests the output of ATEST, whatever that actually is. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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);