mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
v3d: Use the original bit size when scalarizing uniform loads.
Prevents a regression in jekstrand's 1-bit series. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
91a0251dbc
commit
2977c77758
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,8 @@ v3d_nir_lower_uniform(struct v3d_compile *c, nir_builder *b,
|
|||
nir_intrinsic_instr *intr_comp =
|
||||
nir_intrinsic_instr_create(c->s, intr->intrinsic);
|
||||
intr_comp->num_components = 1;
|
||||
nir_ssa_dest_init(&intr_comp->instr, &intr_comp->dest, 1, 32, NULL);
|
||||
nir_ssa_dest_init(&intr_comp->instr, &intr_comp->dest, 1,
|
||||
intr->dest.ssa.bit_size, NULL);
|
||||
|
||||
/* Convert the uniform offset to bytes. If it happens
|
||||
* to be a constant, constant-folding will clean up
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue