aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenri Verbeet <[email protected]>2010-11-27 16:43:57 +0100
committerHenri Verbeet <[email protected]>2010-11-27 17:40:47 +0100
commit7a4599c6f5596e55b55a04817d812c6ff70f69d3 (patch)
treeae9c8a1e7a371bd93e10c90faf45cab2d464a01a
parentc3602ff5ed3f423e44c2e09b44334263e12a07ab (diff)
r600g: Fix the PIPE_FORMAT_L8A8_UNORM color swaps.
-rw-r--r--src/gallium/drivers/r600/eg_state_inlines.h1
-rw-r--r--src/gallium/drivers/r600/r600_state_inlines.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/eg_state_inlines.h b/src/gallium/drivers/r600/eg_state_inlines.h
index 698299ec134..b47ca5d62d3 100644
--- a/src/gallium/drivers/r600/eg_state_inlines.h
+++ b/src/gallium/drivers/r600/eg_state_inlines.h
@@ -312,6 +312,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format)
return V_028C70_SWAP_STD;
case PIPE_FORMAT_L8A8_UNORM:
+ return V_028C70_SWAP_ALT;
case PIPE_FORMAT_R8G8_UNORM:
return V_028C70_SWAP_STD;
diff --git a/src/gallium/drivers/r600/r600_state_inlines.h b/src/gallium/drivers/r600/r600_state_inlines.h
index 781612af570..d994196e19d 100644
--- a/src/gallium/drivers/r600/r600_state_inlines.h
+++ b/src/gallium/drivers/r600/r600_state_inlines.h
@@ -305,6 +305,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format)
return V_0280A0_SWAP_STD;
case PIPE_FORMAT_L8A8_UNORM:
+ return V_0280A0_SWAP_ALT;
case PIPE_FORMAT_R8G8_UNORM:
return V_0280A0_SWAP_STD;