mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 10:58:15 +02:00
kk: Fix global_store writemask
Signed-off-by: Aitor Camacho <aitor@lunarg.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41849>
This commit is contained in:
parent
a5d34f85f8
commit
dc8f9c91c9
1 changed files with 5 additions and 2 deletions
|
|
@ -760,11 +760,12 @@ src_to_packed_store(struct nir_to_msl_ctx *ctx, nir_src *src,
|
|||
uint32_t num_components)
|
||||
{
|
||||
if (num_components == 1) {
|
||||
P_IND(ctx, "*(%s %s*)", addressing, type);
|
||||
P_IND(ctx, "(*(%s %s*)", addressing, type);
|
||||
} else {
|
||||
P_IND(ctx, "*(%s packed_%s*)", addressing, type);
|
||||
P_IND(ctx, "(*(%s packed_%s*)", addressing, type);
|
||||
}
|
||||
src_to_msl(ctx, src);
|
||||
P(ctx, ")");
|
||||
}
|
||||
|
||||
static const char *
|
||||
|
|
@ -1234,6 +1235,8 @@ intrinsic_to_msl(struct nir_to_msl_ctx *ctx, nir_intrinsic_instr *instr)
|
|||
P(ctx, " = ")
|
||||
src_to_packed(ctx, &instr->src[0], type,
|
||||
instr->src[0].ssa->num_components);
|
||||
writemask_to_msl(ctx, nir_intrinsic_write_mask(instr),
|
||||
instr->num_components);
|
||||
P(ctx, ";\n");
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue