drm/ttm: use gem vma_node
Drop vma_node from ttm_buffer_object, use the gem struct (base.vma_node) instead. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Christian König <christian.koenig@amd.com> Link: http://patchwork.freedesktop.org/patch/msgid/20190805140119.7337-9-kraxel@redhat.com
This commit is contained in:
@@ -835,7 +835,7 @@ int vmw_bo_alloc_ioctl(struct drm_device *dev, void *data,
|
||||
goto out_no_bo;
|
||||
|
||||
rep->handle = handle;
|
||||
rep->map_handle = drm_vma_node_offset_addr(&vbo->base.vma_node);
|
||||
rep->map_handle = drm_vma_node_offset_addr(&vbo->base.base.vma_node);
|
||||
rep->cur_gmr_id = handle;
|
||||
rep->cur_gmr_offset = 0;
|
||||
|
||||
@@ -1077,7 +1077,7 @@ int vmw_dumb_map_offset(struct drm_file *file_priv,
|
||||
if (ret != 0)
|
||||
return -EINVAL;
|
||||
|
||||
*offset = drm_vma_node_offset_addr(&out_buf->base.vma_node);
|
||||
*offset = drm_vma_node_offset_addr(&out_buf->base.base.vma_node);
|
||||
vmw_bo_unreference(&out_buf);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user