mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 01:18:18 +02:00
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:
parent
a4a862a605
commit
a989ca8c8f
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue