i965/Gen6-7: Fix point sprites with PolygonMode(GL_POINT)
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 5 Dec 2014 06:43:13 +0000 (19:43 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 6 Dec 2014 22:46:42 +0000 (11:46 +1300)
commited56c16820aea0e115768d77861fe266380f2595
treef5240441c2013780a4d1f97a88b5e6e7697e9b8e
parent092c73a7c32b240a26ffeab2ee475f6d590540b2
i965/Gen6-7: Fix point sprites with PolygonMode(GL_POINT)

This was an oversight in the original patch. When PolygonMode is
used, then front faces, back faces, or both may be rendered as
points and are affected by point sprite state.

Note that SNB/IVB can't actually be fully conformant here, for
a legacy context -- we don't have separate sets of pointsprite
enables for front and back faces. Haswell ignores pointsprite
state correctly in hardware for non-point rasterization, so can
do this correctly, but it doesn't seem worth it.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86764
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/gen6_sf_state.c