mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
nir/lower_io_arrays: Fix xfb_offset bug
I noticed this once I started gathering xfb_info after nir_lower_io_arrays_to_elements_no_indirect. Fixes:b2bbd978d0("nir: fix lowering arrays to elements for XFB outputs") Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6514> (cherry picked from commit5a88db682e)
This commit is contained in:
parent
30b256c21e
commit
e1f6000b54
2 changed files with 2 additions and 2 deletions
|
|
@ -211,7 +211,7 @@
|
|||
"description": "nir/lower_io_arrays: Fix xfb_offset bug",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "b2bbd978d0b1c85919c6f3b5f631b3c6cbaaaf8a"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ get_io_offset(nir_builder *b, nir_deref_instr *deref, nir_variable *var,
|
|||
unsigned size = glsl_count_attribute_slots((*p)->type, false);
|
||||
offset += size * index;
|
||||
|
||||
xfb_offset += index * glsl_get_component_slots((*p)->type) * 4;
|
||||
*xfb_offset += index * glsl_get_component_slots((*p)->type) * 4;
|
||||
|
||||
unsigned num_elements = glsl_type_is_array((*p)->type) ?
|
||||
glsl_get_aoa_size((*p)->type) : 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue