r300: Don't implement PIPE_FORMAT_R8G8B8X8_SNORM.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 15:14:00 +0000 (15:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 15:14:00 +0000 (15:14 +0000)
This format is not actually used by any state tracker. Probably the
reverse notation was mean, which would make it identical to
PIPE_FORMAT_X8B8G8R8_SNORM.

src/gallium/drivers/r300/r300_texture.c

index 2246c75056cc80204d273f242319e6becbef6c0f..181711b3d24f214b05a197c611062429924a02ed 100644 (file)
@@ -329,7 +329,6 @@ static uint32_t r300_translate_colorformat(enum pipe_format format)
         case PIPE_FORMAT_R8G8B8A8_SRGB:
         case PIPE_FORMAT_R8G8B8X8_UNORM:
         case PIPE_FORMAT_R8G8B8X8_SRGB:
-        case PIPE_FORMAT_R8G8B8X8_SNORM:
         case PIPE_FORMAT_A8B8G8R8_SNORM:
         case PIPE_FORMAT_X8B8G8R8_SNORM:
         case PIPE_FORMAT_X8UB8UG8SR8S_NORM:
@@ -463,7 +462,6 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
         case PIPE_FORMAT_R8G8B8A8_SRGB:
         case PIPE_FORMAT_R8G8B8X8_UNORM:
         case PIPE_FORMAT_R8G8B8X8_SRGB:
-        case PIPE_FORMAT_R8G8B8X8_SNORM:
             return modifier |
                 R300_C0_SEL_A | R300_C1_SEL_B |
                 R300_C2_SEL_G | R300_C3_SEL_R;