diff options
author | Michal Krol <[email protected]> | 2010-01-15 17:43:04 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-15 19:00:15 +0100 |
commit | e124080cd66d7f28cb7be7632a0f8ad1d68fa22f (patch) | |
tree | a9a16698946e1861605026dc2857cbe2697bb04b /src | |
parent | 1433a2d9358dc869d8849deaa0ab7bf7d285b34e (diff) |
util: Handle FORMAT_Z32_FLOAT in util_pack_z().
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_pack_color.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h index 43eb0153ee7..0ab53c75dd6 100644 --- a/src/gallium/auxiliary/util/u_pack_color.h +++ b/src/gallium/auxiliary/util/u_pack_color.h @@ -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) |