[Mesa-dev] [PATCH 1/4] radeonsi: Free gfx command stream when destroying context

Michel Dänzer michel at daenzer.net
Sun Jan 5 23:41:45 PST 2014


On Don, 2014-01-02 at 12:38 -0600, Aaron Watry wrote:
> CC: "10.0" <mesa-stable at lists.freedesktop.org>
> ---
>  src/gallium/drivers/radeonsi/radeonsi_pipe.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
> index 0fec6d5..3ed1029 100644
> --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c
> +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c
> @@ -119,6 +119,8 @@ static void r600_destroy_context(struct pipe_context *context)
>  
>  	util_blitter_destroy(rctx->blitter);
>  
> +	rctx->b.ws->cs_destroy(rctx->b.rings.gfx.cs);
> +
>  	r600_common_context_cleanup(&rctx->b);
>  	FREE(rctx);
>  }

Could the cs_destroy() calls in r600g's r600_destroy_context() be moved
to r600_common_context_cleanup() instead?


-- 
Earthling Michel Dänzer            |                  http://www.amd.com
Libre software enthusiast          |                Mesa and X developer



More information about the mesa-dev mailing list