From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: spice-devel@lists.freedesktop.org,
"Marc-André Lureau" <marcandre.lureau@gmail.com>,
"Gerd Hoffmann" <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH v2 02/12] configure: add dma-buf support detection.
Date: Fri, 19 Feb 2016 10:14:39 +0100 [thread overview]
Message-ID: <1455873289-349-3-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1455873289-349-1-git-send-email-kraxel@redhat.com>
Set CONFIG_OPENGL_DMABUF in case both mesa and libepoxy are
new enough to have support for dma-buf import/export.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
configure | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 0aa249b..0c0472a 100755
--- a/configure
+++ b/configure
@@ -279,6 +279,7 @@ smartcard=""
libusb=""
usb_redir=""
opengl=""
+opengl_dmabuf="no"
zlib="yes"
lzo=""
snappy=""
@@ -3274,7 +3275,7 @@ libs_softmmu="$libs_softmmu $fdt_libs"
# opengl probe (for sdl2, gtk, milkymist-tmu2)
if test "$opengl" != "no" ; then
- opengl_pkgs="epoxy"
+ opengl_pkgs="epoxy libdrm gbm"
if $pkg_config $opengl_pkgs x11; then
opengl_cflags="$($pkg_config --cflags $opengl_pkgs) $x11_cflags"
opengl_libs="$($pkg_config --libs $opengl_pkgs) $x11_libs"
@@ -3292,6 +3293,18 @@ if test "$opengl" != "no" ; then
fi
fi
+if test "$opengl" = "yes"; then
+ cat > $TMPC << EOF
+#include <epoxy/egl.h>
+#ifndef EGL_MESA_image_dma_buf_export
+# error mesa/epoxy lacks support for dmabufs (mesa 10.6+)
+#endif
+int main(void) { return 0; }
+EOF
+ if compile_prog "" "" ; then
+ opengl_dmabuf=yes
+ fi
+fi
##########################################
# archipelago probe
@@ -4752,6 +4765,7 @@ echo "smartcard support $smartcard"
echo "libusb $libusb"
echo "usb net redir $usb_redir"
echo "OpenGL support $opengl"
+echo "OpenGL dmabufs $opengl_dmabuf"
echo "libiscsi support $libiscsi"
echo "libnfs support $libnfs"
echo "build guest agent $guest_agent"
@@ -5050,6 +5064,7 @@ if test "$gtk" = "yes" ; then
echo "CONFIG_GTK=y" >> $config_host_mak
echo "CONFIG_GTKABI=$gtkabi" >> $config_host_mak
echo "GTK_CFLAGS=$gtk_cflags" >> $config_host_mak
+ echo "GTK_LIBS=$gtk_libs" >> $config_host_mak
if test "$gtk_gl" = "yes" ; then
echo "CONFIG_GTK_GL=y" >> $config_host_mak
fi
@@ -5158,6 +5173,9 @@ if test "$opengl" = "yes" ; then
echo "CONFIG_OPENGL=y" >> $config_host_mak
echo "OPENGL_CFLAGS=$opengl_cflags" >> $config_host_mak
echo "OPENGL_LIBS=$opengl_libs" >> $config_host_mak
+ if test "$opengl_dmabuf" = "yes" ; then
+ echo "CONFIG_OPENGL_DMABUF=y" >> $config_host_mak
+ fi
fi
if test "$lzo" = "yes" ; then
--
1.8.3.1
next prev parent reply other threads:[~2016-02-19 9:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 9:14 [Qemu-devel] [PATCH v2 00/12] spice: add opengl/virgl/dmabuf support Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 01/12] spice: init dcl before registering qxl interface Gerd Hoffmann
2016-02-19 12:27 ` Marc-André Lureau
2016-02-19 9:14 ` Gerd Hoffmann [this message]
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 03/12] egl-helpers: add functions for render nodes and dma-buf passing Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 04/12] spice: reset cursor on resize Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 05/12] spice: add opengl/virgl/dmabuf support Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 06/12] spice: add unblock timer Gerd Hoffmann
2016-02-19 12:34 ` Marc-André Lureau
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 07/12] spice: tweak debug messages Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 08/12] console: track gl_block state in QemuConsole Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 09/12] spice/gl: render DisplaySurface via opengl Gerd Hoffmann
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 10/12] spice/gl: create dummy primary surface (RfC) Gerd Hoffmann
2016-03-18 13:17 ` Gerd Hoffmann
2016-03-18 13:45 ` Marc-André Lureau
2016-03-21 10:24 ` Gerd Hoffmann
2016-03-21 18:24 ` Marc-André Lureau
2016-05-23 13:52 ` Gerd Hoffmann
2016-05-23 14:03 ` Marc-André Lureau
2016-05-24 13:39 ` Gerd Hoffmann
2016-05-24 19:34 ` [Qemu-devel] [Spice-devel] " Marc-André Lureau
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 11/12] spice: add & use qemu_spice_gl_monitor_config Gerd Hoffmann
2016-02-19 12:32 ` Marc-André Lureau
2016-04-28 17:21 ` Marc-André Lureau
2016-02-19 9:14 ` [Qemu-devel] [PATCH v2 12/12] [fixup] spice: qemu_spice_gl_monitor_config + surface Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455873289-349-3-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=marcandre.lureau@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=spice-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).