summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2014-09-18 21:40:02 +0200
committerEmil Velikov <emil.l.velikov@gmail.com>2014-09-27 19:07:55 +0100
commit7d3f6f79950636a83753797b85e7f6af01fd6824 (patch)
treed23cf1263d69ff58f1a991660cbb3cdb6e0d5c84 /src/gallium
parent907da04eb62541c7d5a56113de8b95b98b28283e (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> (cherry picked from commit 711623f7c8113d43f2d54ebfe5cbed3d406a3c79) [Emil Velikov: s/ring/ring.buffer/] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.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 7b905d69729..e87fea397c5 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.buffer, NULL);
+ pipe_resource_reference(&sctx->gsvs_ring.buffer, NULL);
pipe_resource_reference(&sctx->null_const_buf.buffer, NULL);
r600_resource_reference(&sctx->border_color_table, NULL);