[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 1/8] vhost-user: add vhost_user_gpu_set_socke
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v7 1/8] vhost-user: add vhost_user_gpu_set_socket() |
Date: |
Tue, 14 May 2019 07:37:47 +0200 |
User-agent: |
NeoMutt/20180716 |
Hi,
> +VhostUserGpuCursorUpdate
> +^^^^^^^^^^^^^^^^^^^^^^^^
> +
> ++-----+-------+-------+--------+
> +| pos | hot_x | hot_y | cursor |
> ++-----+-------+-------+--------+
> +
> +:pos: a ``VhostUserGpuCursorPos``, the cursor location
> +
> +:hot_x/hot_y: ``u32``, the cursor hot location
> +
> +:cursor: ``[u32; 64 * 64]``, 64x64 RGBA cursor data
Should clarify here what exactly RGBA is. (PIXMAN_a8r8g8b8 I guess).
> +VhostUserGpuUpdate
> +^^^^^^^^^^^^^^^^^^
> +
> ++------------+---+---+---+---+------+
> +| scanout-id | x | y | w | h | data |
> ++------------+---+---+---+---+------+
> +
> +:scanout-id: ``u32``, the scanout content to update
> +
> +:x/y/w/h: ``u32``, region of the update
> +
> +:data: RGBA data (the size is computed based on the region size, and
> + the request type)
Likewise. Also: alpha channel for the framebuffer?
> +C structure
> +-----------
> +
> +In QEMU the vhost-user-gpu message is implemented with the following struct:
> +
> +.. code:: c
> +
> + typedef struct VhostUserGpuMsg {
> + uint32_t request; /* VhostUserGpuRequest */
> + uint32_t flags;
> + uint32_t size; /* the following payload size */
uint32_t padding;
> + union {
> + VhostUserGpuCursorPos cursor_pos;
> + VhostUserGpuCursorUpdate cursor_update;
> + VhostUserGpuScanout scanout;
> + VhostUserGpuUpdate update;
> + VhostUserGpuDMABUFScanout dmabuf_scanout;
> + struct virtio_gpu_resp_display_info display_info;
> + uint64_t u64;
... so this 64bit value will be aligned.
cheers,
Gerd
- [Qemu-devel] [PATCH v7 0/8] Add vhost-user-gpu, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 2/8] virtio-gpu: add bswap helpers header, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 3/8] virtio-gpu: add a pixman helper header, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 4/8] util: compile drm.o on Linux, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 5/8] contrib: add vhost-user-gpu, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 6/8] virtio-gpu: split virtio-gpu, introduce virtio-gpu-base, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 7/8] virtio-gpu: split virtio-gpu-pci & virtio-vga, Marc-André Lureau, 2019/05/13
- [Qemu-devel] [PATCH v7 8/8] hw/display: add vhost-user-vga & gpu-pci, Marc-André Lureau, 2019/05/13