diff options
author | Roland Scheidegger <[email protected]> | 2013-07-27 03:53:00 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-07-27 16:41:29 +0200 |
commit | 8c3d3622d9ce2fd2a8f46084ab8153d708fa5b09 (patch) | |
tree | 43cdbdb349ae84ad74f0eb335eae62d8fac55043 /src/gallium/include/pipe | |
parent | d86fddc87630c5a61d6b170dd6e213a16034bff5 (diff) |
gallivm: fix float->SNORM conversion
Just like the UNORM case we need to use round to nearest, not trunc.
(There's also another problem, we're using the formula for SNORM->float
which will produce a value below -1.0 for the most negative value which
according to both OpenGL and d3d10 would need clamping. However, no actual
failures have been observed due to that hence keep cheating on that.)
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe')
0 files changed, 0 insertions, 0 deletions