diff options
author | Roland Scheidegger <[email protected]> | 2013-11-20 05:17:56 +0000 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-11-21 20:39:19 +0000 |
commit | 28d7b4147d4048031dd1a99c0858472912ea7e7e (patch) | |
tree | 67ba605999e435c82113162352fa66ae6e4e0790 /autogen.sh | |
parent | 9d1c71e34d5ec225f1d4f12f6d7dad5148ab0e8b (diff) |
llvmpipe: calculate more accurate interpolation value at origin
Some rounding errors could crop up when calculating a0. Use a more accurate
method (barycentric interpolation essentially) to fix this, though to fix
the REAL problem (which is that our interpolation will give very bad results
with small triangles far away from the origin when they have steep gradients)
this does absolutely nothing (actually makes it worse). (To fix the real
problem, either would need to use a vertex corner (or some other point inside
the tri) as starting point value instead of fb origin and pass that down to
interpolation, or mimic what hw does, use barycentric interpolation (using
the coordinates extracted from the rasterizer edge functions) - maybe another
time.)
Some (silly) tests though really want a high accuracy at fb origin and don't
care much about anything else (Just. Don't. Ask.).
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions