Not only these are recalculated in nir_shader_gather_info, but
currently they are also counting all the images / textures in the
module instead of in the shader (entrypoint).
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8786>
}
b->shader->info.num_ssbos++;
break;
- case vtn_variable_mode_uniform:
- if (without_array->base_type == vtn_base_type_image) {
- if (glsl_type_is_image(without_array->glsl_image))
- b->shader->info.num_images++;
- else if (glsl_type_is_sampler(without_array->glsl_image))
- b->shader->info.num_textures++;
- }
- break;
case vtn_variable_mode_push_constant:
b->shader->num_uniforms =
glsl_get_explicit_size(without_array->type, false);