pan/bi: Flesh out BI_BLEND

It ingests the output of ATEST, whatever that actually is.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4242>
This commit is contained in:
Alyssa Rosenzweig
2020-03-18 23:12:23 -04:00
committed by Marge Bot
parent e06426ea85
commit a4fb88723e
+7 -1
View File
@@ -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);