Mesa (master): Disable direct rendering on Cygwin
Jon TURNEY
jturney at kemper.freedesktop.org
Fri Apr 8 19:38:28 UTC 2011
Module: Mesa
Branch: master
Commit: c6e33ca285f9eba26cae2fdd74fb5cc694f1e74b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6e33ca285f9eba26cae2fdd74fb5cc694f1e74b
Author: Jon TURNEY <jon.turney at dronecode.org.uk>
Date: Mon Mar 14 22:08:23 2011 +0000
Disable direct rendering on Cygwin
Add Cygwin platform-specific settings and drivers to build for dri driver:
- by default, disable direct rendering.
- if direct rendering is enabled, the swrast dridriver is the only one it's
sensible to try to build (this doesn't work at the moment as additional patches
are required to build a libGL which can load just swrast without the DRM headers,
even though there's no actual functional dependency)
Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Reviewed-by: Julien Cristau <jcristau at debian.org>
---
configure.ac | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5bcb5a1..5265cf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -735,6 +735,10 @@ gnu*)
dnl Disable by default on GNU/Hurd
driglx_direct_default="no"
;;
+cygwin*)
+ dnl Disable by default on cygwin
+ driglx_direct_default="no"
+ ;;
*)
driglx_direct_default="yes"
;;
@@ -1022,6 +1026,16 @@ if test "$mesa_driver" = dri -o "$mesa_driver" = no; then
DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
fi
;;
+ cygwin*)
+ DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
+ DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
+ if test "x$driglx_direct" = xyes; then
+ DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
+ fi
+ if test "x$DRI_DIRS" = "xyes"; then
+ DRI_DIRS="swrast"
+ fi
+ ;;
esac
# default drivers
More information about the mesa-commit
mailing list