swr: [rasterizer core] supply proper clip distances to point sprites
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 24 Nov 2016 18:27:48 +0000 (13:27 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 9 Dec 2016 03:47:39 +0000 (22:47 -0500)
commit429e2ec324674ba8c3412b331da56d9a8808cd38
tree68c264d4446071e758f6db16adfb6e442dc9a552
parent192317dfeb8c9223b702196e0c8e8c555c24b844
swr: [rasterizer core] supply proper clip distances to point sprites

Large points become pairs of triangles when rasterized, so we must feed
it three clip distances, one for each vertex.

The clip distance is not subject to sprite coord replacement, so there's
no interpolation of it. We just take its value and put it in the "z"
component of the barycentric-ready plane equation.

(We could also just cull it at an earlier point in time, but that would
require larger changes.)

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/binner.cpp