projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38c6f1e
)
mesa: Fix packing of stencil bits to MESA_FORMAT_Z32_FLOAT_X24S8.
author
Eric Anholt
<eric@anholt.net>
Thu, 5 Jan 2012 01:53:39 +0000
(17:53 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 6 Jan 2012 17:49:08 +0000
(09:49 -0800)
We were converting our ubyte stencil value to a float. Just write it
as a uint, which overwrites the X24 part of X24S8 with 0 but shouldn't
matter.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/format_pack.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/format_pack.c
b/src/mesa/main/format_pack.c
index 840559bac5e38ac1fe543f0b9bedccc3022641aa..43677117ede48e2cf9d353234560d2387ccce640 100644
(file)
--- a/
src/mesa/main/format_pack.c
+++ b/
src/mesa/main/format_pack.c
@@
-2453,7
+2453,7
@@
_mesa_pack_ubyte_stencil_row(gl_format format, GLuint n,
break;
case MESA_FORMAT_Z32_FLOAT_X24S8:
{
- GL
float *d = ((GLfloat *) dst)
;
+ GL
uint *d = dst
;
GLuint i;
for (i = 0; i < n; i++) {
d[i * 2 + 1] = src[i];