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>
.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);