Mesa (main): crocus: free context state properly.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 23 05:41:53 UTC 2021
Module: Mesa
Branch: main
Commit: 6036121a559473bea48729002d94822791c888a1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6036121a559473bea48729002d94822791c888a1
Author: Dave Airlie <airlied at redhat.com>
Date: Wed Jun 23 12:00:37 2021 +1000
crocus: free context state properly.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>
---
src/gallium/drivers/crocus/crocus_state.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index 33527fca9a6..170f207c28b 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -8196,10 +8196,11 @@ crocus_upload_compute_state(struct crocus_context *ice,
static void
crocus_destroy_state(struct crocus_context *ice)
{
-
pipe_resource_reference(&ice->draw.draw_params.res, NULL);
pipe_resource_reference(&ice->draw.derived_draw_params.res, NULL);
+ free(ice->state.genx);
+
for (int i = 0; i < 4; i++) {
pipe_so_target_reference(&ice->state.so_target[i], NULL);
}
More information about the mesa-commit
mailing list