diff options
author | Jason Ekstrand <[email protected]> | 2014-08-23 08:36:46 -0700 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-01-12 11:20:27 +0100 |
commit | 7d1b08ac44cf2531b0df39f52ead93ad216ea233 (patch) | |
tree | 6837fd095a0d47e401c2aa35b8bc8462a95d21db /src/mesa/swrast/s_texfetch_tmp.h | |
parent | 3b5f2064757cc99a985420ea43805b8a39a33eb0 (diff) |
mesa: Fix clamping to -1.0 in snorm_to_float
This patch fixes the return of a wrong value when x is lower than
-MAX_INT(src_bits) as the result would not be between [-1.0 1.0].
v2 by Samuel Iglesias <[email protected]>:
- Modify snorm_to_float() to avoid doing the division when
x == -MAX_INT(src_bits)
Cc: 10.4 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_texfetch_tmp.h')
0 files changed, 0 insertions, 0 deletions