Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/gpu/drm/virtio/virtgpu_plane.c
··· 88 88 (vgdev, handle, 0, 89 89 cpu_to_le32(plane->state->src_w >> 16), 90 90 cpu_to_le32(plane->state->src_h >> 16), 91 - plane->state->src_x >> 16, 92 - plane->state->src_y >> 16, NULL); 91 + cpu_to_le32(plane->state->src_x >> 16), 92 + cpu_to_le32(plane->state->src_y >> 16), NULL); 93 93 } 94 94 } else { 95 95 handle = 0;