turnip: use ir3_compiler_destroy instead of ralloc_free

Fixes: c0f22c3d94 "freedreno/ir3: add ir3_compiler_destroy()"

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6808>
(cherry picked from commit ec1464077b)
This commit is contained in:
Hyunjun Ko 2020-11-19 01:36:13 +00:00 committed by Dylan Baker
parent b4cbf3776a
commit b41a3c8a1d
2 changed files with 2 additions and 2 deletions

View file

@ -814,7 +814,7 @@
"description": "turnip: use ir3_compiler_destroy instead of ralloc_free",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "c0f22c3d9406ef354142e974783f6c6c066a5c68"
},

View file

@ -1137,7 +1137,7 @@ fail_global_bo_map:
tu_bo_finish(device, &device->global_bo);
fail_global_bo:
ralloc_free(device->compiler);
ir3_compiler_destroy(device->compiler);
fail_queues:
for (unsigned i = 0; i < TU_MAX_QUEUE_FAMILIES; i++) {