glsl: Return correct number of coordinate components for cubemap array images.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 19 Nov 2014 16:22:07 +0000 (18:22 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 10 Feb 2015 13:49:43 +0000 (15:49 +0200)
commitc4111dfa0a54238510a0c6374d6eb421c296d64f
tree675b1dbb7c416d6bd54850543428ee7a597de812
parentfcc2fd53df2d57a335856ebd7e01878d7a0d4de2
glsl: Return correct number of coordinate components for cubemap array images.

Cubemap array images are unlike cubemap array samplers in that they don't need
an additional coordinate to index individual cubemaps in the array, instead
they behave like a 2D array of 6n layers, with n the number of cubemaps in the
array.  Take this exception into account.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_types.cpp