summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-02 06:52:05 -0700
committerBrian Paul <brianp@vmware.com>2009-11-02 06:52:10 -0700
commitc02cd82b463661def7842f910dc561313559df80 (patch)
tree0b5c74537d2a5b04adcee3db4340b34bf876318a
parenta40055f4b608a8f3c07218172ed169214db19236 (diff)
mesa: fix incorrect approx bits/channel for fxt1 formats
See bug 24806.
-rw-r--r--src/mesa/main/formats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index e9b33e489a3..7d0e2d29143 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -444,7 +444,7 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
"MESA_FORMAT_RGB_FXT1",
GL_RGB,
GL_UNSIGNED_NORMALIZED,
- 8, 8, 8, 0,
+ 4, 4, 4, 0, /* approx Red/Green/BlueBits */
0, 0, 0, 0, 0,
8, 4, 16 /* 16 bytes per 8x4 block */
},
@@ -453,7 +453,7 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
"MESA_FORMAT_RGBA_FXT1",
GL_RGBA,
GL_UNSIGNED_NORMALIZED,
- 8, 8, 8, 8,
+ 4, 4, 4, 1, /* approx Red/Green/Blue/AlphaBits */
0, 0, 0, 0, 0,
8, 4, 16 /* 16 bytes per 8x4 block */
},