From: Henri Verbeet Date: Sat, 27 Nov 2010 16:29:56 +0000 (+0100) Subject: r600g: Fix the PIPE_FORMAT_A8_UNORM color swap for Evergreen as well. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6ea4c0e8a6aa84a590ae63da3eb06c08c7356ed;p=mesa.git r600g: Fix the PIPE_FORMAT_A8_UNORM color swap for Evergreen as well. --- 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: