drm/vmwgfx: Always evict vram _before_ disabling it
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Dec 2020 16:29:41 +0000 (17:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 18 Jan 2021 13:15:20 +0000 (14:15 +0100)
commitade94143020a16b1ee968470aec75e25ddd2bce9
treea62aa6edee84ff901b48e702cf4822d8214d2a57
parentff36baf8075585205ae074096a10254de7d183b9
drm/vmwgfx: Always evict vram _before_ disabling it

Other way round is a bit inconsistent (but not buggy in any kind).
This is prep work so that ttm_resource_manager_set_used can assert
that the resource manager is empty.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Roland Scheidegger <sroland@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201211162942.3399050-2-daniel.vetter@ffwll.ch
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c