Skip to content
Commit e485382e authored by Christian König's avatar Christian König
Browse files

drm/ttm: fix ttm_bo_swapout



Commit 7120a447 ("drm/ttm: Double check mem_type of BO while eviction")
made ttm_bo_evict_swapout_allowable() function actually check the
placement, but we always used a dummy placement in ttm_bo_swapout.

Fix this by using the real placement instead.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Fixes: 7120a447 ("drm/ttm: Double check mem_type of BO while eviction")
Reviewed-by: default avatarPan, Xinhui <Xinhui.Pan@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211202103828.44573-1-christian.koenig@amd.com
parent 679d94cd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment