Module: Mesa Branch: master Commit: e124080cd66d7f28cb7be7632a0f8ad1d68fa22f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e124080cd66d7f28cb7be7632a0f8ad1d68fa22f
Author: Michal Krol <[email protected]> Date: Fri Jan 15 17:43:04 2010 +0100 util: Handle FORMAT_Z32_FLOAT in util_pack_z(). --- 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 43eb015..0ab53c7 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) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
