diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-10-08 17:06:05 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-10-08 17:30:08 +0100 |
commit | 29d6a1483d6c4ecb9c34989423e025b3784ec019 (patch) | |
tree | 9049e626e46035f64e27fcb30983f6e30ffd2c5d /src/gallium/drivers/svga/svga_tgsi.c | |
parent | ad6730fadbbeacea96322e31064ede9ea7ebad6f (diff) |
llvmpipe: avoid overflow in triangle culling
Avoid multiplying fixed-point values. Calculate triangle area in
floating point use that for culling.
Lift area calculations up a level as we are already doing this in the
triangle_both() case.
Would like to share the calculated area with attribute interpolation,
but the way the code is structured makes this difficult.
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi.c')
0 files changed, 0 insertions, 0 deletions