diff options
author | Dave Airlie <airlied@redhat.com> | 2010-11-22 16:03:00 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-11-22 16:05:44 +1000 |
commit | d5aadf0d80e8c973ef5cf9d82e97f23f0e3c032b (patch) | |
tree | 8cf74c3a330ff1b1c065cf2e899cfc8fb2b214f3 | |
parent | 1b6ed809729dd3adee4adfa87c227bbd98d9f23a (diff) |
r600g: pick correct color swap for A8 fbos.
This fixes fdo bug 31810.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/gallium/drivers/r600/r600_state_inlines.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h index 1be5b156d3..781612af57 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: |