]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk-gl-area.c
configure: Improve OpenGL dependency detections
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Tue, 23 Feb 2021 06:03:07 +0000 (15:03 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Mar 2021 08:35:30 +0000 (09:35 +0100)
commitbc6a3565c89243f0aaa24bac6dc37fb52b16d5c5
treec67c6b57bd5832fbf17c70bc2fae1d9c91d54b91
parentd9c32b8f7f5f05511d77a1ec1d1d35bf7bff2961
configure: Improve OpenGL dependency detections

This has the following visible changes:

- GBM is required only for OpenGL dma-buf.
- X11 is explicitly required by gtk-egl.
- EGL is now mandatory for the OpenGL displays.

The last one needs some detailed description. Before this change,
EGL was tested only for OpenGL dma-buf with the check of
EGL_MESA_image_dma_buf_export. However, all of the OpenGL
displays depend on EGL and EGL_MESA_image_dma_buf_export is always
defined by epoxy's EGL interface.
Therefore, it makes more sense to always check the presence of EGL
and say the OpenGL displays are available along with OpenGL dma-buf
if it is present.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210223060307.87736-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
configure
docs/interop/vhost-user.json
include/ui/egl-helpers.h
include/ui/spice-display.h
meson.build
ui/egl-helpers.c
ui/gtk-egl.c
ui/gtk-gl-area.c
ui/gtk.c
ui/meson.build