Skip to content

st/glsl: fix broken vertex attrb mapping

Timothy Arceri requested to merge tarceri/mesa:fix_vs_input_mapping into main

Here we move the nir_get_single_slot_attribs_mask() call that sets the inputs_read mask after NIR optimisations have finished and after st_nir_assign_vs_in_locations() has been called.

Besides fixing a bug where the mappings would be missaligned if further NIR optimisations resulted in less inputs being read, it also allows us to drop an additional nir gather info call.

Fixes: 0909a57b ("radeonsi/nir: Set vs_inputs_dual_locations and let NIR do the remap") Closes: #6240 (closed)

Merge request reports