util: when packing depth values, round to nearest.
authorMatthew McClure <mcclurem@vmware.com>
Thu, 26 Sep 2013 23:57:26 +0000 (16:57 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 4 Oct 2013 09:55:51 +0000 (10:55 +0100)
commitd164d50a85e5c42a8ed0c5082564f69e13aa09e0
treeeebc183fcb4e80ca2e45c4d18a61d2a758cbe784
parentb280516e114776c8d34c2d6fe0174762f3c85c0e
util: when packing depth values, round to nearest.

This patch adds the lrint, lrintf, llrint, and llrintf rounding utility
functions. When packing unorm depth values, we will round to nearest.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_math.h
src/gallium/auxiliary/util/u_pack_color.h