[Mesa-dev] [PATCH 8/9] mesa: When unpacking signed integer pixel data, don't clamp to 0.

Brian Paul brian.e.paul at gmail.com
Tue Jan 24 19:26:52 PST 2012


On Tue, Jan 24, 2012 at 8:34 PM, Eric Anholt <eric at anholt.net> wrote:
> In the core, we always treat spans of int/uint data as uint, so this
> extract function was truncating storage of integer pixel data to a n
> int texture to (0, max_int) instead of (min_int, max_int).  There is
> probably missing code for handling truncation on conversion between
> pixel formats, still, but this does improve things.
>
> NOTE: This is a candidate for the 8.0 branch.
> ---
>  src/mesa/main/pack.c |   45 ++++++++++++---------------------------------
>  1 files changed, 12 insertions(+), 33 deletions(-)

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the mesa-dev mailing list