summaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2013-07-27 03:53:00 +0200
committerRoland Scheidegger <[email protected]>2013-07-27 16:41:29 +0200
commit8c3d3622d9ce2fd2a8f46084ab8153d708fa5b09 (patch)
tree43cdbdb349ae84ad74f0eb335eae62d8fac55043 /common.py
parentd86fddc87630c5a61d6b170dd6e213a16034bff5 (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 'common.py')
0 files changed, 0 insertions, 0 deletions