summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-06-23 12:00:37 +1000
committerMarge Bot <eric+marge@anholt.net>2021-06-23 05:31:59 +0000
commit6036121a559473bea48729002d94822791c888a1 (patch)
treea2b6c1c9becb74eec4b0d587451b982905892667 /src
parentc9bc5e3a86d9f8468b9fec3d4736d8e0d7880f52 (diff)
crocus: free context state properly.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/crocus/crocus_state.c3
1 files changed, 2 insertions, 1 deletions
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);
}