drm/virtio: fix endianness in primary_plane_update
virtio_gpu_cmd_transfer_to_host_2d expects x and y parameters in LE, but virtio_gpu_primary_plane_update passes in the CPU format instead. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Родитель
7328fa64aa
Коммит
8854a56f3e
|
@ -88,8 +88,8 @@ static void virtio_gpu_primary_plane_update(struct drm_plane *plane,
|
|||
(vgdev, handle, 0,
|
||||
cpu_to_le32(plane->state->src_w >> 16),
|
||||
cpu_to_le32(plane->state->src_h >> 16),
|
||||
plane->state->src_x >> 16,
|
||||
plane->state->src_y >> 16, NULL);
|
||||
cpu_to_le32(plane->state->src_x >> 16),
|
||||
cpu_to_le32(plane->state->src_y >> 16), NULL);
|
||||
}
|
||||
} else {
|
||||
handle = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче