mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
anv/nir: Fix codegen in lower_push_constants
This commit is contained in:
parent
abede04314
commit
06f466a770
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ lower_push_constants_block(nir_block *block, void *void_state)
|
|||
for (unsigned i = 0; i < intrin->num_components; i++)
|
||||
mov->src[0].swizzle[i] = i + shift;
|
||||
mov->dest.write_mask = (1 << intrin->num_components) - 1;
|
||||
nir_ssa_dest_init(&intrin->instr, &intrin->dest,
|
||||
nir_ssa_dest_init(&mov->instr, &mov->dest.dest,
|
||||
intrin->num_components, NULL);
|
||||
|
||||
nir_ssa_def_rewrite_uses(&intrin->dest.ssa,
|
||||
|
|
@ -79,6 +79,7 @@ lower_push_constants_block(nir_block *block, void *void_state)
|
|||
|
||||
/* Stomp the number of components to 4 */
|
||||
intrin->num_components = 4;
|
||||
intrin->dest.ssa.num_components = 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue