Mesa (master): nir: add support for counting AoA uniforms in nir_shader_gather_info()
Timothy Arceri
tarceri at kemper.freedesktop.org
Thu Nov 17 01:53:24 UTC 2016
Module: Mesa
Branch: master
Commit: 6b82e957be216ab3c55e1567f8a1329432e61267
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b82e957be216ab3c55e1567f8a1329432e61267
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date: Thu Oct 27 19:13:05 2016 +1100
nir: add support for counting AoA uniforms in nir_shader_gather_info()
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
---
src/compiler/nir/nir_gather_info.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c
index 63c8a42..82452b4 100644
--- a/src/compiler/nir/nir_gather_info.c
+++ b/src/compiler/nir/nir_gather_info.c
@@ -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)) {
More information about the mesa-commit
mailing list