ctx->callback = callback;
ctx->robust_modes = robust_modes;
- nir_index_vars(shader, NULL, modes);
+ nir_shader_index_vars(shader, modes);
nir_foreach_function(function, shader) {
if (function->impl) {
if (modes & nir_var_function_temp)
- nir_index_vars(shader, function->impl, nir_var_function_temp);
+ nir_function_impl_index_vars(function->impl);
nir_foreach_block(block, function->impl)
progress |= process_block(function->impl, ctx, block);