mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
nir/lower_vars_to_ssa: return early if there is no local variables to lower
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38367>
This commit is contained in:
parent
18b99338b7
commit
11fb6c30b3
1 changed files with 4 additions and 0 deletions
|
|
@ -793,6 +793,10 @@ rename_variables(struct lower_variables_state *state)
|
|||
static bool
|
||||
nir_lower_vars_to_ssa_impl(nir_function_impl *impl)
|
||||
{
|
||||
/* Nothing to do... */
|
||||
if (exec_list_is_empty(&impl->locals))
|
||||
return nir_no_progress(impl);
|
||||
|
||||
struct lower_variables_state state;
|
||||
|
||||
state.shader = impl->function->shader;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue