summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/vc4/vc4_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r--lib/mesa/src/gallium/drivers/vc4/vc4_context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/drivers/vc4/vc4_context.c b/lib/mesa/src/gallium/drivers/vc4/vc4_context.c
index f03cf57cc..472a3e1b0 100644
--- a/lib/mesa/src/gallium/drivers/vc4/vc4_context.c
+++ b/lib/mesa/src/gallium/drivers/vc4/vc4_context.c
@@ -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);