vc4: 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>
This commit is contained in:
committed by
Marge Bot
parent
8f690c4f78
commit
f05caed02e
@@ -116,8 +116,7 @@ vc4_context_destroy(struct pipe_context *pctx)
|
||||
|
||||
slab_destroy_child(&vc4->transfer_pool);
|
||||
|
||||
pipe_surface_reference(&vc4->framebuffer.cbufs[0], NULL);
|
||||
pipe_surface_reference(&vc4->framebuffer.zsbuf, NULL);
|
||||
util_unreference_framebuffer_state(&vc4->framebuffer);
|
||||
|
||||
if (vc4->yuv_linear_blit_vs)
|
||||
pctx->delete_vs_state(pctx, vc4->yuv_linear_blit_vs);
|
||||
|
||||
Reference in New Issue
Block a user