mesa: move FBO completeness checking from draws to state changes
authorMarek Olšák <marek.olsak@amd.com>
Sun, 31 Jan 2021 00:09:37 +0000 (19:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Feb 2021 19:29:09 +0000 (19:29 +0000)
commit7c35ec4d2f988a37d87aeb3e6d00a537e524a8db
tree71035399b157a49f099d24d0eb7e1693ceda47c7
parent8e747d9af06e55255b5ae8f06434adfe7c54b0f1
mesa: move FBO completeness checking from draws to state changes

_mesa_update_framebuffer_visual already calls _mesa_update_valid_to_render-
_state, so we just need to call it where FBOs are marked incomplete.

This is a step towards removing _mesa_valid_to_render.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8798>
src/mesa/main/draw_validate.c
src/mesa/main/fbobject.c
src/mesa/main/mtypes.h