i965: Fix scissoring when width or height is 0.
authorEric Anholt <eric@anholt.net>
Tue, 20 Apr 2010 20:40:28 +0000 (13:40 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Apr 2010 22:37:33 +0000 (15:37 -0700)
commit64516430be1cbe4904613903887a8178f4b4fc60
tree6f65543d76cba12a8af7f8c1f4977babd6f585b2
parent021e0dc78b15fab29e761012860276c2597c8d8f
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
positive) coordinates.

Bug #27643.
src/mesa/drivers/dri/i965/brw_sf_state.c