summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-03-01 16:25:04 +0000
committerJosé Fonseca <jfonseca@vmware.com>2010-03-01 16:25:04 +0000
commit382d1d370bcf58303ffd9bc0606619e57ea3f302 (patch)
treef2ba6ce31123135fe1fc303ae55b100b35e457d0 /src
parentdaf7caf4cfb1c3732a31be56157e9c7d0399ef58 (diff)
mesa: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index c8f9ac3038..f24d6c8686 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;