meta: Eliminate samplers[] array in favor of using vec4_prefix.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Feb 2014 00:58:09 +0000 (16:58 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Feb 2014 03:18:07 +0000 (19:18 -0800)
commit6984a6be5cdb42fe668239abbc20995f5ee289a6
tree1a721c1f861a646edaeb1ebcfba4006ee439cdef
parent119aa50929d418a9f410d562b26aec8e1b2a482d
meta: Eliminate samplers[] array in favor of using vec4_prefix.

We don't need an array mapping the shader index to "sampler2DMS",
"isampler2DMS", and so on.  We can simply do "%ssampler2DMS" and pass in
vec4_prefix, which is "", "i", or "u".

This eliminates the use of C99 array initializers and should fix the
MSVC build.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75344
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta_blit.c