r600g: Add PIPE_FORMAT_L8A8_UNORM for Evergreen as well.
authorHenri Verbeet <hverbeet@gmail.com>
Mon, 15 Nov 2010 21:18:12 +0000 (22:18 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Mon, 15 Nov 2010 21:20:12 +0000 (22:20 +0100)
src/gallium/drivers/r600/eg_state_inlines.h

index 59641976403a3f574320670490724f617288203d..94a208442b9fc468484a160a31cd6c891a3e2721 100644 (file)
@@ -311,6 +311,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format)
        case PIPE_FORMAT_Z16_UNORM:
                return V_028C70_SWAP_STD;
 
+       case PIPE_FORMAT_L8A8_UNORM:
        case PIPE_FORMAT_R8G8_UNORM:
                return V_028C70_SWAP_STD;
 
@@ -400,6 +401,7 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
        case PIPE_FORMAT_Z16_UNORM:
                return V_028C70_COLOR_16;
 
+       case PIPE_FORMAT_L8A8_UNORM:
        case PIPE_FORMAT_R8G8_UNORM:
                return V_028C70_COLOR_8_8;