i965: fix noop_scissor range issue on width/height
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 18 Oct 2013 22:03:09 +0000 (15:03 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 1 Sep 2016 18:45:13 +0000 (11:45 -0700)
commit49c24d8a241ead2f0906d8e9523ab3aba0d8a73d
tree9deb9e2a2452f085b7613a6f0fe3d289d8471402
parent9c562956f97cbb0698c0dc232eb594e7018a6c08
i965: fix noop_scissor range issue on width/height

If scissor X or Y was set to a negative value then the previous
code might have indicated noop scissors when the scissor range
actually was masking a portion of the framebuffer.

Since fb->_Xmin, _Xmax, _Ymin and _Ymax take scissors into
account, we can use these to test for a noop scissor.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_clear.c