glsl/types: Make subroutine types have a single matrix column
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Sep 2015 22:19:49 +0000 (15:19 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 21:19:39 +0000 (14:19 -0700)
commitcd2132f45b8aba7a47502d864b51c11519b4a8f0
tree4012b86ffc29057a02d8778530a54fddd5df9f56
parenta7e0f755bcb626ed8f8ca773b7d193dd82364513
glsl/types: Make subroutine types have a single matrix column

That way, if we do the usual thing of multiplying vector_elements by
matrix_columns we get the actual number of components in the type as per
component_slots().

While we're at it, we also switch to using the actual C++ field
initializers for vector_elements and matrix_columns.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/glsl/glsl_types.cpp