r600g: pick correct color swap for A8 fbos.
authorDave Airlie <airlied@redhat.com>
Mon, 22 Nov 2010 06:03:00 +0000 (16:03 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Nov 2010 06:05:44 +0000 (16:05 +1000)
This fixes fdo bug 31810.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_state_inlines.h

index 1be5b156d356274362070cfbd00bbae4946c0027..781612af570257e82521e5759b78becae1c7ce84 100644 (file)
@@ -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: