From: Dave Airlie Date: Mon, 22 Nov 2010 06:03:00 +0000 (+1000) Subject: r600g: pick correct color swap for A8 fbos. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5aadf0d80e8c973ef5cf9d82e97f23f0e3c032b;p=mesa.git r600g: pick correct color swap for A8 fbos. This fixes fdo bug 31810. Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h index 1be5b156d35..781612af570 100644 --- a/src/gallium/drivers/r600/r600_state_inlines.h +++ b/src/gallium/drivers/r600/r600_state_inlines.h @@ -282,6 +282,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format) switch (format) { /* 8-bit buffers. */ case PIPE_FORMAT_A8_UNORM: + return V_0280A0_SWAP_ALT_REV; case PIPE_FORMAT_I8_UNORM: case PIPE_FORMAT_L8_UNORM: case PIPE_FORMAT_R8_UNORM: