i965: Stop XY clipping point and line primitives.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 10 Mar 2016 22:36:25 +0000 (14:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Mar 2016 01:42:51 +0000 (18:42 -0700)
commit88d28aa4d9edec33ef7bcf1f56b77fbb756a24f8
tree40112e999b2a40954faf5b4e12f1daefc7a67a34
parent0de64ab7881cc4d343fecf8a2b5b9b9ca7b34416
i965: Stop XY clipping point and line primitives.

Wide points and lines are not supposed to be clipped by the viewport.
Rather, they should be rendered, and any fragments outside of the
viewport should be discarded.

The traditional use case for this behavior is rendering moving wide
point particles.  When the center of the point approaches the viewport
edge, clipping would make it pop out of view early.

Fixes:
- dEQP-GLES2.functional.clipping.point.wide_point_clip
- dEQP-GLES3.functional.clipping.point.wide_point_clip
- dEQP-GLES3.functional.clipping.point.wide_point_clip_viewport_center
- dEQP-GLES3.functional.clipping.point.wide_point_clip_viewport_corner
- dEQP-GLES3.functional.clipping.line.wide_line_clip_viewport_center
- dEQP-GLES3.functional.clipping.line.wide_line_clip_viewport_corner

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_clip_state.c