All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] virtio-gpu: Support Venus Vulkan driver
@ 2021-07-28 13:46 Antonio Caggiano
  2021-07-28 13:46 ` [PATCH v2 1/8] virtio-gpu: CONTEXT_INIT feature Antonio Caggiano
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Antonio Caggiano @ 2021-07-28 13:46 UTC (permalink / raw)
  To: qemu-devel

This series of patches enables support for the Venus VirtIO-GPU Vulkan
driver by adding some features required by the driver:

- CONTEXT_INIT
- HOSTMEM
- RESOURCE_UUID
- BLOB_RESOURCES

In addition to these features, Venus capset support was required
together with the implementation for Virgl blob resource commands.

With this in place, QEMU can take advantage of GPU acceleration to
render a simple program such as vkcube [0] in headless mode [1]. Further
work is needed to enable rendering with other kinds of surfaces.

Tested with Chia-I Wu kernel venus-5 branch [2], Mesa v21.1 [3], and my
WIP virglrenderer res-mapping branch [4].

Relevant QEMU command line parameters:

-m 4G \
-object memory-backend-memfd,id=mem1,size=4G \
-machine memory-backend=mem1 \
-display gtk,gl=on,show-cursor=on \
-vga none \
-device virtio-vga-gl,blob=true,hostmem=1G \

v2: Split shared memory capability commit.

[0] https://github.com/krh/vkcube
[1] https://share.collabora.com/index.php/s/RM5igzZMH2o749W/preview
[2] https://gitlab.freedesktop.org/olv/drm-misc-next/-/tree/venus-5
[3] https://gitlab.freedesktop.org/mesa/mesa/-/tree/21.1
[4] https://gitlab.freedesktop.org/Fahien/virglrenderer/-/tree/res-mapping

Antonio Caggiano (6):
  virtio-gpu: CONTEXT_INIT feature
  virtio-gpu: Shared memory capability
  virtio-gpu: Resource UUID
  virtio-gpu: Support Venus capset
  virtio-gpu: Initialize Venus
  virtio-gpu: Handle resource blob commands

Dr. David Alan Gilbert (1):
  virtio: Add shared memory capability

Gerd Hoffmann (1):
  virtio-gpu: hostmem [wip]

 hw/display/trace-events                     |   1 +
 hw/display/virtio-gpu-base.c                |   8 +
 hw/display/virtio-gpu-pci.c                 |  14 ++
 hw/display/virtio-gpu-virgl.c               | 184 +++++++++++++++++++-
 hw/display/virtio-gpu.c                     |  36 +++-
 hw/display/virtio-vga.c                     |  32 +++-
 hw/virtio/virtio-pci.c                      |  19 ++
 hw/virtio/virtio-pci.h                      |   4 +
 include/hw/virtio/virtio-gpu-bswap.h        |  20 ++-
 include/hw/virtio/virtio-gpu.h              |  10 ++
 include/standard-headers/linux/virtio_gpu.h |  16 +-
 meson.build                                 |   1 +
 12 files changed, 318 insertions(+), 27 deletions(-)

-- 
2.30.2



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-07-30 10:06 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 13:46 [PATCH v2 0/8] virtio-gpu: Support Venus Vulkan driver Antonio Caggiano
2021-07-28 13:46 ` [PATCH v2 1/8] virtio-gpu: CONTEXT_INIT feature Antonio Caggiano
2021-07-30  9:45   ` Gerd Hoffmann
2021-07-28 13:46 ` [PATCH v2 2/8] virtio-gpu: hostmem [wip] Antonio Caggiano
2021-07-28 18:46   ` Philippe Mathieu-Daudé
2021-07-30  9:49   ` Gerd Hoffmann
2021-07-28 13:46 ` [PATCH v2 3/8] virtio: Add shared memory capability Antonio Caggiano
2021-07-28 13:46 ` [PATCH v2 4/8] virtio-gpu: Shared " Antonio Caggiano
2021-07-30  9:52   ` Gerd Hoffmann
2021-07-28 13:46 ` [PATCH v2 5/8] virtio-gpu: Resource UUID Antonio Caggiano
2021-07-30  9:57   ` Gerd Hoffmann
2021-07-28 13:46 ` [PATCH v2 6/8] virtio-gpu: Support Venus capset Antonio Caggiano
2021-07-30  9:59   ` Gerd Hoffmann
2021-07-28 13:46 ` [PATCH v2 7/8] virtio-gpu: Initialize Venus Antonio Caggiano
2021-07-28 18:44   ` Philippe Mathieu-Daudé
2021-07-30 10:00   ` Gerd Hoffmann
2021-07-28 13:46 ` [PATCH v2 8/8] virtio-gpu: Handle resource blob commands Antonio Caggiano
2021-07-30 10:04   ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.