blob: bb48dab813cd52103e4ee5f2d66efaf26604a739 (
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
|
id = 1346
title = "simulate x86_64 virtio-gpu-gl qemu report error"
state = "opened"
created_at = "2022-11-29T05:21:33.074Z"
closed_at = "n/a"
labels = ["device:graphics", "device:virtio"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/1346"
host-os = "(ubuntu 22.04)"
host-arch = "(x86)"
qemu-version = "(7.1.92)"
guest-os = "(myos)"
guest-arch = "(x86)"
description = """when I run the below command, it can run ok, and myos can get the virtio-gpu feature,but it less 3d feature.
```
./qemu-system-x86_64 -nographic -M q35 -m 1024 -cpu Nehalem -smp 8 -kernel myos -device virtio-gpu
```
so I delete ```-nographic``` and modify the device to :
```
-device virtio-gpu-gl -display sdl,gl=on
```
but qemu tells me ERROR:
```
qemu-system-x86_64: ../ui/console-gl.c:105: surface_gl_update_texture: Assertion `gls' failed.
```"""
reproduce = "n/a"
additional = """I modify the code qemu/ui/sdl2-gl.c function sdl2_gl_switch():
`
#if 0
if (is_placeholder(new_surface) && qemu_console_get_index(dcl->con)) {
qemu_gl_fini_shader(scon->gls);
scon->gls = NULL;
sdl2_window_destroy(scon);
return;
}
#endif
`
and, qemu can run myos with ```-nographic```, and i can get 3d feature:
```
./qemu-system-x86_64 -nographic -M q35 -m 1024 -cpu Nehalem -smp 8 -kernel myos -device virtio-gpu-gl -display sdl,gl=on
```
I think there is something bug.
thanks"""
|