mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 09:30:11 +01:00
ilo: unmap cp bo before destroying it
The BOs are mapped in their entire life times for the chipsets we support so do not forget to unmap it.
This commit is contained in:
parent
27804b2fc7
commit
7cbf0a410e
1 changed files with 6 additions and 1 deletions
|
|
@ -256,8 +256,13 @@ ilo_cp_flush(struct ilo_cp *cp)
|
|||
void
|
||||
ilo_cp_destroy(struct ilo_cp *cp)
|
||||
{
|
||||
if (cp->bo)
|
||||
if (cp->bo) {
|
||||
if (!cp->sys)
|
||||
cp->bo->unmap(cp->bo);
|
||||
|
||||
cp->bo->unreference(cp->bo);
|
||||
}
|
||||
|
||||
if (cp->render_ctx)
|
||||
cp->winsys->destroy_context(cp->winsys, cp->render_ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue