diff options
author | Rob Clark <[email protected]> | 2020-06-04 12:55:41 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2020-06-26 08:43:23 -0700 |
commit | c0f22c3d9406ef354142e974783f6c6c066a5c68 (patch) | |
tree | 895780f93db924d8fa430b863273fe86d92c423c /src/freedreno/vulkan | |
parent | f1ab57359c7a98ecd45ba3da905dd44c4d7cae5b (diff) |
freedreno/ir3: add ir3_compiler_destroy()
Use ir3_compiler_destroy() rather than open-coding ralloc_free(). This
will give us a place to add more compiler related cleanup code in the
following patches.
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5372>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 0b4b888bb1b..80c42902a8e 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -1346,8 +1346,7 @@ tu_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator) tu_bo_finish(device, &device->scratch_bos[i].bo); } - /* the compiler does not use pAllocator */ - ralloc_free(device->compiler); + ir3_compiler_destroy(device->compiler); VkPipelineCache pc = tu_pipeline_cache_to_handle(device->mem_cache); tu_DestroyPipelineCache(tu_device_to_handle(device), pc, NULL); |