mesa: flush bitmap caches when changing scissors or window rects state
authorSviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Tue, 12 Apr 2022 09:52:27 +0000 (12:52 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 18 Apr 2022 12:39:03 +0000 (12:39 +0000)
commitdd7278aa10af21b8622cb5721253eb90c3c0752f
tree9bfc2452827eb5801dd846b9e46f52591b23583c
parentf9e424f98ddd2dc087fad0806f3b9191e8078f08
mesa: flush bitmap caches when changing scissors or window rects state

If we change the sate without flushing the bitmap cache, the cache might be
rendered with the new scissor, which excludes some parts that should've
been rendered with the old state, and vice versa.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6233

Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15881>
src/mesa/main/enable.c
src/mesa/main/scissor.c