xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 16:28:38 +0000 (16:28 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 1 Mar 2010 16:28:38 +0000 (16:28 +0000)
src/gallium/state_trackers/glx/xlib/xm_api.c

index 188b885f68aa5cfcabbdb0ca7efade0d9c63e717..228e6d0a501cebd49b78f3f78500e4629887a8d9 100644 (file)
@@ -274,10 +274,10 @@ choose_pixel_format(XMesaVisual v)
        && v->BitsPerPixel == 32) {
       if (native_byte_order) {
          /* no byteswapping needed */
-         return 0 /* PIXEL_FORMAT_U_A8_B8_G8_R8 */;
+         return PIPE_FORMAT_R8G8B8A8_UNORM;
       }
       else {
-         return PIPE_FORMAT_R8G8B8A8_UNORM;
+         return PIPE_FORMAT_R8G8B8A8_UNORM_REV;
       }
    }
    else if (   GET_REDMASK(v)   == 0xff0000