diff options
author | José Fonseca <[email protected]> | 2012-12-06 09:30:53 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-12-06 15:58:40 +0000 |
commit | 5e99cd915921d7b863a66badf09941f11120c6ab (patch) | |
tree | 3abc213e7e7b9eb03563eedeb9088fd2a7ea96dd /include | |
parent | 33ffca713a5e593beda34d6bcbee8fb1af472cf7 (diff) |
gallivm: Fix lerping of (un)signed normalized numbers.
Several issues actually:
- Fix a regression in unsigned normalized in the rescaling
[0, 255] to [0, 256]
- Ensure we use signed shifts where appropriate (instead of
unsigned shifts)
- Refactor the code slightly -- move all the logic inside
lp_build_lerp_simple().
This change, plus an adjustment in the tolerance of signed normalized
results in piglit fbo-blending-formats fixes bug 57903
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions