diff options
author | Eric Anholt <[email protected]> | 2012-01-24 14:48:56 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-01-27 12:01:11 -0800 |
commit | dadbec1e90415f0744eb91e684bf9d7496f474c0 (patch) | |
tree | beb08c1c1fb588fdee7dbb1ff32a79f402505381 /src/mesa/descrip.mms | |
parent | 8b97bb02fb1a55a6b0fe558ea1eb97bb4dae0347 (diff) |
mesa: When unpacking signed integer pixel data, don't clamp to 0.
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.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/descrip.mms')
0 files changed, 0 insertions, 0 deletions