mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
mesa: add another special/optimized case in _mesa_unpack_depth_span()
This commit is contained in:
parent
228f20e324
commit
ac1ff1b9fe
1 changed files with 11 additions and 0 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue