[Mesa-dev] [PATCH 2/2] radeonsi: unreference vertex buffers when destroying the context
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Jun 22 12:54:08 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 06/22/2017 02:34 PM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> src/gallium/drivers/radeonsi/si_descriptors.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c
> index acf6fb4..75d2a1d 100644
> --- a/src/gallium/drivers/radeonsi/si_descriptors.c
> +++ b/src/gallium/drivers/radeonsi/si_descriptors.c
> @@ -2933,20 +2933,22 @@ void si_release_all_descriptors(struct si_context *sctx)
> int i;
>
> for (i = 0; i < SI_NUM_SHADERS; i++) {
> si_release_buffer_resources(&sctx->const_and_shader_buffers[i],
> si_const_and_shader_buffer_descriptors(sctx, i));
> si_release_sampler_views(&sctx->samplers[i].views);
> si_release_image_views(&sctx->images[i]);
> }
> si_release_buffer_resources(&sctx->rw_buffers,
> &sctx->descriptors[SI_DESCS_RW_BUFFERS]);
> + for (i = 0; i < SI_NUM_VERTEX_BUFFERS; i++)
> + pipe_vertex_buffer_unreference(&sctx->vertex_buffer[i]);
>
> for (i = 0; i < SI_NUM_DESCS; ++i)
> si_release_descriptors(&sctx->descriptors[i]);
> si_release_descriptors(&sctx->vertex_buffers);
> }
>
> void si_all_descriptors_begin_new_cs(struct si_context *sctx)
> {
> int i;
>
>
More information about the mesa-dev
mailing list