All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/23] Enable accelerated OpenGL in qemu
@ 2019-01-14 15:02 Alexander Kanavin
  2019-01-14 15:02 ` [PATCH 01/23] gtk+3: enable native/nativesdk variant Alexander Kanavin
                   ` (23 more replies)
  0 siblings, 24 replies; 38+ messages in thread
From: Alexander Kanavin @ 2019-01-14 15:02 UTC (permalink / raw)
  To: openembedded-core

0. TLDR:

$ . oe-init-build-env build-virgl
$ bitbake core-image-sato-sdk
$ runqemu kvm gl
$$ run glxgears or any other GL-capable binary inside qemu

1. qemu is switched over to use gtk frontend. I simply couldn't get SDL 
frontend to work properly, it only displays a blank black window or doesn't 
start at all. Same thing happens with qemu binaries provided by Fedora and 
opensuse (Ubuntu's qemu lacks virgl support). Seems like SDL support has 
regressed.

2. While the components are built against the most minimum necessary 
mesa-native set (gbm, egl, dri with no drivers), libepoxy loads and uses the 
host GL implementation (through a chrpath hack). This is both to save build 
times, and because the host is likely to have a set of drivers more 
appropriate for the physical machine (e.g. proprietary nvidia stack, 
although I didn't test that).

3. I tested this with
- glamor X server
- weston compositor with drm backend (build core-image-weston, then edit 
  weston.ini in the image to use drm backed instead of fbdev).
- kmscube
- glxgears
- https://www.geeks3d.com/gputest/

The latter two show FPS that is similar to running them directly on the host.

4. Some things I am not sure about:

 - how much of a 'default' should this be for running qemu. It works for me, 
but other people might find it less stable compared to the existing 
sdl-vmware-swrast setup.

- what other tests and demos could be run

- how could this be tested on the autobuilder. I wrote an oe-selftest for 
this, but it does require an X session, and ability to create opengl 
contexts on the host.

The following changes since commit 0c9f6e9bb18b2a52b5a5e828772a9619ee4d8515:

  strace: add lost Upstream-Status (2019-01-14 11:49:07 +0000)

are available in the Git repository at:

  git://git.yoctoproject.org/poky-contrib akanavin/virgl-gtk
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=akanavin/virgl-gtk

Alexander Kanavin (23):
  gtk+3: enable native/nativesdk variant
  gtk+3: remove the gtk-icon-utils-native recipe
  shared-mime-info: update the database also in native builds
  gtk+: drop support for choosing between 2.x and 3.x implementations of
    gtk-update-icon-cache
  pixbufcache.bbclass: remove a dependency loop introduced by enabling
    gtk+3-native
  meta: add native and nativesdk variants to various recipes to enable
    gtk+3-native/nativesdk
  libepoxy: enable native/nativesdk variants
  mesa: enable native and nativesdk variants
  virglrenderer: add a recipe
  qemu: enable virglrenderer and glx options for native/nativesdk builds
  qemu: drop --with-gtkabi option, as it is no longer supported
  mesa-gl: do not enable nativesdk variant to avoid clashes with main
    mesa recipe
  local.conf.sample: adjust the qemu config to enable gtk+ instead of
    sdl
  qemu: build target variant with gtk+, and nativesdk variant without
    sdl
  qemu: remove support for building against host sdl
  atk: disable gobject-introspection for nativesdk
  qemu: add a gettext-native dependency
  libjpeg-turbo: fix nativesdk build in same way as native builds are
  qemu: add a patch to avoid a missing include error
  runqemu: add support for virgl GL acceleration
  runqemu: do not check for GL libraries
  qemu: add environment variable wrappers to make qemu look good with
    gtk frontend
  selftest: add a test for virgl GL acceleration

 meta-poky/conf/local.conf.sample              |  10 +-
 meta-selftest/lib/oeqa/runtime/cases/virgl.py |  17 +++
 meta/classes/pixbufcache.bbclass              |   2 +-
 meta/conf/machine/include/qemuboot-x86.inc    |   2 +-
 meta/lib/oeqa/selftest/cases/runtime_test.py  |  19 ++++
 meta/recipes-devtools/qemu/qemu.inc           |  40 ++++---
 .../qemu/0001-Add-a-missing-X11-include.patch |  23 ++++
 meta/recipes-devtools/qemu/qemu_3.1.0.bb      |   1 +
 .../gdk-pixbuf/gdk-pixbuf_2.36.11.bb          |   2 +-
 .../gnome/adwaita-icon-theme_3.28.0.bb        |   2 +
 meta/recipes-gnome/gtk+/gtk+.inc              |   5 +-
 meta/recipes-gnome/gtk+/gtk+3.inc             |  29 +++--
 .../gtk+/gtk-icon-utils-native_3.22.30.bb     |  63 -----------
 ...endency-from-gtk-encode-symbolic-svg.patch | 102 ------------------
 .../hicolor-icon-theme_0.17.bb                |   2 +
 meta/recipes-graphics/cairo/cairo_1.14.12.bb  |   2 +-
 .../harfbuzz/harfbuzz_2.2.0.bb                |   2 +-
 .../jpeg/libjpeg-turbo_2.0.1.bb               |   3 +-
 .../libepoxy/libepoxy_1.5.3.bb                |  12 +++
 meta/recipes-graphics/mesa/mesa-gl_18.1.9.bb  |   2 +
 meta/recipes-graphics/mesa/mesa.inc           |  12 ++-
 meta/recipes-graphics/pango/pango_1.42.4.bb   |   2 +-
 .../ttf-fonts/liberation-fonts_2.00.1.bb      |   2 +
 .../virglrenderer/virglrenderer_git.bb        |  17 +++
 .../xorg-lib/libxcomposite_0.4.4.bb           |   2 +-
 .../xorg-lib/libxdamage_1.1.4.bb              |   2 +-
 meta/recipes-graphics/xorg-lib/libxi_1.7.9.bb |   2 +
 .../xorg-lib/libxtst_1.2.3.bb                 |   1 +
 .../recipes-support/atk/at-spi2-atk_2.30.0.bb |   2 +
 .../atk/at-spi2-core_2.30.0.bb                |   1 +
 meta/recipes-support/atk/atk_2.30.0.bb        |   4 +-
 .../shared-mime-info/shared-mime-info.inc     |   2 +
 meta/recipes-support/vte/vte_0.52.2.bb        |   2 +
 scripts/runqemu                               |  46 ++------
 34 files changed, 193 insertions(+), 244 deletions(-)
 create mode 100644 meta-selftest/lib/oeqa/runtime/cases/virgl.py
 create mode 100644 meta/recipes-devtools/qemu/qemu/0001-Add-a-missing-X11-include.patch
 delete mode 100644 meta/recipes-gnome/gtk+/gtk-icon-utils-native_3.22.30.bb
 delete mode 100644 meta/recipes-gnome/gtk+/gtk-icon-utils/Remove-Gdk-dependency-from-gtk-encode-symbolic-svg.patch
 create mode 100644 meta/recipes-graphics/virglrenderer/virglrenderer_git.bb

-- 
2.17.1



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

end of thread, other threads:[~2019-01-15 16:13 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-14 15:02 [PATCH 00/23] Enable accelerated OpenGL in qemu Alexander Kanavin
2019-01-14 15:02 ` [PATCH 01/23] gtk+3: enable native/nativesdk variant Alexander Kanavin
2019-01-14 15:02 ` [PATCH 02/23] gtk+3: remove the gtk-icon-utils-native recipe Alexander Kanavin
2019-01-14 15:02 ` [PATCH 03/23] shared-mime-info: update the database also in native builds Alexander Kanavin
2019-01-14 15:03 ` [PATCH 04/23] gtk+: drop support for choosing between 2.x and 3.x implementations of gtk-update-icon-cache Alexander Kanavin
2019-01-14 15:03 ` [PATCH 05/23] pixbufcache.bbclass: remove a dependency loop introduced by enabling gtk+3-native Alexander Kanavin
2019-01-14 15:03 ` [PATCH 06/23] meta: add native and nativesdk variants to various recipes to enable gtk+3-native/nativesdk Alexander Kanavin
2019-01-14 15:03 ` [PATCH 07/23] libepoxy: enable native/nativesdk variants Alexander Kanavin
2019-01-14 15:50   ` Peter Kjellerstedt
2019-01-15 13:25     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 08/23] mesa: enable native and nativesdk variants Alexander Kanavin
2019-01-14 16:05   ` Burton, Ross
2019-01-15 13:30     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 09/23] virglrenderer: add a recipe Alexander Kanavin
2019-01-14 15:03 ` [PATCH 10/23] qemu: enable virglrenderer and glx options for native/nativesdk builds Alexander Kanavin
2019-01-14 15:03 ` [PATCH 11/23] qemu: drop --with-gtkabi option, as it is no longer supported Alexander Kanavin
2019-01-14 15:03 ` [PATCH 12/23] mesa-gl: do not enable nativesdk variant to avoid clashes with main mesa recipe Alexander Kanavin
2019-01-14 16:09   ` Burton, Ross
2019-01-15 13:35     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 13/23] local.conf.sample: adjust the qemu config to enable gtk+ instead of sdl Alexander Kanavin
2019-01-14 15:03 ` [PATCH 14/23] qemu: build target variant with gtk+, and nativesdk variant without sdl Alexander Kanavin
2019-01-14 15:03 ` [PATCH 15/23] qemu: remove support for building against host sdl Alexander Kanavin
2019-01-14 15:03 ` [PATCH 16/23] atk: disable gobject-introspection for nativesdk Alexander Kanavin
2019-01-14 16:05   ` Burton, Ross
2019-01-15 13:33     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 17/23] qemu: add a gettext-native dependency Alexander Kanavin
2019-01-15 14:20   ` Richard Purdie
2019-01-15 15:06     ` Alexander Kanavin
2019-01-15 16:13       ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 18/23] libjpeg-turbo: fix nativesdk build in same way as native builds are Alexander Kanavin
2019-01-14 15:03 ` [PATCH 19/23] qemu: add a patch to avoid a missing include error Alexander Kanavin
2019-01-14 15:03 ` [PATCH 20/23] runqemu: add support for virgl GL acceleration Alexander Kanavin
2019-01-15  6:15   ` Martin Jansa
2019-01-15 13:37     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 21/23] runqemu: do not check for GL libraries Alexander Kanavin
2019-01-14 15:03 ` [PATCH 22/23] qemu: add environment variable wrappers to make qemu look good with gtk frontend Alexander Kanavin
2019-01-14 15:03 ` [PATCH 23/23] selftest: add a test for virgl GL acceleration Alexander Kanavin
2019-01-14 15:11 ` [PATCH 00/23] Enable accelerated OpenGL in qemu 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.