diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-07-31 10:54:06 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-07-31 10:54:06 +0200 |
commit | 686caef60fb9ca5df9d4bcfac9b7d59a652af969 (patch) | |
tree | b29566c1f774936e22b70f67b5e282d327a57a7a | |
parent | 4da3531796ca91ffeb4aebd72f586c14691c0e8d (diff) | |
download | ptxdist-686caef60fb9ca5df9d4bcfac9b7d59a652af969.tar.gz ptxdist-686caef60fb9ca5df9d4bcfac9b7d59a652af969.tar.xz |
[xorg-server] add support for dri2
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | rules/xorg-server.in | 12 | ||||
-rw-r--r-- | rules/xorg-server.make | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/rules/xorg-server.in b/rules/xorg-server.in index 0c4f565a9..81f306b06 100644 --- a/rules/xorg-server.in +++ b/rules/xorg-server.in @@ -71,6 +71,7 @@ menuconfig XORG_SERVER select XORG_PROTO_FONTCACHE # select XORG_PROTO_XF86DRI if XORG_SERVER_EXT_DRI + select DRI2PROTO if XORG_SERVER_EXT_DRI2 # # when OpenGL is enabled, MesaLib is required # @@ -384,6 +385,17 @@ config XORG_SERVER_EXT_DRI Currently the build scripts needs DRI disabled when crosscompiling, else they try to detect the DRI hardware on your host. +config XORG_SERVER_EXT_DRI2 + depends on XORG_SERVER + bool + prompt "DRI2 extension" + help + Enable support for the Direct Rendering Infrastructure 2 to get 3D + accelerations support. This is meaningless if you don't have DRI + support in your kernel for your hardware. + Currently the build scripts needs DRI disabled when crosscompiling, + else they try to detect the DRI hardware on your host. + config XORG_SERVER_EXT_XINERAMA depends on XORG_SERVER bool diff --git a/rules/xorg-server.make b/rules/xorg-server.make index 410db0ccb..e909bf1eb 100644 --- a/rules/xorg-server.make +++ b/rules/xorg-server.make @@ -158,6 +158,16 @@ XORG_SERVER_AUTOCONF += --disable-dri XORG_SERVER_ENV += ac_cv_header_linux_agpgart_h=no endif +# default is auto +ifdef PTXCONF_XORG_SERVER_EXT_DRI2 +XORG_SERVER_AUTOCONF += --enable-dri2 +else +XORG_SERVER_AUTOCONF += --disable-dri2 +# if DRI is disabled we do not have AGP +# FIXME: right var? +XORG_SERVER_ENV += ac_cv_header_linux_agpgart_h=no +endif + # default is enabled ifdef PTXCONF_XORG_SERVER_EXT_XINERAMA XORG_SERVER_AUTOCONF += --enable-xinerama |