mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
etnaviv: stop leaking the dummy texure descriptor BO
Free the dummy texture descriptor BO on context destroy. Fixes:eda73d7127(etnaviv: GC7000: Texture descriptors) Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Guido Günther <agx@sigxcpu.org> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Cc: <mesa-stable@lists.freedesktop.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6986> (cherry picked from commit9d5ec7f6f2)
This commit is contained in:
parent
eebdf4d28c
commit
ea455f0465
2 changed files with 4 additions and 1 deletions
|
|
@ -2074,7 +2074,7 @@
|
|||
"description": "etnaviv: stop leaking the dummy texure descriptor BO",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "eda73d71277a0dd9d7832da96c2aaca2dd513d4d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -130,6 +130,9 @@ etna_context_destroy(struct pipe_context *pctx)
|
|||
}
|
||||
mtx_unlock(&ctx->lock);
|
||||
|
||||
if (ctx->dummy_desc_bo)
|
||||
etna_bo_del(ctx->dummy_desc_bo);
|
||||
|
||||
if (ctx->dummy_rt)
|
||||
etna_bo_del(ctx->dummy_rt);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue