mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 19:51:25 -04:00
drm/qxl/ttm: use new init path for manager
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-18-airlied@gmail.com
This commit is contained in:
@@ -222,11 +222,10 @@ static int qxl_ttm_init_mem_type(struct qxl_device *qdev,
|
||||
{
|
||||
struct ttm_mem_type_manager *man = &qdev->mman.bdev.man[type];
|
||||
|
||||
man->func = &ttm_bo_manager_func;
|
||||
man->available_caching = TTM_PL_MASK_CACHING;
|
||||
man->default_caching = TTM_PL_FLAG_CACHED;
|
||||
|
||||
return ttm_bo_init_mm(&qdev->mman.bdev, type, size);
|
||||
return ttm_range_man_init(&qdev->mman.bdev, man, size);
|
||||
}
|
||||
|
||||
int qxl_ttm_init(struct qxl_device *qdev)
|
||||
|
||||
Reference in New Issue
Block a user