mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 09:18:20 +02:00
util: Handle FORMAT_Z32_FLOAT in util_pack_z().
This commit is contained in:
parent
1433a2d935
commit
e124080cd6
1 changed files with 2 additions and 0 deletions
|
|
@ -425,6 +425,8 @@ util_pack_z(enum pipe_format format, double z)
|
|||
if (z == 1.0)
|
||||
return 0xffffffff;
|
||||
return (uint) (z * 0xffffffff);
|
||||
case PIPE_FORMAT_Z32_FLOAT:
|
||||
return (uint)z;
|
||||
case PIPE_FORMAT_S8Z24_UNORM:
|
||||
case PIPE_FORMAT_X8Z24_UNORM:
|
||||
if (z == 1.0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue