diff options
author | Dave Airlie <airlied@redhat.com> | 2021-06-23 12:26:33 +1000 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-06-23 05:31:59 +0000 |
commit | 9027aae546d0674aee704b24bf4e78271c25cc06 (patch) | |
tree | 91163aacbb804384c16397d9cf77b2141663bfa1 /src/gallium/drivers/crocus/crocus_state.c | |
parent | 6036121a559473bea48729002d94822791c888a1 (diff) |
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>
Diffstat (limited to 'src/gallium/drivers/crocus/crocus_state.c')
-rw-r--r-- | src/gallium/drivers/crocus/crocus_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |