mesa/st: run the lower_opcodes pass for draw shaders

Fixes: 5eb0136a3c ("mesa/st: when creating draw shader variants, use the base nir and skip driver opts")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15304
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41302>
This commit is contained in:
Benjamin Cheng 2026-05-03 10:29:10 -04:00 committed by Marge Bot
parent a4a862a605
commit a989ca8c8f

View file

@ -815,6 +815,9 @@ st_create_common_variant(struct st_context *st,
state.ir.nir = get_nir_shader(st, prog, key->is_draw_shader);
const nir_shader_compiler_options *options = state.ir.nir->options;
if (key->is_draw_shader)
NIR_PASS(_, state.ir.nir, draw_nir_lower_opcodes);
if (key->clamp_color) {
NIR_PASS(_, state.ir.nir, nir_lower_clamp_color_outputs);
}