All of lore.kernel.org
 help / color / mirror / Atom feed
* How to enable graphics acceleration on qemux86-64?
@ 2021-10-08  8:26 Manuel Wagesreither
  2021-10-08  9:00 ` [yocto] " Alexander Kanavin
  0 siblings, 1 reply; 10+ messages in thread
From: Manuel Wagesreither @ 2021-10-08  8:26 UTC (permalink / raw)
  To: yocto

Hello all,

How can I enable graphics acceleration on qemux86-64? My image is using wayland with weston and the GUI is not exactly fast.

* When I do `runqemu slirp kvm gtk`, it throws the following error: `runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: Display 'gtk' is not available.`
* `runqemu slirp kvm sdl` works, but the weston GUI does not seem to be accelerated.
* `runqemu slirp kvm sdl gl` emits the following: `runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: OpenGL support is disabled`

Below I'm posting a snippet of `poky/scripts/runqemu` to have at hand the qemu options enabled by the runqemu options mentioned above:
```
            elif arg == 'sdl':
                if 'gl' in sys.argv[1:]:
                    self.qemu_opt_script += ' -vga virtio -display sdl,gl=on'
                elif 'gl-es' in sys.argv[1:]:
                    self.qemu_opt_script += ' -vga virtio -display sdl,gl=es'
                else:
                    self.qemu_opt_script += ' -display sdl'
            elif arg == 'gtk':
                if 'gl' in sys.argv[1:]:
                    self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
                elif 'gl-es' in sys.argv[1:]:
                    self.qemu_opt_script += ' -vga virtio -display gtk,gl=es'
                else:
                    self.qemu_opt_script += ' -display gtk'
```

Kind regards,
Manuel


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-10-25  7:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  8:26 How to enable graphics acceleration on qemux86-64? Manuel Wagesreither
2021-10-08  9:00 ` [yocto] " Alexander Kanavin
2021-10-13 19:20   ` Manuel Wagesreither
2021-10-13 19:31     ` Alexander Kanavin
2021-10-13 20:09       ` Manuel Wagesreither
2021-10-13 20:56         ` Alexander Kanavin
2021-10-16 12:08           ` Manuel Wagesreither
2021-10-17 11:32             ` Alexander Kanavin
2021-10-24 21:28               ` Manuel Wagesreither
2021-10-25  7:16                 ` Alexander Kanavin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.