mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 17:28:19 +02:00
glsl: don't lower inputs to temps unconditionally
It's done later in nir_lower_io_passes only for shader stages not supporting indirect access. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35945>
This commit is contained in:
parent
9083e8b984
commit
1124587495
1 changed files with 1 additions and 3 deletions
|
|
@ -1327,9 +1327,7 @@ preprocess_shader(const struct gl_constants *consts,
|
|||
NIR_PASS(_, nir, gl_nir_zero_initialize_clip_distance);
|
||||
|
||||
NIR_PASS(_, nir, nir_lower_io_vars_to_temporaries,
|
||||
nir_shader_get_entrypoint(nir), true,
|
||||
nir->info.stage == MESA_SHADER_VERTEX ||
|
||||
nir->info.stage == MESA_SHADER_GEOMETRY);
|
||||
nir_shader_get_entrypoint(nir), true, false);
|
||||
|
||||
NIR_PASS(_, nir, nir_lower_global_vars_to_local);
|
||||
NIR_PASS(_, nir, nir_split_var_copies);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue