From c6ea4c0e8a6aa84a590ae63da3eb06c08c7356ed Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sat, 27 Nov 2010 17:29:56 +0100 Subject: [PATCH] r600g: Fix the PIPE_FORMAT_A8_UNORM color swap for Evergreen as well. --- src/gallium/drivers/r600/eg_state_inlines.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/eg_state_inlines.h b/src/gallium/drivers/r600/eg_state_inlines.h index b47ca5d62d3..ecea1db4f15 100644 --- a/src/gallium/drivers/r600/eg_state_inlines.h +++ b/src/gallium/drivers/r600/eg_state_inlines.h @@ -290,6 +290,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format) switch (format) { /* 8-bit buffers. */ case PIPE_FORMAT_A8_UNORM: + return V_028C70_SWAP_ALT_REV; case PIPE_FORMAT_I8_UNORM: case PIPE_FORMAT_L8_UNORM: case PIPE_FORMAT_R8_UNORM: -- 2.30.2