Created attachment 35017 [details] [review]
If I set a scissor that is zero sized and fully offscreen then I would expect it to clip everything. However on my i965 with git master nothing gets clipped. Attached is a test case for piglet to demonstrate.
Author: Neil Roberts <email@example.com>
Date: Wed Apr 14 18:23:32 2010 +0100
offscreen-scissor: New test for setting a scissor that is fully offscreen
The test sets a zero-width and height scissor that is off the edge of
the window. This should clip everything. It then tries to fill the
window with red triangles. These do not currently get clipped on i965.
Signed-off-by: Eric Anholt <firstname.lastname@example.org>
(whoops, renamed to scissor-offscreen alongside other scissoring tests, didn't rename commit message).
Author: Eric Anholt <email@example.com>
Date: Tue Apr 20 13:40:28 2010 -0700
i965: Fix scissoring when width or height is 0.
We would run into trouble due to the hardware using inclusive numbers
and the subtraction to handle that producing negative (meaning large
on Sep 25, 2016 at 22:38:00.
(provided by the Example extension).