nir: add missing type to type_size_vec4()
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 5 Aug 2015 10:27:24 +0000 (20:27 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 5 Aug 2015 11:16:45 +0000 (21:16 +1000)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/nir/nir_lower_io.c

index 3c179299bd976ce172db3d7d44c1f0e8330f516f..71bfd347c1affd254ce67dd6107ac7da26549e61 100644 (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: