mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
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: f5bde99cbd ("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>
This commit is contained in:
parent
73c91c4c8a
commit
352fee176c
1 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb)
|
|||
assert(fb);
|
||||
assert(fb->RefCount == 0);
|
||||
|
||||
pipe_resource_reference(&fb->resolve, NULL);
|
||||
|
||||
simple_mtx_destroy(&fb->Mutex);
|
||||
|
||||
for (unsigned i = 0; i < BUFFER_COUNT; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue