Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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;