summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2014-09-18 21:40:02 +0200
committerMarek Olšák <marek.olsak@amd.com>2014-09-24 14:48:02 +0200
commit711623f7c8113d43f2d54ebfe5cbed3d406a3c79 (patch)
treed55708e2881735a1ac3f3374aaaa5ea45de0987c /src/gallium
parent2833dc4e4596948b2669a0a7261ba9338395835c (diff)
radeonsi: release GS rings at context destruction
Cc: 10.2 10.3 <mesa-stable@lists.freedesktop.org> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c2
1 files changed, 2 insertions, 0 deletions
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);