qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Weifeng Liu <weifeng.liu.z@gmail.com>
To: qemu-devel@nongnu.org,
	Gurchetan Singh <gurchetansingh@chromium.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>
Cc: "Weifeng Liu" <weifeng.liu.z@gmail.com>,
	"Antonio Caggiano" <antonio.caggiano@collabora.com>,
	"Huang Rui" <ray.huang@amd.com>,
	"Dmitry Osipenko" <dmitry.osipenko@collabora.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [PATCH 3/3] virtio-gpu: rutabaga: Add options to enable virgl and venus contexts
Date: Wed,  5 Jun 2024 23:28:30 +0800	[thread overview]
Message-ID: <20240605152832.11618-4-weifeng.liu.z@gmail.com> (raw)
In-Reply-To: <20240605152832.11618-1-weifeng.liu.z@gmail.com>

With this change, people will be able to use parameter like the one
below to add start virglrenderer backed virtio-gpu-rutabaga device:

    -device virtio-vga-rutabaga,venus=on,virgl2=on,wsi=surfaceless

Performance being suboptimal though, this would be the first step.

Signed-off-by: Weifeng Liu <weifeng.liu.z@gmail.com>
---
 hw/display/virtio-gpu-rutabaga.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/display/virtio-gpu-rutabaga.c b/hw/display/virtio-gpu-rutabaga.c
index ecb146315a..85bc33af8c 100644
--- a/hw/display/virtio-gpu-rutabaga.c
+++ b/hw/display/virtio-gpu-rutabaga.c
@@ -1203,6 +1203,10 @@ static Property virtio_gpu_rutabaga_properties[] = {
                       RUTABAGA_CAPSET_GFXSTREAM_GLES, false),
     DEFINE_PROP_BIT64("x-gfxstream-composer", VirtIOGPURutabaga, capset_mask,
                       RUTABAGA_CAPSET_GFXSTREAM_COMPOSER, false),
+    DEFINE_PROP_BIT64("venus", VirtIOGPURutabaga, capset_mask,
+                      RUTABAGA_CAPSET_VENUS, false),
+    DEFINE_PROP_BIT64("virgl2", VirtIOGPURutabaga, capset_mask,
+                      RUTABAGA_CAPSET_VIRGL2, false),
     DEFINE_PROP_STRING("wayland-socket-path", VirtIOGPURutabaga,
                        wayland_socket_path),
     DEFINE_PROP_STRING("wsi", VirtIOGPURutabaga, wsi),
-- 
2.45.0



  parent reply	other threads:[~2024-06-05 15:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-05 15:28 [PATCH 0/3] virtio-gpu: Enable virglrenderer backend for rutabaga Weifeng Liu
2024-06-05 15:28 ` [PATCH 1/3] virtio-gpu: rutabaga: Properly set stride when copying resources Weifeng Liu
2024-06-10  7:44   ` Marc-André Lureau
2024-06-14 23:50     ` Gurchetan Singh
2024-06-05 15:28 ` [PATCH 2/3] virtio-gpu: rutabaga: Poll rutabaga upon events Weifeng Liu
2024-06-05 15:28 ` Weifeng Liu [this message]
2024-06-06 10:43 ` [PATCH 0/3] virtio-gpu: Enable virglrenderer backend for rutabaga Alex Bennée
2024-06-07  6:47   ` Weifeng Liu
2024-06-07 11:10     ` Alex Bennée

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=20240605152832.11618-4-weifeng.liu.z@gmail.com \
    --to=weifeng.liu.z@gmail.com \
    --cc=antonio.caggiano@collabora.com \
    --cc=dmitry.osipenko@collabora.com \
    --cc=gurchetansingh@chromium.org \
    --cc=kraxel@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=ray.huang@amd.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).