diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index a9e7ff91f38..c1e041d1ef9 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -115,6 +115,13 @@ vc4_context_destroy(struct pipe_context *pctx) pipe_surface_reference(&vc4->framebuffer.cbufs[0], NULL); pipe_surface_reference(&vc4->framebuffer.zsbuf, NULL); + if (vc4->yuv_linear_blit_vs) + pctx->delete_vs_state(pctx, vc4->yuv_linear_blit_vs); + if (vc4->yuv_linear_blit_fs_8bit) + pctx->delete_fs_state(pctx, vc4->yuv_linear_blit_fs_8bit); + if (vc4->yuv_linear_blit_fs_16bit) + pctx->delete_fs_state(pctx, vc4->yuv_linear_blit_fs_16bit); + vc4_program_fini(pctx); ralloc_free(vc4); |