Commit 8854a56f authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

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: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 7328fa64
...@@ -88,8 +88,8 @@ static void virtio_gpu_primary_plane_update(struct drm_plane *plane, ...@@ -88,8 +88,8 @@ static void virtio_gpu_primary_plane_update(struct drm_plane *plane,
(vgdev, handle, 0, (vgdev, handle, 0,
cpu_to_le32(plane->state->src_w >> 16), cpu_to_le32(plane->state->src_w >> 16),
cpu_to_le32(plane->state->src_h >> 16), cpu_to_le32(plane->state->src_h >> 16),
plane->state->src_x >> 16, cpu_to_le32(plane->state->src_x >> 16),
plane->state->src_y >> 16, NULL); cpu_to_le32(plane->state->src_y >> 16), NULL);
} }
} else { } else {
handle = 0; handle = 0;
......
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