From f6e98e99e3e6d5755000761775dbf073f7c7a7f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 21 Jun 2017 18:39:41 +0200 Subject: [PATCH] radeonsi: unreference vertex buffers when destroying the context Reviewed-by: Samuel Pitoiset --- 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 acf6fb47fae..75d2a1d86cf 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -2940,6 +2940,8 @@ void si_release_all_descriptors(struct si_context *sctx) } 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]); -- 2.30.2