st/mesa: fix is_scissor_enabled when X/Y are negative
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 11 Sep 2016 17:37:30 +0000 (13:37 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 13 Sep 2016 00:07:21 +0000 (20:07 -0400)
commit742832434abc8caff2425fcc174966b2834ac552
treeab9e9c5804d6908c65a09d7a1e2efe408f2e72d1
parent6b9d7e69ee7fd1162f7ac231a337630d859c493b
st/mesa: fix is_scissor_enabled when X/Y are negative

Similar to commit 49c24d8a24 ("i965: fix noop_scissor range issue on
width/height") - take the X/Y into account to determine whether the
scissor covers the whole area or not.

Fixes the recently-added gl-1.0-scissor-depth-clear-negative-xy piglit
test.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_cb_clear.c