Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src Pull up following revision(s) (requested by mrg in ticket...
details: https://anonhg.NetBSD.org/src/rev/c8cded6a802f
branches: netbsd-7
changeset: 799064:c8cded6a802f
user: snj <snj%NetBSD.org@localhost>
date: Mon Mar 09 08:45:26 2015 +0000
description:
Pull up following revision(s) (requested by mrg in ticket #575):
distrib/sets/mkvars.mk: revision 1.16
distrib/sets/sets.subr: revision 1.163
distrib/sets/lists/xdebug/md.amd64: revision 1.11
distrib/sets/lists/xdebug/md.i386: revision 1.12
distrib/sets/lists/xserver/md.amd64: revision 1.76
distrib/sets/lists/xserver/md.i386: revision 1.95
external/mit/xorg/server/drivers/Makefile: revision 1.64
external/mit/xorg/server/drivers/xf86-video-radeon-kms/Makefile: revision 1.1
share/mk/bsd.README: revision 1.338
share/mk/bsd.own.mk: revision 1.844
add build framework to choose between xf86-video-ati 6.x (UMS/KMS)
and 7.x (KMS only), and switch x86 to the latest (KMS only) version.
(if someone can make x86 install both radeon_drv.so.[67] and leave
the default symlink to .7, that would be nice. renaming it so that
it's easier to choose via xorg.conf is a little more tricky..)
diffstat:
distrib/sets/lists/xdebug/md.amd64 | 5 +-
distrib/sets/lists/xdebug/md.i386 | 5 +-
distrib/sets/lists/xserver/md.amd64 | 5 +-
distrib/sets/lists/xserver/md.i386 | 5 +-
distrib/sets/mkvars.mk | 3 +-
distrib/sets/sets.subr | 5 +-
external/mit/xorg/server/drivers/Makefile | 21 ++-
external/mit/xorg/server/drivers/xf86-video-radeon-kms/Makefile | 55 ++++++++++
share/mk/bsd.README | 7 +-
share/mk/bsd.own.mk | 10 +-
10 files changed, 100 insertions(+), 21 deletions(-)
diffs (truncated from 307 to 300 lines):
diff -r 4a6106dd752b -r c8cded6a802f distrib/sets/lists/xdebug/md.amd64
--- a/distrib/sets/lists/xdebug/md.amd64 Mon Mar 09 08:00:46 2015 +0000
+++ b/distrib/sets/lists/xdebug/md.amd64 Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.6.4.2 2015/03/03 08:28:12 snj Exp $
+# $NetBSD: md.amd64,v 1.6.4.3 2015/03/09 08:45:26 snj Exp $
./usr/X11R7/lib/libI810XvMC_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/libIntelXvMC_g.a -unknown- debuglib,xorg
./usr/X11R7/lib/libchromeXvMCPro_g.a -unknown- debuglib,xorg
@@ -148,7 +148,8 @@
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/nv_drv.so.2.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/openchrome_drv.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/r128_drv.so.6.debug -unknown- xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.6.debug -unknown- xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.6.debug -unknown- xorg,debug,!x11radeonkms
+./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.7.debug -unknown- xorg,debug,x11radeonkms
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeonhd_drv.so.1.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/s3_drv.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/s3virge_drv.so.1.debug -unknown- xorg,debug
diff -r 4a6106dd752b -r c8cded6a802f distrib/sets/lists/xdebug/md.i386
--- a/distrib/sets/lists/xdebug/md.i386 Mon Mar 09 08:00:46 2015 +0000
+++ b/distrib/sets/lists/xdebug/md.i386 Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.6.4.3 2015/03/03 08:28:12 snj Exp $
+# $NetBSD: md.i386,v 1.6.4.4 2015/03/09 08:45:26 snj Exp $
./usr/X11R6/lib/modules/extensions/libGLcore_g.a -unknown- debuglib,x11
./usr/X11R6/lib/modules/extensions/libdbe_g.a -unknown- debuglib,x11
./usr/X11R6/lib/modules/extensions/libextmod_g.a -unknown- debuglib,x11
@@ -197,7 +197,8 @@
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/nv_drv.so.2.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/openchrome_drv.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/r128_drv.so.6.debug -unknown- xorg,debug
-./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.6.debug -unknown- xorg,debug
+./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.6.debug -unknown- xorg,debug,!x11radeonkms
+./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.7.debug -unknown- xorg,debug,x11radeonkms
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeonhd_drv.so.1.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/s3_drv.so.0.debug -unknown- xorg,debug
./usr/libdata/debug/usr/X11R7/lib/modules/drivers/s3virge_drv.so.1.debug -unknown- xorg,debug
diff -r 4a6106dd752b -r c8cded6a802f distrib/sets/lists/xserver/md.amd64
--- a/distrib/sets/lists/xserver/md.amd64 Mon Mar 09 08:00:46 2015 +0000
+++ b/distrib/sets/lists/xserver/md.amd64 Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.73.4.2 2015/03/03 08:28:12 snj Exp $
+# $NetBSD: md.amd64,v 1.73.4.3 2015/03/09 08:45:26 snj Exp $
./usr/X11R6/bin/X -unknown- x11
./usr/X11R6/bin/XFree86 -unknown- x11
./usr/X11R6/bin/gtf -unknown- x11
@@ -446,7 +446,8 @@
./usr/X11R7/lib/modules/drivers/r128_drv.so -unknown- xorg
./usr/X11R7/lib/modules/drivers/r128_drv.so.6 -unknown- xorg
./usr/X11R7/lib/modules/drivers/radeon_drv.so -unknown- xorg
-./usr/X11R7/lib/modules/drivers/radeon_drv.so.6 -unknown- xorg
+./usr/X11R7/lib/modules/drivers/radeon_drv.so.6 -unknown- xorg,!x11radeonkms
+./usr/X11R7/lib/modules/drivers/radeon_drv.so.7 -unknown- xorg,x11radeonkms
./usr/X11R7/lib/modules/drivers/radeonhd_drv.so -unknown- xorg
./usr/X11R7/lib/modules/drivers/radeonhd_drv.so.1 -unknown- xorg
./usr/X11R7/lib/modules/drivers/s3_drv.so -unknown- xorg
diff -r 4a6106dd752b -r c8cded6a802f distrib/sets/lists/xserver/md.i386
--- a/distrib/sets/lists/xserver/md.i386 Mon Mar 09 08:00:46 2015 +0000
+++ b/distrib/sets/lists/xserver/md.i386 Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.92.4.2 2015/03/03 08:28:12 snj Exp $
+# $NetBSD: md.i386,v 1.92.4.3 2015/03/09 08:45:26 snj Exp $
./usr/X11R6/bin/X -unknown- x11
./usr/X11R6/bin/XFree86 -unknown- x11
./usr/X11R6/bin/gtf -unknown- x11
@@ -486,7 +486,8 @@
./usr/X11R7/lib/modules/drivers/r128_drv.so -unknown- xorg
./usr/X11R7/lib/modules/drivers/r128_drv.so.6 -unknown- xorg
./usr/X11R7/lib/modules/drivers/radeon_drv.so -unknown- xorg
-./usr/X11R7/lib/modules/drivers/radeon_drv.so.6 -unknown- xorg
+./usr/X11R7/lib/modules/drivers/radeon_drv.so.6 -unknown- xorg,!x11radeonkms
+./usr/X11R7/lib/modules/drivers/radeon_drv.so.7 -unknown- xorg,x11radeonkms
./usr/X11R7/lib/modules/drivers/radeonhd_drv.so -unknown- xorg
./usr/X11R7/lib/modules/drivers/radeonhd_drv.so.1 -unknown- xorg
./usr/X11R7/lib/modules/drivers/s3_drv.so -unknown- xorg
diff -r 4a6106dd752b -r c8cded6a802f distrib/sets/mkvars.mk
--- a/distrib/sets/mkvars.mk Mon Mar 09 08:00:46 2015 +0000
+++ b/distrib/sets/mkvars.mk Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mkvars.mk,v 1.15 2014/01/26 21:33:53 joerg Exp $
+# $NetBSD: mkvars.mk,v 1.15.4.1 2015/03/09 08:45:26 snj Exp $
MKEXTRAVARS= \
MACHINE \
@@ -21,6 +21,7 @@
MKSOFTFLOAT \
MKXORG \
MKXORG_SERVER \
+ MKX11RADEONKMS \
X11FLAVOR \
USE_INET6 \
USE_KERBEROS \
diff -r 4a6106dd752b -r c8cded6a802f distrib/sets/sets.subr
--- a/distrib/sets/sets.subr Mon Mar 09 08:00:46 2015 +0000
+++ b/distrib/sets/sets.subr Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sets.subr,v 1.160.4.1 2015/03/03 08:28:12 snj Exp $
+# $NetBSD: sets.subr,v 1.160.4.2 2015/03/09 08:45:26 snj Exp $
#
#
@@ -179,7 +179,7 @@
# In each file, a record consists of a path and a System Package name,
# separated by whitespace. E.g.,
#
-# # $NetBSD: sets.subr,v 1.160.4.1 2015/03/03 08:28:12 snj Exp $
+# # $NetBSD: sets.subr,v 1.160.4.2 2015/03/09 08:45:26 snj Exp $
# . base-sys-root [keyword[,...]]
# ./altroot base-sys-root
# ./bin base-sys-root
@@ -260,6 +260,7 @@
# ssp ${HAVE_SSP} != no
# tpm ${MKTPM} != no
# x11 ${MKX11} != no && ${X11FLAVOUR} != "Xorg"
+# x11radeonkms ${MKX11} != no && ${MKX11RADEONKMS} != no
# xorg ${MKX11} != no && ${X11FLAVOUR} == "Xorg"
# xorg_server ${MKXORG_SERVER} != no
# yp ${MKYP} != no
diff -r 4a6106dd752b -r c8cded6a802f external/mit/xorg/server/drivers/Makefile
--- a/external/mit/xorg/server/drivers/Makefile Mon Mar 09 08:00:46 2015 +0000
+++ b/external/mit/xorg/server/drivers/Makefile Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2012/07/19 19:23:52 macallan Exp $
+# $NetBSD: Makefile,v 1.63.10.1 2015/03/09 08:45:26 snj Exp $
# xf86-input drivers
@@ -22,6 +22,13 @@
# xf86-video drivers
+# Set this to "no" to build the UMS-happy 6.x driver, vs KMS 7.x
+.if ${MKX11RADEONKMS:U} != "no"
+RADEON_SUBDIR=radeon
+.else
+RADEON_SUBDIR=radeon-kms
+.endif
+
.if ${MACHINE_ARCH} == "i386" || \
${MACHINE_ARCH} == "x86_64"
SUBDIR+= \
@@ -48,7 +55,7 @@
xf86-video-nv \
xf86-video-openchrome \
xf86-video-r128 \
- xf86-video-radeon \
+ xf86-video-${RADEON_SUBDIR} \
xf86-video-radeonhd \
xf86-video-s3 \
xf86-video-s3virge \
@@ -89,7 +96,7 @@
xf86-video-mga \
xf86-video-nv \
xf86-video-r128 \
- xf86-video-radeon \
+ xf86-video-${RADEON_SUBDIR} \
xf86-video-radeonhd \
xf86-video-s3 \
xf86-video-s3virge \
@@ -129,7 +136,7 @@
xf86-video-mga \
xf86-video-neomagic \
xf86-video-nv \
- xf86-video-radeon \
+ xf86-video-${RADEON_SUBDIR} \
xf86-video-radeonhd \
xf86-video-s3 \
xf86-video-s3virge \
@@ -189,7 +196,7 @@
xf86-video-mach64 \
xf86-video-mga \
xf86-video-nv \
- xf86-video-radeon \
+ xf86-video-${RADEON_SUBDIR} \
xf86-video-r128 \
xf86-video-tdfx \
xf86-video-wsfb
@@ -214,7 +221,7 @@
xf86-video-mach64 \
xf86-video-mga \
xf86-video-nv \
- xf86-video-radeon \
+ xf86-video-${RADEON_SUBDIR} \
xf86-video-r128 \
xf86-video-tdfx \
xf86-video-wsfb
@@ -251,7 +258,7 @@
xf86-video-mach64 \
xf86-video-mga \
xf86-video-r128 \
- xf86-video-radeon \
+ xf86-video-${RADEON_SUBDIR} \
xf86-video-suncg6 \
xf86-video-sunffb \
xf86-video-sunleo \
diff -r 4a6106dd752b -r c8cded6a802f external/mit/xorg/server/drivers/xf86-video-radeon-kms/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/server/drivers/xf86-video-radeon-kms/Makefile Mon Mar 09 08:45:26 2015 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.2.2 2015/03/09 08:45:26 snj Exp $
+
+.include <bsd.own.mk>
+
+DRIVER= xf86-video-ati-kms
+DRIVER_NAME= radeon_drv
+
+.PATH: ${X11SRCDIR.${DRIVER}}/src/AtomBios
+SRCS.ATOMBIOS= \
+ CD_Operations.c \
+ Decoder.c \
+ hwserv_drv.c
+
+.if ${X11DRI} != "no"
+SRCS.DRI= radeon_dri.c
+CPPFLAGS+= ${X11FLAGS.DRI}
+.endif
+
+.if ${X11DRI} != "no"
+# XXX
+. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+SRCS.KMS= radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c
+CPPFLAGS+= -DXF86DRM_MODE
+LIBDPLIBS+= drm_radeon ${.CURDIR}/../../../lib/libdrm_radeon
+. endif
+.endif
+
+SRCS.EXA= radeon_exa.c r600_exa.c r6xx_accel.c \
+ r600_textured_videofuncs.c r600_shader.c radeon_exa_shared.c \
+ evergreen_exa.c evergreen_accel.c evergreen_shader.c \
+ evergreen_textured_videofuncs.c cayman_accel.c cayman_shader.c
+SRCS.KMS= radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c \
+ radeon_bo_helper.c
+# XXX not yet
+SRCS.GLAMOR= radeon_glamor.c
+
+SRCS= radeon_accel.c radeon_video.c \
+ radeon_misc.c radeon_probe.c \
+ radeon_textured_video.c radeon_xvmc.c \
+ $(SRCS.EXA) \
+ $(SRCS.KMS)
+
+MAN= radeon.4
+
+CPPFLAGS+= -DHAVE_CONFIG_H
+CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/X11 \
+ -I${DESTDIR}${X11INCDIR}/X11/dri \
+ -I${DESTDIR}${X11INCDIR}/libdrm \
+ -I${DESTDIR}${X11INCDIR}/pixman-1 \
+ -I${X11SRCDIR.${DRIVER}}/../include
+
+# XXX
+COPTS+= -Wno-error
+
+.include "../Makefile.xf86-driver"
diff -r 4a6106dd752b -r c8cded6a802f share/mk/bsd.README
--- a/share/mk/bsd.README Mon Mar 09 08:00:46 2015 +0000
+++ b/share/mk/bsd.README Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.README,v 1.335 2014/08/05 15:25:20 apb Exp $
+# $NetBSD: bsd.README,v 1.335.2.1 2015/03/09 08:45:26 snj Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@@ -412,6 +412,11 @@
using the X11MOTIFPATH variable.
Default: no
+MKX11RADEONKMS If "no", build the xf86-video-ati 6.x driver (the last one
+ with user-mode switching support), otherwise build the
+ kernek-mode switching (KMS) requiring driver.
+ Default: yes on i386 and amd64, yes elsewhere.
+
MKYP If "no", disables building of YP (NIS)
infrastructure (libraries and support programs).
Default: yes
diff -r 4a6106dd752b -r c8cded6a802f share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Mon Mar 09 08:00:46 2015 +0000
+++ b/share/mk/bsd.own.mk Mon Mar 09 08:45:26 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.829.2.4 2015/03/03 08:28:12 snj Exp $
+# $NetBSD: bsd.own.mk,v 1.829.2.5 2015/03/09 08:45:26 snj Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -1274,7 +1274,7 @@
.endfor
.for _v in \
- ag10e apm ark ast ati chips cirrus crime \
+ ag10e apm ark ast ati ati-kms chips cirrus crime \
geode glint i128 i740 igs imstt intel mach64 mga \
neomagic newport nsc nv nvxbox openchrome pnozz \
r128 radeonhd rendition \
@@ -1284,6 +1284,12 @@
X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist
.endfor
+# Build the ati 6.x (UMS supported) or 7.x (KMS demanded) drivers
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
Home |
Main Index |
Thread Index |
Old Index