summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-06-23 12:26:33 +1000
committerMarge Bot <eric+marge@anholt.net>2021-06-23 05:31:59 +0000
commit9027aae546d0674aee704b24bf4e78271c25cc06 (patch)
tree91163aacbb804384c16397d9cf77b2141663bfa1 /src
parent6036121a559473bea48729002d94822791c888a1 (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')
-rw-r--r--src/gallium/drivers/crocus/crocus_state.c2
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);