summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Verbeet <hverbeet@gmail.com>2010-11-27 17:29:56 +0100
committerHenri Verbeet <hverbeet@gmail.com>2010-11-27 17:40:47 +0100
commitc6ea4c0e8a6aa84a590ae63da3eb06c08c7356ed (patch)
tree5c9289b1d8856068967506598f4c6268449d33ae
parent7a4599c6f5596e55b55a04817d812c6ff70f69d3 (diff)
r600g: Fix the PIPE_FORMAT_A8_UNORM color swap for Evergreen as well.
-rw-r--r--src/gallium/drivers/r600/eg_state_inlines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/eg_state_inlines.h b/src/gallium/drivers/r600/eg_state_inlines.h
index b47ca5d62d..ecea1db4f1 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: