diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2018-03-14 11:18:15 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2018-03-19 14:52:01 +0100 |
commit | defb1dede586fd3dc25aa7eb246d82858a7afd56 (patch) | |
tree | 2ae44a51abe14295bb95f45c817db2b53c3cd4ff /vmwgfx_kms.c | |
parent | ef3d75860a6bf78d65cfa564c02b769e304dcd60 (diff) |
vmwgfx: Unpin the screen object backup buffer when not used
We were relying on the pinned screen object backup buffer to be destroyed
when not used. But if we hold a copy of the atomic state, like when
hibernating, the backup buffer might not be destroyed since it's
refcounted by the atomic state. This causes us to hibernate with a
buffer pinned in VRAM.
Fix this by only having the buffer pinned when it is actually used by a
screen object.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'vmwgfx_kms.c')
0 files changed, 0 insertions, 0 deletions