From: Antonio Caggiano <antonio.caggiano@collabora.com>
To: qemu-devel@nongnu.org
Subject: [PATCH v2 0/8] virtio-gpu: Support Venus Vulkan driver
Date: Wed, 28 Jul 2021 15:46:26 +0200 [thread overview]
Message-ID: <20210728134634.2142156-1-antonio.caggiano@collabora.com> (raw)
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
next reply other threads:[~2021-07-28 13:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-28 13:46 Antonio Caggiano [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210728134634.2142156-1-antonio.caggiano@collabora.com \
--to=antonio.caggiano@collabora.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.