summary refs log tree commit diff stats
path: root/hw/display/virtio-gpu-gl.c
diff options
context:
space:
mode:
authorAntonio Caggiano <antonio.caggiano@collabora.com>2024-10-25 00:03:11 +0300
committerAlex Bennée <alex.bennee@linaro.org>2024-10-28 16:56:36 +0000
commit94d0ea1c19289d76ced934711fccd2269e69bb29 (patch)
tree4fb102e07cb3763894f0eb9afe389645bc89b5af /hw/display/virtio-gpu-gl.c
parent1333fd0693a87bd509c025e6212fcfeced948a15 (diff)
downloadfocaccia-qemu-94d0ea1c19289d76ced934711fccd2269e69bb29.tar.gz
focaccia-qemu-94d0ea1c19289d76ced934711fccd2269e69bb29.zip
virtio-gpu: Support Venus context
Request Venus when initializing VirGL and if venus=true flag is set for
virtio-gpu-gl device.

Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Message-Id: <20241024210311.118220-14-dmitry.osipenko@collabora.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'hw/display/virtio-gpu-gl.c')
-rw-r--r--hw/display/virtio-gpu-gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/display/virtio-gpu-gl.c b/hw/display/virtio-gpu-gl.c
index e859c0dff0..7c0e448b46 100644
--- a/hw/display/virtio-gpu-gl.c
+++ b/hw/display/virtio-gpu-gl.c
@@ -157,6 +157,8 @@ static void virtio_gpu_gl_device_realize(DeviceState *qdev, Error **errp)
 static Property virtio_gpu_gl_properties[] = {
     DEFINE_PROP_BIT("stats", VirtIOGPU, parent_obj.conf.flags,
                     VIRTIO_GPU_FLAG_STATS_ENABLED, false),
+    DEFINE_PROP_BIT("venus", VirtIOGPU, parent_obj.conf.flags,
+                    VIRTIO_GPU_FLAG_VENUS_ENABLED, false),
     DEFINE_PROP_END_OF_LIST(),
 };