提交 354fb52c 编写于 作者: T Thomas Hellstrom 提交者: Dave Airlie

drm/ttm: Make sure system buffer objects has offset == 0.

This is a convention that the vmwgfx driver has come to rely on.
Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 d9f36a00
......@@ -426,7 +426,8 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
bdev->man[bo->mem.mem_type].gpu_offset;
bo->cur_placement = bo->mem.placement;
spin_unlock(&bo->lock);
}
} else
bo->offset = 0;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册