crocus: fix refcnt imbalance related to framebuffer
authorPatrick Lerda <patrick9876@free.fr>
Wed, 15 Mar 2023 12:21:05 +0000 (13:21 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Apr 2023 21:07:44 +0000 (21:07 +0000)
commitc39a2d67eacdeb37d5f7a68f9ca0ce0d395e4f75
treef65873a9b5b6f0cc52f02c2f2019d6beda12562b
parent3af2ab02f3c91ec5b1e723beae011b2c6281416f
crocus: fix refcnt imbalance related to framebuffer

Indeed, the hardcoded framebuffer cleanup doesn't handle "resolve".

For instance, this issue is triggered with "piglit/bin/glx-copy-sub-buffer -samples=2 -auto"
while setting GALLIUM_REFCNT_LOG=refcnt.log.

Fixes: f5bde99cbdd2 ("gallium: plumb resolve attachments through from frontends -> pipe_framebuffer_state")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22554>
src/gallium/drivers/crocus/crocus_state.c