mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
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 commit8f690c4f78)
This commit is contained in:
parent
d8b3feeb8a
commit
79377dae8c
2 changed files with 2 additions and 5 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue