From 7a4599c6f5596e55b55a04817d812c6ff70f69d3 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sat, 27 Nov 2010 16:43:57 +0100 Subject: [PATCH] r600g: Fix the PIPE_FORMAT_L8A8_UNORM color swaps. --- src/gallium/drivers/r600/eg_state_inlines.h | 1 + src/gallium/drivers/r600/r600_state_inlines.h | 1 + 2 files changed, 2 insertions(+) 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; -- 2.30.2