id = 2490 title = "Windows: virtio-vga-gl no longer works with current virglrenderer version" state = "closed" created_at = "2024-08-07T17:18:47.267Z" closed_at = "2024-08-13T00:56:19.245Z" labels = ["device:graphics", "device:virtio", "hostos: Windows"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2490" host-os = "Windows 10 22H2" host-arch = "x86_64" qemu-version = "8.2.50 (v8.2.0-rc0-1576-g574b64aa67-dirty)" guest-os = "openSUSE Leap 15.3" guest-arch = "x86_64" description = """Error occurs, when executing QEMU with virtio-vga-gl device using current virglrenderer: First the boot screen is shown as expected. After a short while the screen shows and keeps showing "virtio-vga-gl: Display output is not active." Console logs: ``` qemu: GtkGLArea console lacks DMABUF support. qemu: GtkGLArea console lacks DMABUF support. qemu: GtkGLArea console lacks DMABUF support. qemu: GtkGLArea console lacks DMABUF support. Realize gdk gl context failed: GL-Kontext kann nicht erstellt werden Realize gdk gl context failed: GL-Kontext kann nicht erstellt werden virtio_gpu_virgl_process_cmd: ctrl 0x103, error 0x1203 virtio_gpu_virgl_process_cmd: ctrl 0x103, error 0x1203 virtio_gpu_virgl_process_cmd: ctrl 0x103, error 0x1203 ```""" reproduce = """1. Prepare current Msys2/Ucrt64 environment including virglrenderer 1.0.1 by installing QEMU as described in https://www.qemu.org/download/#windows 2. `wget https://download.opensuse.org/distribution/leap/15.3/live/openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso` 3. `qemu-system-x86_64.exe -m 1024 -display gtk,gl=on -device virtio-vga-gl -cdrom openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso`""" additional = """virglrenderer may use certain D3D features starting with virglrenderer 1.0.0, see https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1103 for details Given virglrenderer >= 1.0.0, QEMU activates these D3D features since https://gitlab.com/qemu-project/qemu/-/commit/c1600f84ce011a056c9c432c8ad8d77f7f8b9e6f. But the current QEMU implementation is broken when using these D3D features. git bisect finishes with: ``` 574b64aa6754ba491f51024c5a823a674d48a658 is the first bad commit commit 574b64aa6754ba491f51024c5a823a674d48a658 Author: Dmitry Osipenko Date: Mon Jan 29 10:39:21 2024 +0300 virtio-gpu: Correct virgl_renderer_resource_get_info() error check virgl_renderer_resource_get_info() returns errno and not -1 on error. Correct the return-value check. Reviewed-by: Marc-André Lureau Signed-off-by: Dmitry Osipenko Message-Id: <20240129073921.446869-1-dmitry.osipenko@collabora.com> Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin contrib/vhost-user-gpu/virgl.c | 6 +++--- hw/display/virtio-gpu-virgl.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) ```"""