From be7407b75b12c70e1925c10117937ae2b9e6711f Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 2 Aug 2011 01:04:58 +0200 Subject: gallium/util: add functions for manipulating swizzles Some of those have been in drivers already. --- src/gallium/drivers/r300/r300_fs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r300/r300_fs.c') diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index a9fd3ad40dd..6f21125f70a 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -180,9 +180,10 @@ static void get_external_state( v->base.format == PIPE_FORMAT_LATC1_SNORM) { unsigned char swizzle[4]; - util_format_combine_swizzles(swizzle, + util_format_compose_swizzles( util_format_description(v->base.format)->swizzle, - v->swizzle); + v->swizzle, + swizzle); state->unit[i].texture_swizzle = RC_MAKE_SWIZZLE(swizzle[0], swizzle[1], -- cgit v1.2.3