Mesa (master): nir: add missing type to type_size_vec4()
Timothy Arceri
tarceri at kemper.freedesktop.org
Wed Aug 5 11:16:53 UTC 2015
Module: Mesa
Branch: master
Commit: 2c61d583f8c931fc9834dd852b1c960c95acefb5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c61d583f8c931fc9834dd852b1c960c95acefb5
Author: Timothy Arceri <t_arceri at yahoo.com.au>
Date: Wed Aug 5 20:27:24 2015 +1000
nir: add missing type to type_size_vec4()
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
---
src/glsl/nir/nir_lower_io.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/glsl/nir/nir_lower_io.c b/src/glsl/nir/nir_lower_io.c
index 3c17929..71bfd34 100644
--- a/src/glsl/nir/nir_lower_io.c
+++ b/src/glsl/nir/nir_lower_io.c
@@ -62,6 +62,8 @@ type_size_vec4(const struct glsl_type *type)
size += type_size_vec4(glsl_get_struct_field(type, i));
}
return size;
+ case GLSL_TYPE_SUBROUTINE:
+ return 1;
case GLSL_TYPE_SAMPLER:
return 0;
case GLSL_TYPE_ATOMIC_UINT:
More information about the mesa-commit
mailing list