Commit fb7ebc01 authored by Gerd Hoffmann's avatar Gerd Hoffmann

drm/qxl: drop unused offset parameter from qxl_io_create_primary()

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Acked-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-12-kraxel@redhat.com
parent 1f85535c
...@@ -377,8 +377,7 @@ void qxl_io_destroy_primary(struct qxl_device *qdev) ...@@ -377,8 +377,7 @@ void qxl_io_destroy_primary(struct qxl_device *qdev)
qdev->primary_created = false; qdev->primary_created = false;
} }
void qxl_io_create_primary(struct qxl_device *qdev, void qxl_io_create_primary(struct qxl_device *qdev, struct qxl_bo *bo)
unsigned int offset, struct qxl_bo *bo)
{ {
struct qxl_surface_create *create; struct qxl_surface_create *create;
...@@ -389,9 +388,9 @@ void qxl_io_create_primary(struct qxl_device *qdev, ...@@ -389,9 +388,9 @@ void qxl_io_create_primary(struct qxl_device *qdev,
create->height = bo->surf.height; create->height = bo->surf.height;
create->stride = bo->surf.stride; create->stride = bo->surf.stride;
if (bo->shadow) { if (bo->shadow) {
create->mem = qxl_bo_physical_address(qdev, bo->shadow, offset); create->mem = qxl_bo_physical_address(qdev, bo->shadow, 0);
} else { } else {
create->mem = qxl_bo_physical_address(qdev, bo, offset); create->mem = qxl_bo_physical_address(qdev, bo, 0);
} }
DRM_DEBUG_DRIVER("mem = %llx, from %p\n", create->mem, bo->kptr); DRM_DEBUG_DRIVER("mem = %llx, from %p\n", create->mem, bo->kptr);
......
...@@ -557,7 +557,7 @@ static void qxl_primary_atomic_update(struct drm_plane *plane, ...@@ -557,7 +557,7 @@ static void qxl_primary_atomic_update(struct drm_plane *plane,
if (!bo->is_primary) { if (!bo->is_primary) {
if (!same_shadow) { if (!same_shadow) {
qxl_io_create_primary(qdev, 0, bo); qxl_io_create_primary(qdev, bo);
qxl_primary_apply_cursor(plane); qxl_primary_apply_cursor(plane);
} }
bo->is_primary = true; bo->is_primary = true;
......
...@@ -385,7 +385,6 @@ void qxl_update_screen(struct qxl_device *qxl); ...@@ -385,7 +385,6 @@ void qxl_update_screen(struct qxl_device *qxl);
/* qxl io operations (qxl_cmd.c) */ /* qxl io operations (qxl_cmd.c) */
void qxl_io_create_primary(struct qxl_device *qdev, void qxl_io_create_primary(struct qxl_device *qdev,
unsigned int offset,
struct qxl_bo *bo); struct qxl_bo *bo);
void qxl_io_destroy_primary(struct qxl_device *qdev); void qxl_io_destroy_primary(struct qxl_device *qdev);
void qxl_io_memslot_add(struct qxl_device *qdev, uint8_t id); void qxl_io_memslot_add(struct qxl_device *qdev, uint8_t id);
......
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