st/mesa: fix the glBitmap cache wrt FS, scissor, and clamp color changes
authorMarek Olšák <marek.olsak@amd.com>
Fri, 18 Nov 2022 15:20:17 +0000 (10:20 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 7 Dec 2022 09:12:41 +0000 (09:12 +0000)
commit33ca53ac79ad954b72afeb14142d179c313fe4e3
treeb7a8a75387636c3a05d111d616e50007d66f952b
parent525c70c61aac18c87ba64ec531e9e3c2075091a0
st/mesa: fix the glBitmap cache wrt FS, scissor, and clamp color changes

We need to track those states in the cache and flush the cache
if the next glBitmap call uses different states.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19859>
src/mesa/main/enable.c
src/mesa/main/scissor.c
src/mesa/state_tracker/st_cb_bitmap.c
src/mesa/state_tracker/st_context.h