diff options
author | 2020-09-21 14:14:32 +0200 | |
---|---|---|
committer | 2020-09-24 16:16:49 +0200 | |
commit | b254557cb244e2c18e59ee1cc2293128c52d2473 (patch) | |
tree | 037d85ef2fef0eeca92e0775068f386168b5cbdb /drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | |
parent | drm/vmwgfx: remove unused placement combination (diff) | |
download | linux-dev-b254557cb244e2c18e59ee1cc2293128c52d2473.tar.xz linux-dev-b254557cb244e2c18e59ee1cc2293128c52d2473.zip |
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
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c index 3b41cf63110a..9a9fe10d829b 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c @@ -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; |