aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-21 18:39:41 +0200
committerMarek Olšák <[email protected]>2017-06-23 19:53:54 +0200
commitf6e98e99e3e6d5755000761775dbf073f7c7a7f7 (patch)
tree686d3bc6f7218e9e5cc23a39be65e421004a4093 /src/gallium
parent2ea16f08f3f57ce32a2912ddd0ed74027a89a547 (diff)
radeonsi: unreference vertex buffers when destroying the context
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_descriptors.c2
1 files changed, 2 insertions, 0 deletions
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]);