mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
freedreno: Fix leak of binning shader variants.
The v->binning variant is never added to shader->variants, so just free each one as we free the nonbinning variant. Noticed from drm-shim mode running out of open fds, since each bo ends up with an fd. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4502>
This commit is contained in:
parent
5ec1f264f1
commit
904d5d63b4
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ delete_variant(struct ir3_shader_variant *v)
|
||||||
ir3_destroy(v->ir);
|
ir3_destroy(v->ir);
|
||||||
if (v->bo)
|
if (v->bo)
|
||||||
fd_bo_del(v->bo);
|
fd_bo_del(v->bo);
|
||||||
|
if (v->binning)
|
||||||
|
delete_variant(v->binning);
|
||||||
free(v);
|
free(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue