mesa/st: clamp scissored clear regions to fb size
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 1 Mar 2021 19:52:25 +0000 (14:52 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 1 Mar 2021 20:27:17 +0000 (20:27 +0000)
commitc5e72eb09daba7a087006f6ade691798f759a23c
treeb07c221a50f156c572142ec8b650635661cf1dde
parentd7c38af3da86733084267bed3c90f495a2ac79c8
mesa/st: clamp scissored clear regions to fb size

these should never be larger than the fb and drivers shouldn't have to
care about it

Fixes: 1c8bcad81a7 ("gallium: add pipe cap for scissored clears and pass scissor state to clear() hook")

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9344>
src/mesa/state_tracker/st_cb_clear.c