projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228f20e
)
mesa: add another special/optimized case in _mesa_unpack_depth_span()
author
Brian Paul
<brianp@vmware.com>
Tue, 7 Apr 2009 23:31:14 +0000
(17:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 7 Apr 2009 23:31:14 +0000
(17:31 -0600)
src/mesa/main/image.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/image.c
b/src/mesa/main/image.c
index 5cb110f3a5da70d1a71905776ba7779a4804a63d..ddae456fa129b4b4c6f03bb80ed415c20d05c90d 100644
(file)
--- a/
src/mesa/main/image.c
+++ b/
src/mesa/main/image.c
@@
-4546,6
+4546,17
@@
_mesa_unpack_depth_span( const GLcontext *ctx, GLuint n,
}
return;
}
+ if (srcType == GL_UNSIGNED_INT_24_8
+ && dstType == GL_UNSIGNED_INT
+ && depthMax == 0xffffff) {
+ const GLuint *src = (const GLuint *) source;
+ GLuint *dst = (GLuint *) dest;
+ GLuint i;
+ for (i = 0; i < n; i++) {
+ dst[i] = src[i] >> 8;
+ }
+ return;
+ }
/* XXX may want to add additional cases here someday */
}