]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5268038599ad25ecb02a5e54ab71336aa66dd967
tree95cac27c6ed35761467a490534b9d51eefffec66
parent96f21ad6d273e42ce42fd1152432fc995c4d6dd0
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