drm/vmwgfx: Optimize the buffer object swap_notify callback somewhat.
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 19 Jun 2018 17:20:29 +0000 (19:20 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Jul 2018 18:33:57 +0000 (20:33 +0200)
commit098d7d532bf78ea218b46c1d6887cbb43197ab4e
tree95cac27c6ed35761467a490534b9d51eefffec66
parente9431ea5076a913a3b350cf5f89eacf9375126b1
drm/vmwgfx: Optimize the buffer object swap_notify callback somewhat.

Only try to unmap cached maps when the buffer is moved into or out from
vram. Otherwise the underlying pages stay the same.

Also when unbinding resources from MOBs about to move, make sure we're
really moving out of MOB memory.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c