mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
mesa: re-implement unpacking of DEPTH_COMPONENT32F
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43122 Reviewed-by: Eric Anholt <eric@anholt.net> Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org>
This commit is contained in:
parent
27505a105a
commit
a7c107f3bc
1 changed files with 9 additions and 0 deletions
|
|
@ -1750,6 +1750,12 @@ unpack_float_z_Z32(GLuint n, const void *src, GLfloat *dst)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
unpack_float_z_Z32F(GLuint n, const void *src, GLfloat *dst)
|
||||
{
|
||||
memcpy(dst, src, n * sizeof(float));
|
||||
}
|
||||
|
||||
static void
|
||||
unpack_float_z_Z32X24S8(GLuint n, const void *src, GLfloat *dst)
|
||||
{
|
||||
|
|
@ -1783,6 +1789,9 @@ _mesa_unpack_float_z_row(gl_format format, GLuint n,
|
|||
case MESA_FORMAT_Z32:
|
||||
unpack = unpack_float_z_Z32;
|
||||
break;
|
||||
case MESA_FORMAT_Z32_FLOAT:
|
||||
unpack = unpack_float_z_Z32F;
|
||||
break;
|
||||
case MESA_FORMAT_Z32_FLOAT_X24S8:
|
||||
unpack = unpack_float_z_Z32X24S8;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue