mesa: Handle PIPE_FORMAT_B8G8R8X8_UNORM.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 19 Jan 2010 03:32:36 +0000 (19:32 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 19 Jan 2010 04:34:19 +0000 (20:34 -0800)
src/mesa/state_tracker/st_format.c

index 6b1c49954f1dd1ff487697734e329daf2d8eb32f..d2bc0dc8ba638a54116cb831490a1c1827121962 100644 (file)
@@ -293,6 +293,8 @@ st_pipe_format_to_mesa_format(enum pipe_format pipeFormat)
       return MESA_FORMAT_XRGB8888;
    case PIPE_FORMAT_B8G8R8A8_UNORM:
       return MESA_FORMAT_ARGB8888_REV;
+   case PIPE_FORMAT_B8G8R8X8_UNORM:
+      return MESA_FORMAT_XRGB8888_REV;
    case PIPE_FORMAT_A1R5G5B5_UNORM:
       return MESA_FORMAT_ARGB1555;
    case PIPE_FORMAT_A4R4G4B4_UNORM: