Module: Mesa Branch: 10.2 Commit: 7d3f6f79950636a83753797b85e7f6af01fd6824 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d3f6f79950636a83753797b85e7f6af01fd6824
Author: Marek Olšák <marek.ol...@amd.com> Date: Thu Sep 18 21:40:02 2014 +0200 radeonsi: release GS rings at context destruction Cc: 10.2 10.3 <mesa-sta...@lists.freedesktop.org> Reviewed-by: Michel Dänzer <michel.daen...@amd.com> (cherry picked from commit 711623f7c8113d43f2d54ebfe5cbed3d406a3c79) [Emil Velikov: s/ring/ring.buffer/] Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com> --- 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..e87fea3 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); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit