drm/vmwgfx: stop using ttm_bo_create v2

Implement in the driver instead since it is the only user of that function.

v2: fix usage of ttm_bo_init_reserved

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.freedesktop.org/patch/391614/?series=81973&rev=1
This commit is contained in:
Christian König
2020-09-21 14:14:32 +02:00
parent a3b3bef335
commit b254557cb2
4 changed files with 53 additions and 8 deletions

View File

@@ -1245,9 +1245,9 @@ int vmw_cmdbuf_set_pool_size(struct vmw_cmdbuf_man *man,
!dev_priv->has_mob)
return -ENOMEM;
ret = ttm_bo_create(&dev_priv->bdev, size, ttm_bo_type_device,
&vmw_mob_ne_placement, 0, false,
&man->cmd_space);
ret = vmw_bo_create_kernel(dev_priv, size,
&vmw_mob_placement,
&man->cmd_space);
if (ret)
return ret;