From 711623f7c8113d43f2d54ebfe5cbed3d406a3c79 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 18 Sep 2014 21:40:02 +0200 Subject: radeonsi: release GS rings at context destruction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: 10.2 10.3 Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_pipe.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 4f9c8768152..2cce5cc28e4 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -38,6 +38,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); -- cgit v1.2.3