freedreno/ir3: add ir3_compiler_destroy()
authorRob Clark <robdclark@chromium.org>
Thu, 4 Jun 2020 19:55:41 +0000 (12:55 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 26 Jun 2020 15:43:23 +0000 (08:43 -0700)
commitc0f22c3d9406ef354142e974783f6c6c066a5c68
tree895780f93db924d8fa430b863273fe86d92c423c
parentf1ab57359c7a98ecd45ba3da905dd44c4d7cae5b
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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5372>
src/freedreno/ir3/ir3_compiler.c
src/freedreno/ir3/ir3_compiler.h
src/freedreno/vulkan/tu_device.c
src/gallium/drivers/freedreno/freedreno_screen.c