From 6478a4de14d368bf85ba3477d73fd1bd91067e86 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Tue, 30 Nov 2010 23:28:43 +0100 Subject: r300g: fix texture swizzling with compressed textures on r400-r500 This fixes all S3TC piglit/texwrap tests. NOTE: This is a candidate for the 7.9 branch. --- src/gallium/drivers/r300/r300_texture.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r300/r300_texture.h') diff --git a/src/gallium/drivers/r300/r300_texture.h b/src/gallium/drivers/r300/r300_texture.h index c4588a0c90..fe9d35146c 100644 --- a/src/gallium/drivers/r300/r300_texture.h +++ b/src/gallium/drivers/r300/r300_texture.h @@ -35,11 +35,13 @@ struct r300_texture; struct r300_screen; unsigned r300_get_swizzle_combined(const unsigned char *swizzle_format, - const unsigned char *swizzle_view); + const unsigned char *swizzle_view, + boolean dxtc_swizzle); uint32_t r300_translate_texformat(enum pipe_format format, const unsigned char *swizzle_view, - boolean is_r500); + boolean is_r500, + boolean dxtc_swizzle); uint32_t r500_tx_format_msb_bit(enum pipe_format format); -- cgit v1.2.3