OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a40055f
)
mesa: fix incorrect approx bits/channel for fxt1 formats
author
Brian Paul
<brianp@vmware.com>
Mon, 2 Nov 2009 13:52:05 +0000
(06:52 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 2 Nov 2009 13:52:10 +0000
(06:52 -0700)
See bug 24806.
src/mesa/main/formats.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formats.c
b/src/mesa/main/formats.c
index
e9b33e4
..
7d0e2d2
100644
(file)
--- 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 */
},