r600g: remove unsupported evergreen CB formats
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2012 23:42:39 +0000 (18:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2012 23:46:03 +0000 (18:46 -0500)
The evergreen+ CB no longer supports the following formats
compared to 6xx/7xx:
- COLOR_4_4
- COLOR_3_3_2
- COLOR_6_5_5
- COLOR_8_24_FLOAT
- COLOR_24_8_FLOAT
- COLOR_11_11_10
- COLOR_11_11_10_FLOAT

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_state.c

index 69e3be9..3bec748 100644 (file)
@@ -417,11 +417,6 @@ static uint32_t r600_translate_colorformat(enum pipe_format format)
 {
        switch (format) {
        /* 8-bit buffers. */
-       case PIPE_FORMAT_L4A4_UNORM:
-       case PIPE_FORMAT_R4A4_UNORM:
-       case PIPE_FORMAT_A4R4_UNORM:
-               return V_028C70_COLOR_4_4;
-
        case PIPE_FORMAT_A8_UNORM:
        case PIPE_FORMAT_A8_UINT:
        case PIPE_FORMAT_A8_SINT:
@@ -579,8 +574,6 @@ static uint32_t r600_colorformat_endian_swap(uint32_t colorformat)
 {
        if (R600_BIG_ENDIAN) {
                switch(colorformat) {
-               case V_028C70_COLOR_4_4:
-                       return ENDIAN_NONE;
 
                /* 8-bit buffers. */
                case V_028C70_COLOR_8: