blob: af2433f425cc6813dfd77af888abb3b1212cf29d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
Windows: virtio-vga-gl no longer works with current virglrenderer version
Description of problem:
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
```
Steps to 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 information:
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 <dmitry.osipenko@collabora.com>
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 <marcandre.lureau@redhat.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Message-Id: <20240129073921.446869-1-dmitry.osipenko@collabora.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/vhost-user-gpu/virgl.c | 6 +++---
hw/display/virtio-gpu-virgl.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
```
|