i965: Scissor to the viewport when rendering points/lines.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 10 Mar 2016 23:30:36 +0000 (15:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Mar 2016 01:42:30 +0000 (18:42 -0700)
commit0de64ab7881cc4d343fecf8a2b5b9b9ca7b34416
tree26e8eb41e975442208cce62fc05d99174f9583cb
parentd000a4989f66921832a33742ea07fa191393231b
i965: Scissor to the viewport when rendering points/lines.

We're about to start allowing wide points/lines whose vertices are
outside the viewport past the clipper.  This scissoring hack ensures
that any fragments generated are still restricted to the viewport.

It is not necessary on Gen8+ as those platforms already discard
fragments which are outside the viewport.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94453
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94454
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/gen6_sf_state.c
src/mesa/drivers/dri/i965/gen7_sf_state.c