[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC QEMU PATCH 08/18] virtio-gpu: Initialize Venus
From: |
Huang Rui |
Subject: |
[RFC QEMU PATCH 08/18] virtio-gpu: Initialize Venus |
Date: |
Sun, 12 Mar 2023 17:22:34 +0800 |
From: Antonio Caggiano <antonio.caggiano@collabora.com>
Request Venus when initializing VirGL.
Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
---
hw/display/virtio-gpu-virgl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c
index fe03dc916f..f5ce206b93 100644
--- a/hw/display/virtio-gpu-virgl.c
+++ b/hw/display/virtio-gpu-virgl.c
@@ -803,7 +803,11 @@ int virtio_gpu_virgl_init(VirtIOGPU *g)
{
int ret;
+#ifdef VIRGL_RENDERER_VENUS
+ ret = virgl_renderer_init(g, VIRGL_RENDERER_VENUS, &virtio_gpu_3d_cbs);
+#else
ret = virgl_renderer_init(g, 0, &virtio_gpu_3d_cbs);
+#endif
if (ret != 0) {
error_report("virgl could not be initialized: %d", ret);
return ret;
--
2.25.1
- [RFC QEMU PATCH 00/18] Add VirtIO GPU and Passthrough GPU support on Xen, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 01/18] virtio: Add shared memory capability, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 02/18] virtio-gpu: hostmem, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 03/18] virtio-gpu: Handle resource blob commands, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 04/18] virtio-gpu: CONTEXT_INIT feature, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 05/18] virtio-gpu: Unrealize, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 06/18] virtio-gpu: Resource UUID, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 07/18] virtio-gpu: Support Venus capset, Huang Rui, 2023/03/12
- [RFC QEMU PATCH 08/18] virtio-gpu: Initialize Venus,
Huang Rui <=
[RFC QEMU PATCH 09/18] meson: Enable virglrenderer unstable APIs, Huang Rui, 2023/03/12
[RFC QEMU PATCH 10/18] virtio-gpu: Handle set scanout blob command, Huang Rui, 2023/03/12
[RFC QEMU PATCH 11/18] virtio-gpu: make blob scanout use dmabuf fd, Huang Rui, 2023/03/12
[RFC QEMU PATCH 12/18] softmmu: Fix the size to map cache with xen for host virtual address, Huang Rui, 2023/03/12