st/mesa: call nir_opt_intrinsics for the GL_SELECT shader

radeonsi may assert that this pass makes no progress. This is one place
that should call the pass.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38598>
This commit is contained in:
Marek Olšák 2025-11-22 16:52:58 -05:00
parent eea5959a22
commit 2ea30edc70

View file

@ -647,7 +647,8 @@ hw_select_create_gs(struct st_context *st, union state_key state)
UNREACHABLE("unexpected primitive");
}
nir_lower_returns(nir);
NIR_PASS(_, nir, nir_lower_returns);
NIR_PASS(_, nir, nir_opt_intrinsics);
return st_nir_finish_builtin_shader(st, nir);
}