util/u_format: Round when converting depth values from float to z16_unorm.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 20 Dec 2012 12:03:45 +0000 (12:03 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 21 Dec 2012 10:04:51 +0000 (10:04 +0000)
commit74f07319533d39a509ddc3159a51cfe89cd47225
tree70a169f0aae9541c00f63c88628a9b7fa69aa5aa
parente8ca1a53a625544ea30b394be905ff7e51d78af6
util/u_format: Round when converting depth values from float to z16_unorm.

This makes the z16_unorm -> float -> z16_unorm conversion lossless.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_format_zs.c