diff options
author | Rob Clark <[email protected]> | 2017-03-21 11:35:40 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-03-24 18:01:47 -0400 |
commit | d87ef8f77c4014902ef05b5caafc66cb36ee56f0 (patch) | |
tree | 537e24592519d0f967ba6e235a607584bdc309b3 /src/gallium/drivers/freedreno/freedreno_screen.c | |
parent | e6621746dc71dfa618c0e2518cd0591a13a6c994 (diff) |
freedreno: free compiler when screen is destroyed
Drop ir3_compiler_destroy(), since it is only ralloc_free() and we
shouldn't really have an ir3 dependency in core. If some future hw
has a new compiler, as long as all it's resources are ralloc()d then
things will all just work.
(In practice, I suppose you never really see this leak, but removing
it at least cleans up some noise in valgrind.)
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index f0c9e187d20..5657de59276 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -144,6 +144,8 @@ fd_screen_destroy(struct pipe_screen *pscreen) mtx_destroy(&screen->lock); + ralloc_free(screen->compiler); + free(screen); } |