It can't be inferred from the usual writemask since stores don't write
to a register destination.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
fprintf(fp, ".%s", bi_cond_name(ins->csel_cond));
else if (ins->type == BI_BLEND)
fprintf(fp, ".loc%u", ins->blend_location);
+ else if (ins->type == BI_STORE || ins->type == BI_STORE_VAR)
+ fprintf(fp, ".v%u", ins->store_channels);
if (ins->dest)
bi_print_alu_type(ins->dest_type, fp);
.swizzle = {
{ 0, 1, 2, 3 },
{ 0 }, { 1 }, { 2}
- }
+ },
+ .store_channels = 4, /* TODO: WRITEMASK */
};
bi_emit(ctx, address);
/* For BLEND -- the location 0-7 */
unsigned blend_location;
+
+ /* For STORE, STORE_VAR -- channel count */
+ unsigned store_channels;
};
} bi_instruction;