From: José Fonseca Date: Mon, 1 Mar 2010 16:28:38 +0000 (+0000) Subject: xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88e640fc14c3146966b6ba886d7f79874e745b35;p=mesa.git xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate. --- diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index 188b885f68a..228e6d0a501 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -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