Mesa (10.2): radeonsi: release GS rings at context destruction

Emil Velikov evelikov at kemper.freedesktop.org
Sat Sep 27 17:12:53 UTC 2014


Module: Mesa
Branch: 10.2
Commit: 5e275106dfb03fadab47da857f4fed42f259641b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e275106dfb03fadab47da857f4fed42f259641b

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 18 21:40:02 2014 +0200

radeonsi: release GS rings at context destruction

Cc: 10.2 10.3 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
(cherry picked from commit 711623f7c8113d43f2d54ebfe5cbed3d406a3c79)

---

 src/gallium/drivers/radeonsi/si_pipe.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 7b905d6..6a4d6f9 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -40,6 +40,8 @@ static void si_destroy_context(struct pipe_context *context)
 
 	si_release_all_descriptors(sctx);
 
+	pipe_resource_reference(&sctx->esgs_ring, NULL);
+	pipe_resource_reference(&sctx->gsvs_ring, NULL);
 	pipe_resource_reference(&sctx->null_const_buf.buffer, NULL);
 	r600_resource_reference(&sctx->border_color_table, NULL);
 




More information about the mesa-commit mailing list