blob: 5a4bee368e7b7de3a90ebd8a66ffc46f389e74e0 (
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
|
simulate x86_64 virtio-gpu-gl qemu report error
Description of problem:
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.
```
Additional information:
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
|