v3d: use util_unreference_framebuffer_state to unref fb state

Fixes: f5bde99cbd ("gallium: plumb resolve attachments through from frontends -> pipe_framebuffer_state")

Reviewed-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22673>
(cherry picked from commit 8f690c4f78)
This commit is contained in:
Mike Blumenkrantz 2023-04-24 16:24:56 -04:00 committed by Eric Engestrom
parent d8b3feeb8a
commit 79377dae8c
2 changed files with 2 additions and 5 deletions

View file

@ -652,7 +652,7 @@
"description": "v3d: use util_unreference_framebuffer_state to unref fb state",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f5bde99cbdd208916795dc463663ddd97428ecc1"
},

View file

@ -282,10 +282,7 @@ v3d_context_destroy(struct pipe_context *pctx)
slab_destroy_child(&v3d->transfer_pool);
for (int i = 0; i < v3d->framebuffer.nr_cbufs; i++)
pipe_surface_reference(&v3d->framebuffer.cbufs[i], NULL);
pipe_surface_reference(&v3d->framebuffer.zsbuf, NULL);
util_unreference_framebuffer_state(&v3d->framebuffer);
if (v3d->sand8_blit_vs)
pctx->delete_vs_state(pctx, v3d->sand8_blit_vs);