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:
Timothy Arceri
2016-10-27 19:13:05 +11:00
parent c3b8bf9bc9
commit 6b82e957be

View File

@@ -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)) {