Commit 2705d14a authored by Christian König's avatar Christian König

drm/qxl: switch to ttm_sg_tt_init

The function qxl_gem_prime_import_sg_table is not fully implemented.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/403833/
parent 4c515bb1
...@@ -115,7 +115,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo, ...@@ -115,7 +115,7 @@ static struct ttm_tt *qxl_ttm_tt_create(struct ttm_buffer_object *bo,
ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL); ttm = kzalloc(sizeof(struct ttm_tt), GFP_KERNEL);
if (ttm == NULL) if (ttm == NULL)
return NULL; return NULL;
if (ttm_dma_tt_init(ttm, bo, page_flags, ttm_cached)) { if (ttm_sg_tt_init(ttm, bo, page_flags, ttm_cached)) {
kfree(ttm); kfree(ttm);
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment