r300: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 16:26:36 +0000 (16:26 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 16:26:36 +0000 (16:26 +0000)
src/gallium/drivers/r300/r300_texture.c

index 181711b3d24f214b05a197c611062429924a02ed..5b674f6e57d839c3f13df207c5247a863d8ea0b8 100644 (file)
@@ -324,7 +324,7 @@ static uint32_t r300_translate_colorformat(enum pipe_format format)
         case PIPE_FORMAT_B8G8R8A8_SRGB:
         case PIPE_FORMAT_B8G8R8X8_UNORM:
         case PIPE_FORMAT_B8G8R8X8_SRGB:
-        case PIPE_FORMAT_R8G8B8A8_UNORM:
+        case PIPE_FORMAT_R8G8B8A8_UNORM_REV:
         case PIPE_FORMAT_R8G8B8A8_SNORM:
         case PIPE_FORMAT_R8G8B8A8_SRGB:
         case PIPE_FORMAT_R8G8B8X8_UNORM:
@@ -457,7 +457,7 @@ static uint32_t r300_translate_out_fmt(enum pipe_format format)
                 R300_C2_SEL_G | R300_C3_SEL_B;
 
         /* RGBA 32-bit outputs. */
-        case PIPE_FORMAT_R8G8B8A8_UNORM:
+        case PIPE_FORMAT_R8G8B8A8_UNORM_REV:
         case PIPE_FORMAT_R8G8B8A8_SNORM:
         case PIPE_FORMAT_R8G8B8A8_SRGB:
         case PIPE_FORMAT_R8G8B8X8_UNORM: