mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 02:30:12 +01:00
r600/sfn: Fix setting alignments when lowering UBOs
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4609>
This commit is contained in:
parent
bc9cf6adff
commit
b51ced7306
1 changed files with 1 additions and 1 deletions
|
|
@ -412,7 +412,7 @@ r600_lower_ubo_to_align16_impl(nir_builder *b, nir_instr *instr, void *_options)
|
|||
load->num_components = const_address ? op->num_components : 4;
|
||||
load->src[0] = op->src[0];
|
||||
load->src[1] = nir_src_for_ssa(new_offset);
|
||||
nir_intrinsic_set_align(load, nir_intrinsic_align(op), nir_intrinsic_align_offset(op));
|
||||
nir_intrinsic_set_align(load, nir_intrinsic_align_mul(op), nir_intrinsic_align_offset(op));
|
||||
|
||||
nir_ssa_dest_init(&load->instr, &load->dest, load->num_components, 32, NULL);
|
||||
nir_builder_instr_insert(b, &load->instr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue