st/mesa: fix nir_load_per_vertex_input parameter

num_components should be 1 as we're loading an offset value.

Fixes: ec68f0492b ("st/mesa: switch GL_SELECT shader to IO intrinsics")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12774
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33982>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2025-03-10 15:07:33 +01:00
committed by Marge Bot
parent 68bbc87063
commit 770b5bc757
+1 -1
View File
@@ -391,7 +391,7 @@ update_result_buffer(nir_builder *b, nir_def *dmin, nir_def *dmax,
{
nir_def *offset;
if (offset_from_attribute) {
offset = nir_load_per_vertex_input(b, 4, 32, nir_imm_int(b, 0),
offset = nir_load_per_vertex_input(b, 1, 32, nir_imm_int(b, 0),
nir_imm_int(b, 0),
.io_semantics.location = VARYING_SLOT_VAR0);
} else {