summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/meta.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-02-21 19:15:10 -0800
committerKenneth Graunke <[email protected]>2014-02-26 02:33:58 -0800
commitfe8f3bef31b91fe9296711e0f9dbf511ac9737bf (patch)
tree7951fa37c61e2161b49710978bb493d4107cec5f /src/mesa/drivers/common/meta.h
parentf896e82301255177894a6c51883e18d32c36b307 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
0 files changed, 0 insertions, 0 deletions