From d5aadf0d80e8c973ef5cf9d82e97f23f0e3c032b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 22 Nov 2010 16:03:00 +1000 Subject: [PATCH] r600g: pick correct color swap for A8 fbos. This fixes fdo bug 31810. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_state_inlines.h | 1 + 1 file changed, 1 insertion(+) 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: -- 2.30.2