llvmpipe: Calculate fixed point coordinates for triangle setup earlier.
authorJames Benton <jbenton@vmware.com>
Mon, 14 May 2012 15:00:06 +0000 (16:00 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 14 May 2012 15:07:49 +0000 (16:07 +0100)
commit24678700edaf5bb9da9be93a1367f1a24cfaa471
treeabfdbde1dde39504eafab8313579d389a937808e
parentec201667bf201ba9549059697f687b830bdeb6b3
llvmpipe: Calculate fixed point coordinates for triangle setup earlier.

This allows us to calculate the triangle's area using fixed point,
previously it was cacluated in floating point space. It was possible
that a triangle which had negative area in floating point space had
a positive area in fixed point space.

Fixes fdo 40920.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup_tri.c