From: Timothy Arceri Date: Wed, 5 Aug 2015 10:27:24 +0000 (+1000) Subject: nir: add missing type to type_size_vec4() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c61d583f8c931fc9834dd852b1c960c95acefb5;p=mesa.git nir: add missing type to type_size_vec4() Reviewed-by: Iago Toral Quiroga --- diff --git a/src/glsl/nir/nir_lower_io.c b/src/glsl/nir/nir_lower_io.c index 3c179299bd9..71bfd347c1a 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: