glsl: Swap the order of glsl_type::name and ::length
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 24 Oct 2014 20:08:06 +0000 (13:08 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 10 Nov 2014 12:25:40 +0000 (04:25 -0800)
commit9cdf66657a152ad7455db7018f39b7cb5445464d
tree311aa5e275fc320160108f03e85441d9c57ff410
parent3711abd780141b84a33f393446b05a6a385200d4
glsl: Swap the order of glsl_type::name and ::length

On x86-64 this saves 8 bytes of padding in the structure, and this
reduces the size of the structure to 32 bytes.

v2: Fix constructor so that GCC won't warn about the order of
initialization.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h