summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-10-06 16:32:03 -0700
committerEric Anholt <[email protected]>2015-10-06 16:32:03 -0700
commitb6cd39fc4761a3a6276a373e68510fb7fb735a77 (patch)
tree13065f2afba7193ad55a54c2d897325d236f98fe /src/gallium/drivers/vc4
parent922e0680f9152aaacde12636d91b97346b05d61c (diff)
vc4: Fix a leak of the last color read/write surface on context destroy.
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c
index 87d781d088d..d490fad5167 100644
--- a/src/gallium/drivers/vc4/vc4_context.c
+++ b/src/gallium/drivers/vc4/vc4_context.c
@@ -188,6 +188,9 @@ vc4_context_destroy(struct pipe_context *pctx)
pipe_surface_reference(&vc4->framebuffer.cbufs[0], NULL);
pipe_surface_reference(&vc4->framebuffer.zsbuf, NULL);
+ pipe_surface_reference(&vc4->color_write, NULL);
+ pipe_surface_reference(&vc4->color_read, NULL);
+
vc4_program_fini(pctx);
ralloc_free(vc4);