nir: add missing type to type_size_vec4()

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Timothy Arceri 2015-08-05 20:27:24 +10:00
parent 03b7221dbb
commit 2c61d583f8
1 changed files with 2 additions and 0 deletions

View File

@ -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: