Delete the variables so that ir3 thinks there are no samplers and
images instead.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5500>
progress |= lower_impl(function->impl, tu_shader, layout);
}
+ /* Remove now-unused variables so that when we gather the shader info later
+ * they won't be counted.
+ */
+ nir_remove_dead_variables(shader,
+ nir_var_uniform | nir_var_mem_ubo | nir_var_mem_ssbo,
+ NULL);
+
return progress;
}
if (ret)
return NULL;
- /* num_samp should be 0 for bindless, but we use it with blit shader */
- variant->num_samp = 0;
-
/* when assemble fails, we rely on tu_shader_destroy to clean up the
* variant
*/