From fbabe60f48006ee664c983082498a863e8beec71 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Wed, 16 Nov 2011 15:04:36 +0800 Subject: glamor: Initial commit to introduce glamor acceleration. Added one configuration option --enable-glamor to control whether use glamor. Added one new file intel_glamor.c to wrap glamor egl API for intel driver's usage. This commit doesn't really change the driver's control path. It just adds necessary files for glamor and change some configuration. Reviewed-by: Eugeni Dodonov Signed-off-by: Zhigang Gong Signed-off-by: Chris Wilson --- configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8afe25b0..2b25ee59 100644 --- a/configure.ac +++ b/configure.ac @@ -148,6 +148,20 @@ if test "x$UXA" != "xno"; then fi AC_MSG_RESULT([$UXA]) +AC_MSG_CHECKING([whether to include GLAMOR support]) +AC_ARG_ENABLE(glamor, + AS_HELP_STRING([--enable-glamor], + [Enable glamor, a new GL-based acceleration [default=no]]), + [GLAMOR="$enableval"], + [GLAMOR=no]) +AC_MSG_RESULT([$GLAMOR]) +AM_CONDITIONAL(GLAMOR, test x$GLAMOR != xno) +if test "x$GLAMOR" != "xno"; then + PKG_CHECK_MODULES(LIBGLAMOR, [glamor]) + PKG_CHECK_MODULES(LIBGLAMOR_EGL, [glamor-egl]) + AC_DEFINE(USE_GLAMOR, 1, [Enable glamor acceleration]) +fi + AC_ARG_ENABLE(vmap, AS_HELP_STRING([--enable-vmap], [Enable use of vmap [default=no]]), -- cgit v1.2.3