meta: Use a #define for the vector type to avoid %svec4 everywhere.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Feb 2014 03:15:10 +0000 (19:15 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 26 Feb 2014 10:33:58 +0000 (02:33 -0800)
commitfe8f3bef31b91fe9296711e0f9dbf511ac9737bf
tree7951fa37c61e2161b49710978bb493d4107cec5f
parentf896e82301255177894a6c51883e18d32c36b307
meta: Use a #define for the vector type to avoid %svec4 everywhere.

By adding "#define gvec4 %svec4" to the top of our fragment shader, we
can write generic code without needing to specialize it to vec4, ivec4,
or uvec4 via asprintf.

This also makes the INT and UNSIGNED_INT merge function code identical,
so I combined those two cases.

It's not a big savings, but a little bit tidier.

v2: Rebase on Vinson's MSVC build fixes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/common/meta_blit.c