Mesa (main): crocus: fix vertex buffer leak on screen end.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 23 05:41:53 UTC 2021
Module: Mesa
Branch: main
Commit: 9027aae546d0674aee704b24bf4e78271c25cc06
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9027aae546d0674aee704b24bf4e78271c25cc06
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Jun 23 12:26:33 2021 +1000
crocus: fix vertex buffer leak on screen end.
this was stopping the screen from being cleaned up as well
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>
---
src/gallium/drivers/crocus/crocus_state.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index 170f207c28b..8506aaced06 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -8227,6 +8227,8 @@ crocus_destroy_state(struct crocus_context *ice)
}
}
+ for (int i = 0; i < 16; i++)
+ pipe_resource_reference(&ice->state.vertex_buffers[i].buffer.resource, NULL);
pipe_resource_reference(&ice->state.grid_size.res, NULL);
pipe_resource_reference(&ice->state.index_buffer.res, NULL);
More information about the mesa-commit
mailing list