diff options
author | Dave Airlie <airlied@redhat.com> | 2012-04-02 06:46:06 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-23 05:46:27 -0400 |
commit | 129b78bfca591e736e56a294f0e357d73d938f7e (patch) | |
tree | b5754d4b12346b67077ac3b2239c04bda37bf6a0 /drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | |
parent | 96503f592fd729f296f5870a57be0417eeffc92a (diff) |
ttm: add prime sharing support to TTM (v2)
This adds the ability for ttm common code to take an SG table
and use it as the backing for a slave TTM object.
The drivers can then populate their GTT tables using the SG object.
v2: make sure to setup VM for sg bos as well.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_resource.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index a37abb581cbb..22bf9a21ec71 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | |||
@@ -1567,7 +1567,7 @@ int vmw_dmabuf_init(struct vmw_private *dev_priv, | |||
1567 | ret = ttm_bo_init(bdev, &vmw_bo->base, size, | 1567 | ret = ttm_bo_init(bdev, &vmw_bo->base, size, |
1568 | ttm_bo_type_device, placement, | 1568 | ttm_bo_type_device, placement, |
1569 | 0, 0, interruptible, | 1569 | 0, 0, interruptible, |
1570 | NULL, acc_size, bo_free); | 1570 | NULL, acc_size, NULL, bo_free); |
1571 | return ret; | 1571 | return ret; |
1572 | } | 1572 | } |
1573 | 1573 | ||