mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
nir: add support for counting AoA uniforms in nir_shader_gather_info()
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
c3b8bf9bc9
commit
6b82e957be
1 changed files with 2 additions and 2 deletions
|
|
@ -295,8 +295,8 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
|
|||
const struct glsl_type *type = var->type;
|
||||
unsigned count = 1;
|
||||
if (glsl_type_is_array(type)) {
|
||||
count = glsl_get_length(type);
|
||||
type = glsl_get_array_element(type);
|
||||
count = glsl_get_aoa_size(type);
|
||||
type = glsl_without_array(type);
|
||||
}
|
||||
|
||||
if (glsl_type_is_image(type)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue