mesa/framebuffer: fix gl_framebuffer.resolve refcnt imbalance
authorPatrick Lerda <patrick9876@free.fr>
Thu, 2 Mar 2023 17:09:04 +0000 (18:09 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Mar 2023 01:28:47 +0000 (01:28 +0000)
commit352fee176c763a75d26eaeec262ad5b98cd1af8b
treebad341feb641ff6cd7a12acc1b2cd5d5c9aa196a
parent73c91c4c8ae25d2d8774a3bb1fcb53730fa976db
mesa/framebuffer: fix gl_framebuffer.resolve refcnt imbalance

Indeed, "resolve" is not freed at the gl_framebuffer destroy
stage.

For instance, this issue is triggered and detected with
"piglit/bin/fbo-depthstencil clear default_fb -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: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21663>
src/mesa/main/framebuffer.c