From: José Fonseca Date: Mon, 1 Mar 2010 16:25:04 +0000 (+0000) Subject: mesa: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. X-Git-Tag: mesa-7.8~271^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=382d1d370bcf58303ffd9bc0606619e57ea3f302;p=platform%2Fupstream%2Fmesa.git mesa: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate. --- diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index c8f9ac3..f24d6c8 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -300,7 +300,7 @@ default_rgba_format(struct pipe_screen *screen, static const enum pipe_format colorFormats[] = { PIPE_FORMAT_A8R8G8B8_UNORM, PIPE_FORMAT_B8G8R8A8_UNORM, - PIPE_FORMAT_R8G8B8A8_UNORM, + PIPE_FORMAT_R8G8B8A8_UNORM_REV, PIPE_FORMAT_R5G6B5_UNORM }; uint i; @@ -327,7 +327,7 @@ default_rgb_format(struct pipe_screen *screen, PIPE_FORMAT_R8G8B8X8_UNORM, PIPE_FORMAT_A8R8G8B8_UNORM, PIPE_FORMAT_B8G8R8A8_UNORM, - PIPE_FORMAT_R8G8B8A8_UNORM, + PIPE_FORMAT_R8G8B8A8_UNORM_REV, PIPE_FORMAT_R5G6B5_UNORM }; uint i; @@ -680,7 +680,7 @@ GLboolean st_equal_formats(enum pipe_format pFormat, GLenum format, GLenum type) { switch (pFormat) { - case PIPE_FORMAT_R8G8B8A8_UNORM: + case PIPE_FORMAT_R8G8B8A8_UNORM_REV: return format == GL_RGBA && type == GL_UNSIGNED_BYTE; case PIPE_FORMAT_B8G8R8A8_UNORM: return format == GL_BGRA && type == GL_UNSIGNED_BYTE;