[Mesa-dev] [PATCH 1/4] radeonsi: Free gfx command stream when destroying context

Aaron Watry awatry at gmail.com
Thu Jan 2 10:38:03 PST 2014


CC: "10.0" <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/radeonsi/radeonsi_pipe.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
index 0fec6d5..3ed1029 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
@@ -119,6 +119,8 @@ static void r600_destroy_context(struct pipe_context *context)
 
 	util_blitter_destroy(rctx->blitter);
 
+	rctx->b.ws->cs_destroy(rctx->b.rings.gfx.cs);
+
 	r600_common_context_cleanup(&rctx->b);
 	FREE(rctx);
 }
-- 
1.8.3.2



More information about the mesa-dev mailing list