CVS commit: src/external/mit/xorg/lib/gallium

2021-02-23 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Feb 23 15:16:43 UTC 2021

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Don't hard-code LLVM version, but pick it up from build glue.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.44 src/external/mit/xorg/lib/gallium/Makefile:1.45
--- src/external/mit/xorg/lib/gallium/Makefile:1.44	Sat Apr  4 03:04:58 2020
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Feb 23 15:16:43 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2020/04/04 03:04:58 christos Exp $
+# $NetBSD: Makefile,v 1.45 2021/02/23 15:16:43 joerg Exp $
 
 # Link the gallium mega driver.
 
@@ -1114,8 +1114,8 @@ CPPFLAGS.streaming-load-memcpy.c+= -msse
 CPPFLAGS.i386+= -march=i586
 CPPFLAGS+=	${CPPFLAGS.${XORG_MACHINE_ARCH:U${MACHINE_ARCH}}}
 
-CPPFLAGS.r600_pipe_common.c+=	-DMESA_LLVM_VERSION_STRING=\"9.0.0\"
-CPPFLAGS.si_get.c+=	-DMESA_LLVM_VERSION_STRING=\"9.0.0\"
+CPPFLAGS.r600_pipe_common.c+=	-DMESA_LLVM_VERSION_STRING=\"${LLVM_VERSION}\"
+CPPFLAGS.si_get.c+=	-DMESA_LLVM_VERSION_STRING=\"${LLVM_VERSION}\"
 
 .include "../driver.mk"
 



CVS commit: src/external/mit/xorg/lib/gallium

2020-04-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr  4 03:04:58 UTC 2020

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Add all the dependent libraries and sort


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.43 src/external/mit/xorg/lib/gallium/Makefile:1.44
--- src/external/mit/xorg/lib/gallium/Makefile:1.43	Fri Jan 31 16:13:40 2020
+++ src/external/mit/xorg/lib/gallium/Makefile	Fri Apr  3 23:04:58 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2020/01/31 21:13:40 jmcneill Exp $
+# $NetBSD: Makefile,v 1.44 2020/04/04 03:04:58 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -25,7 +25,6 @@ CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/libd
 
 CFLAGS+=	-pthread
 LDFLAGS+=	-pthread
-LIBDPLIBS+=	pthread		${.CURDIR}/../../../../../lib/libpthread
 
 GALLIUM_SUBDIRS= \
 	auxiliary \
@@ -953,10 +952,11 @@ CPPFLAGS.${_s}+= -I${X11SRCDIR.Mesa}/src
 .if ${BUILD_RADEON} == 1
 CFLAGS+=	-pthread
 LDFLAGS+=	-pthread
-LIBDPLIBS+=	pthread		${.CURDIR}/../../../../../lib/libpthread
 .endif
 
-LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
+LIBDPLIBS+=	X11-xcb ${.CURDIR}/../libX11/libX11-xcb
+LIBDPLIBS+=	xcb-dri2${.CURDIR}/../libxcb/dri2
+LIBDPLIBS+=	xcb		${.CURDIR}/../libxcb/libxcb
 .if ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1
 LIBDPLIBS+= 	drm		${.CURDIR}/../libdrm
 .if ${BUILD_I915} == 1
@@ -973,10 +973,11 @@ LIBDPLIBS+= 	drm_nouveau	${.CURDIR}/../l
 LIBDPLIBS+= 	glapi		${.CURDIR}/../libglapi
 LIBDPLIBS+=	expat		${.CURDIR}/../../../../../external/mit/expat/lib/libexpat
 LIBDPLIBS+=	terminfo	${.CURDIR}/../../../../../lib/libterminfo
-LIBDPLIBS+=	z		${.CURDIR}/../../../../../lib/libz
 LIBDPLIBS+=	execinfo	${.CURDIR}/../../../../../lib/libexecinfo
-LIBDPLIBS+=	X11-xcb ${.CURDIR}/../libX11/libX11-xcb
-LIBDPLIBS+=	xcb-dri2${.CURDIR}/../libxcb/dri2
+
+LIBDPLIBS+=	elf		${NETBSDSRCDIR}/external/bsd/elftoolchain/lib/libelf
+LIBDPLIBS+=	z		${.CURDIR}/../../../../../lib/libz
+LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
 
 # gallium drivers requiring LLVM
 .if ${BUILD_LLVMPIPE} == 1 || ${BUILD_RADEON} == 1



CVS commit: src/external/mit/xorg/lib/gallium

2020-01-31 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Jan 31 21:13:40 UTC 2020

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Bump MESA_LLVM_VERSION_STRING


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.42 src/external/mit/xorg/lib/gallium/Makefile:1.43
--- src/external/mit/xorg/lib/gallium/Makefile:1.42	Fri Jan 31 20:56:03 2020
+++ src/external/mit/xorg/lib/gallium/Makefile	Fri Jan 31 21:13:40 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2020/01/31 20:56:03 jmcneill Exp $
+# $NetBSD: Makefile,v 1.43 2020/01/31 21:13:40 jmcneill Exp $
 
 # Link the gallium mega driver.
 
@@ -1113,8 +1113,8 @@ CPPFLAGS.streaming-load-memcpy.c+= -msse
 CPPFLAGS.i386+= -march=i586
 CPPFLAGS+=	${CPPFLAGS.${XORG_MACHINE_ARCH:U${MACHINE_ARCH}}}
 
-CPPFLAGS.r600_pipe_common.c+=	-DMESA_LLVM_VERSION_STRING=\"7.0.0\"
-CPPFLAGS.si_get.c+=	-DMESA_LLVM_VERSION_STRING=\"7.0.0\"
+CPPFLAGS.r600_pipe_common.c+=	-DMESA_LLVM_VERSION_STRING=\"9.0.0\"
+CPPFLAGS.si_get.c+=	-DMESA_LLVM_VERSION_STRING=\"9.0.0\"
 
 .include "../driver.mk"
 



CVS commit: src/external/mit/xorg/lib/gallium

2019-04-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Apr 16 17:29:09 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Ran out of patience playing stack protector bingo.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.24 src/external/mit/xorg/lib/gallium/Makefile:1.25
--- src/external/mit/xorg/lib/gallium/Makefile:1.24	Fri Apr 12 13:43:25 2019
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Apr 16 13:29:09 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2019/04/12 17:43:25 christos Exp $
+# $NetBSD: Makefile,v 1.25 2019/04/16 17:29:09 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -1104,6 +1104,8 @@ CWARNFLAGS.clang+=	-Wno-error=constant-c
 			-Wno-error=typedef-redefinition \
 			-Wno-error=enum-conversion # https://bugs.freedesktop.org/show_bug.cgi?id=109761
 
+CWARNFLAGS+=		-Wno-error=stack-protector
+
 .include 
 LIBDIR=		${X11USRLIBDIR}/modules/dri
 
@@ -1119,24 +1121,6 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif
 
-.for f in \
-	decode.c \
-	dd_context.c \
-	draw.c \
-	nir_from_ssa.c \
-	nir_inline_functions.c \
-	nir_instr_set.c \
-	nir_instr_set.c \
-	nir_liveness.c \
-	nir_lower_registers_to_ssa.c \
-	nir_lower_regs_to_ssa.c \
-	nir_lower_vars_to_ssa.c \
-	nir_phi_builder.c \
-	shaderapi.c \
-	spirv_to_nir.c \
-	vtn_cfg.c
-COPTS.${f}+=-Wno-error=stack-protector
-.endfor
 
 .include 
 # Don't regenerate c files



CVS commit: src/external/mit/xorg/lib/gallium

2019-04-12 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Apr 12 17:43:25 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
more stack protector (arm32)


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.23 src/external/mit/xorg/lib/gallium/Makefile:1.24
--- src/external/mit/xorg/lib/gallium/Makefile:1.23	Wed Apr 10 16:32:56 2019
+++ src/external/mit/xorg/lib/gallium/Makefile	Fri Apr 12 13:43:25 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2019/04/10 20:32:56 joerg Exp $
+# $NetBSD: Makefile,v 1.24 2019/04/12 17:43:25 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -1120,6 +1120,7 @@ COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,
 .endif
 
 .for f in \
+	decode.c \
 	dd_context.c \
 	draw.c \
 	nir_from_ssa.c \
@@ -1129,6 +1130,7 @@ COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,
 	nir_liveness.c \
 	nir_lower_registers_to_ssa.c \
 	nir_lower_regs_to_ssa.c \
+	nir_lower_vars_to_ssa.c \
 	nir_phi_builder.c \
 	shaderapi.c \
 	spirv_to_nir.c \



CVS commit: src/external/mit/xorg/lib/gallium

2019-04-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  7 17:31:32 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Fix stack protector build.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.21 src/external/mit/xorg/lib/gallium/Makefile:1.22
--- src/external/mit/xorg/lib/gallium/Makefile:1.21	Sun Apr  7 01:28:09 2019
+++ src/external/mit/xorg/lib/gallium/Makefile	Sun Apr  7 13:31:32 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2019/04/07 05:28:09 rin Exp $
+# $NetBSD: Makefile,v 1.22 2019/04/07 17:31:32 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -1126,6 +1126,23 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}
 COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,-Av8plus  :}
 .endif
 
+.for f in \
+	dd_context.c \
+	draw.c \
+	nir_from_ssa.c \
+	nir_inline_functions.c \
+	nir_instr_set.c \
+	nir_instr_set.c \
+	nir_liveness.c \
+	nir_lower_registers_to_ssa.c \
+	nir_lower_regs_to_ssa.c \
+	nir_phi_builder.c \
+	shaderapi.c \
+	spirv_to_nir.c \
+	vtn_cfg.c
+COPTS.${f}+=-Wno-error=stack-protector
+.endfor
+
 .include 
 # Don't regenerate c files
 .y.c:



CVS commit: src/external/mit/xorg/lib/gallium

2019-04-06 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Sun Apr  7 05:28:09 UTC 2019

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Handle objdir correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.20 src/external/mit/xorg/lib/gallium/Makefile:1.21
--- src/external/mit/xorg/lib/gallium/Makefile:1.20	Wed Apr  3 15:26:34 2019
+++ src/external/mit/xorg/lib/gallium/Makefile	Sun Apr  7 05:28:09 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2019/04/03 15:26:34 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2019/04/07 05:28:09 rin Exp $
 
 # Link the gallium mega driver.
 
@@ -1021,8 +1021,10 @@ LLVM_LIBS+=	\
 		Support
 
 .for llvm_library in ${LLVM_LIBS}
-DPADD+=	${LLVM_LIB_DIR}/libLLVM${llvm_library}/libLLVM${llvm_library}_pic.a
-LDADD+=	${LLVM_LIB_DIR}/libLLVM${llvm_library}/libLLVM${llvm_library}_pic.a
+dir!=	cd ${LLVM_LIB_DIR}/libLLVM${llvm_library}; ${PRINTOBJDIR}
+lib=	${dir}/libLLVM${llvm_library}_pic.a
+DPADD+=	${lib}
+LDADD+=	${lib}
 .endfor
 
 .endif  # ${BUILD_LLVM_PIPE} == 1 || ${BUILD_RADEON} == 1



CVS commit: src/external/mit/xorg/lib/gallium

2016-11-29 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue Nov 29 23:17:22 UTC 2016

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Build gallium with -pthread if we're building the radeon driver. It uses a
thread, so without this the driver doesn't load and nothing works. ok mrg


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.16 src/external/mit/xorg/lib/gallium/Makefile:1.17
--- src/external/mit/xorg/lib/gallium/Makefile:1.16	Tue Sep 27 19:18:42 2016
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Nov 29 23:17:22 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2016/09/27 19:18:42 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2016/11/29 23:17:22 dholland Exp $
 
 # Link the gallium mega driver.
 
@@ -548,6 +548,11 @@ SRCS+=	${GALLIUM_SOURCES.${_d}}
 
 .include "../libloader.mk"
 
+.if ${BUILD_RADEON} == 1
+CFLAGS+=	-pthread
+LDFLAGS+=	-pthread
+LIBDPLIBS+=	pthread		${.CURDIR}/../../../../../lib/libpthread
+.endif
 
 LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
 .if ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1



CVS commit: src/external/mit/xorg/lib/gallium

2016-08-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Aug 16 21:05:14 UTC 2016

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
only build the radeon and nouveau drivers on i386/amd64/evbarm,
where they're useful.  this saves almost 2MB in text/data on shark.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.14 src/external/mit/xorg/lib/gallium/Makefile:1.15
--- src/external/mit/xorg/lib/gallium/Makefile:1.14	Sun Feb 28 22:55:21 2016
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Aug 16 21:05:14 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2016/02/28 22:55:21 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2016/08/16 21:05:14 mrg Exp $
 
 # Link the gallium mega driver.
 
@@ -13,20 +13,8 @@ LIB=		gallium_dri
 DRIDIR=		${X11USRLIBDIR}/modules/dri
 DRIDEBUGDIR=	${DEBUGDIR}${X11USRLIBDIR}/modules/dri
 
-DRIVERS=	kms_swrast swrast
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-DRIVERS+=	r600
-.endif
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm"
-DRIVERS+=	nouveau
-.endif
-
 CXXFLAGS+=	-std=c++11
-CPPFLAGS+= \
-	-I${DESTDIR}${X11INCDIR}/libdrm
-
-# cargo culted.
-#CPPFLAGS+= -D_NETBSD_SOURCE -DPTHREADS
+CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/libdrm
 
 GALLIUM_SUBDIRS= \
 	auxiliary \
@@ -48,21 +36,44 @@ GALLIUM_SUBDIRS= \
 	drivers/noop \
 	drivers/trace \
 	drivers/rbug \
+	drivers/softpipe \
+	winsys/sw/null \
+	winsys/sw/dri \
+	winsys/sw/kms-dri \
+	state_trackers/dri
+
+GALLIUM_SUBDIRS_ATI= \
 	drivers/radeon \
 	drivers/r600 \
 	drivers/r600/sb \
+	winsys/radeon/drm
+
+GALLIUM_SUBDIRS_NOUVEAU= \
 	drivers/nouveau \
 	drivers/nouveau/nv30 \
 	drivers/nouveau/nv50 \
 	drivers/nouveau/codegen \
 	drivers/nouveau/nvc0 \
-	drivers/softpipe \
-	winsys/radeon/drm \
-	winsys/nouveau/drm \
-	winsys/sw/null \
-	winsys/sw/dri \
-	winsys/sw/kms-dri \
-	state_trackers/dri
+	winsys/nouveau/drm
+
+BUILD_RADEON=0
+BUILD_NOUVEAU=0
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+BUILD_RADEON=1
+.endif
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm"
+BUILD_NOUVEAU=1
+.endif
+
+DRIVERS=		kms_swrast swrast
+.if ${BUILD_RADEON} == 1
+DRIVERS+=		r600
+GALLIUM_SUBDIRS+=	${GALLIUM_SUBDIRS_ATI}
+.endif
+.if ${BUILD_NOUVEAU} == 1
+DRIVERS+=		nouveau
+GALLIUM_SUBDIRS+=	${GALLIUM_SUBDIRS_NOUVEAU}
+.endif
 
 GALLIUM_SOURCES.auxiliary/cso_cache= \
 	cso_cache.c \
@@ -537,12 +548,17 @@ SRCS+=	${GALLIUM_SOURCES.${_d}}
 
 .include "../libloader.mk"
 
+
 LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
+.if ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1
 LIBDPLIBS+= 	drm		${.CURDIR}/../libdrm
+.if ${BUILD_RADEON} == 1
 LIBDPLIBS+= 	drm_radeon	${.CURDIR}/../libdrm_radeon
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm"
+.endif	# ${BUILD_RADEON} == 1
+.if ${BUILD_NOUVEAU} == 1
 LIBDPLIBS+= 	drm_nouveau	${.CURDIR}/../libdrm_nouveau
-.endif
+.endif	# ${BUILD_NOUVEAU} == 1
+.endif	# ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1
 LIBDPLIBS+= 	glapi		${.CURDIR}/../libglapi
 LIBDPLIBS+=	expat		${.CURDIR}/../../../../../external/mit/expat/lib/libexpat
 
@@ -580,14 +596,22 @@ CPPFLAGS.target.c += \
 	-DGALLIUM_NOOP \
 	-DGALLIUM_RBUG \
 	-DGALLIUM_TRACE \
-	-DGALLIUM_R200 \
-	-DGALLIUM_R600 \
-	-DGALLIUM_NOUVEAU \
 	-DGALLIUM_SOFTPIPE \
 	-I${X11SRCDIR.MesaLib}/src/gallium/state_trackers/dri \
 	-I${X11SRCDIR.MesaLib}/src/loader \
 	-I${X11SRCDIR.MesaLib}/src/gallium/winsys
 
+.if ${BUILD_RADEON} == 1
+CPPFLAGS.target.c += \
+	-DGALLIUM_R200 \
+	-DGALLIUM_R600
+.endif	# ${BUILD_RADEON} == 1
+
+.if ${BUILD_NOUVEAU} == 1
+CPPFLAGS.target.c += \
+	-DGALLIUM_NOUVEAU
+.endif	# ${BUILD_NOUVEAU} == 1
+
 CWARNFLAGS.clang+=	-Wno-error=constant-conversion \
 			-Wno-error=tautological-constant-out-of-range-compare \
 			-Wno-error=pointer-sign \



CVS commit: src/external/mit/xorg/lib/gallium

2016-02-28 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Feb 28 22:55:21 UTC 2016

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Make using ! on the LHS of a compare non-fatal, even if it is not
cosher. It is currently not clear what the code is actually trying to
do.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.13 src/external/mit/xorg/lib/gallium/Makefile:1.14
--- src/external/mit/xorg/lib/gallium/Makefile:1.13	Fri Feb 26 18:29:55 2016
+++ src/external/mit/xorg/lib/gallium/Makefile	Sun Feb 28 22:55:21 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2016/02/26 18:29:55 riastradh Exp $
+# $NetBSD: Makefile,v 1.14 2016/02/28 22:55:21 joerg Exp $
 
 # Link the gallium mega driver.
 
@@ -594,7 +594,8 @@ CWARNFLAGS.clang+=	-Wno-error=constant-c
 			-Wno-error=switch \
 			-Wno-error=absolute-value \
 			-Wno-error=tautological-compare \
-			-Wno-error=static-in-inline
+			-Wno-error=static-in-inline \
+			-Wno-error=logical-not-parentheses
 
 .include 
 LIBDIR=		${X11USRLIBDIR}/modules/dri



CVS commit: src/external/mit/xorg/lib/gallium

2016-02-26 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri Feb 26 18:29:55 UTC 2016

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Use -std=c++11 unordered_set, not TR1 unordered_set.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.12 src/external/mit/xorg/lib/gallium/Makefile:1.13
--- src/external/mit/xorg/lib/gallium/Makefile:1.12	Tue Nov  3 10:43:31 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Fri Feb 26 18:29:55 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2015/11/03 10:43:31 szptvlfn Exp $
+# $NetBSD: Makefile,v 1.13 2016/02/26 18:29:55 riastradh Exp $
 
 # Link the gallium mega driver.
 
@@ -21,6 +21,7 @@ DRIVERS+=	r600
 DRIVERS+=	nouveau
 .endif
 
+CXXFLAGS+=	-std=c++11
 CPPFLAGS+= \
 	-I${DESTDIR}${X11INCDIR}/libdrm
 



CVS commit: src/external/mit/xorg/lib/gallium

2015-11-03 Thread Ryosuke Moro
Module Name:src
Committed By:   szptvlfn
Date:   Tue Nov  3 10:43:31 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
remove redundant \


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.11 src/external/mit/xorg/lib/gallium/Makefile:1.12
--- src/external/mit/xorg/lib/gallium/Makefile:1.11	Sat Oct 31 20:13:45 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Nov  3 10:43:31 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2015/10/31 20:13:45 mrg Exp $
+# $NetBSD: Makefile,v 1.12 2015/11/03 10:43:31 szptvlfn Exp $
 
 # Link the gallium mega driver.
 
@@ -523,7 +523,7 @@ CPPFLAGS.${_f} +=	-I${X11SRCDIR.MesaLib}
 CPPFLAGS+=	\
 	-DGALLIUM_SOFTPIPE \
 	-DGALLIUM_STATIC_TARGETS=1 \
-	-DMESA_EGL_NO_X11_HEADERS \
+	-DMESA_EGL_NO_X11_HEADERS
 
 .for _d in ${GALLIUM_SUBDIRS}
 SRCS+=	${GALLIUM_SOURCES.${_d}}



CVS commit: src/external/mit/xorg/lib/gallium

2015-10-31 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 31 20:13:45 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
don't look for libdrm_nouveau unless we've built it.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.10 src/external/mit/xorg/lib/gallium/Makefile:1.11
--- src/external/mit/xorg/lib/gallium/Makefile:1.10	Thu Oct 29 10:10:09 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Sat Oct 31 20:13:45 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2015/10/29 10:10:09 jmcneill Exp $
+# $NetBSD: Makefile,v 1.11 2015/10/31 20:13:45 mrg Exp $
 
 # Link the gallium mega driver.
 
@@ -539,7 +539,9 @@ SRCS+=	${GALLIUM_SOURCES.${_d}}
 LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
 LIBDPLIBS+= 	drm		${.CURDIR}/../libdrm
 LIBDPLIBS+= 	drm_radeon	${.CURDIR}/../libdrm_radeon
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm"
 LIBDPLIBS+= 	drm_nouveau	${.CURDIR}/../libdrm_nouveau
+.endif
 LIBDPLIBS+= 	glapi		${.CURDIR}/../libglapi
 LIBDPLIBS+=	expat		${.CURDIR}/../../../../../external/mit/expat/lib/libexpat
 



CVS commit: src/external/mit/xorg/lib/gallium

2015-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Oct 29 08:09:55 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
properly link and enable all the nouveau parts.
with this, hw GL seems to work!


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.8 src/external/mit/xorg/lib/gallium/Makefile:1.9
--- src/external/mit/xorg/lib/gallium/Makefile:1.8	Mon Oct 26 07:15:36 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Thu Oct 29 08:09:55 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2015/10/26 07:15:36 mrg Exp $
+# $NetBSD: Makefile,v 1.9 2015/10/29 08:09:55 mrg Exp $
 
 # Link the gallium mega driver.
 
@@ -54,6 +54,7 @@ GALLIUM_SUBDIRS= \
 	drivers/nouveau/nvc0 \
 	drivers/softpipe \
 	winsys/radeon/drm \
+	winsys/nouveau/drm \
 	winsys/sw/null \
 	winsys/sw/dri \
 	winsys/sw/kms-dri \
@@ -461,6 +462,9 @@ GALLIUM_SOURCES.winsys/radeon/drm = \
 radeon_drm_cs_dump.c \
 radeon_drm_winsys.c
 
+GALLIUM_SOURCES.winsys/nouveau/drm = \
+nouveau_drm_winsys.c
+
 GALLIUM_SOURCES.drivers/softpipe = \
 sp_fs_exec.c \
 sp_clear.c \
@@ -532,6 +536,7 @@ SRCS+=	${GALLIUM_SOURCES.${_d}}
 LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
 LIBDPLIBS+= 	drm		${.CURDIR}/../libdrm
 LIBDPLIBS+= 	drm_radeon	${.CURDIR}/../libdrm_radeon
+LIBDPLIBS+= 	drm_nouveau	${.CURDIR}/../libdrm_nouveau
 LIBDPLIBS+= 	glapi		${.CURDIR}/../libglapi
 LIBDPLIBS+=	expat		${.CURDIR}/../../../../../external/mit/expat/lib/libexpat
 
@@ -571,6 +576,7 @@ CPPFLAGS.target.c += \
 	-DGALLIUM_TRACE \
 	-DGALLIUM_R200 \
 	-DGALLIUM_R600 \
+	-DGALLIUM_NOUVEAU \
 	-DGALLIUM_SOFTPIPE \
 	-I${X11SRCDIR.MesaLib}/src/gallium/state_trackers/dri \
 	-I${X11SRCDIR.MesaLib}/src/loader \



CVS commit: src/external/mit/xorg/lib/gallium

2015-10-29 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Thu Oct 29 10:10:09 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
build nouveau on evbarm, too


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.9 src/external/mit/xorg/lib/gallium/Makefile:1.10
--- src/external/mit/xorg/lib/gallium/Makefile:1.9	Thu Oct 29 08:09:55 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Thu Oct 29 10:10:09 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2015/10/29 08:09:55 mrg Exp $
+# $NetBSD: Makefile,v 1.10 2015/10/29 10:10:09 jmcneill Exp $
 
 # Link the gallium mega driver.
 
@@ -15,7 +15,10 @@ DRIDEBUGDIR=	${DEBUGDIR}${X11USRLIBDIR}/
 
 DRIVERS=	kms_swrast swrast
 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-DRIVERS+=	r600 nouveau
+DRIVERS+=	r600
+.endif
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "evbarm"
+DRIVERS+=	nouveau
 .endif
 
 CPPFLAGS+= \



CVS commit: src/external/mit/xorg/lib/gallium

2015-09-22 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep 23 05:28:14 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
remove unused GALLIUM_NAMES variable.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.6 src/external/mit/xorg/lib/gallium/Makefile:1.7
--- src/external/mit/xorg/lib/gallium/Makefile:1.6	Mon Jan  5 20:06:06 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Wed Sep 23 05:28:14 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2015/01/05 20:06:06 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2015/09/23 05:28:14 mrg Exp $
 
 # Link the gallium mega driver.
 
@@ -54,8 +54,6 @@ GALLIUM_SUBDIRS= \
 	winsys/sw/kms-dri \
 	state_trackers/dri
 
-GALLIUM_NAMES=	kms_swrast r600 swrant
-
 GALLIUM_SOURCES.auxiliary/cso_cache= \
 	cso_cache.c \
 	cso_context.c \



CVS commit: src/external/mit/xorg/lib/gallium

2015-01-05 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon Jan  5 20:06:06 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Don't bail out on the broken inline functions that use static variables.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.5 src/external/mit/xorg/lib/gallium/Makefile:1.6
--- src/external/mit/xorg/lib/gallium/Makefile:1.5	Mon Jan  5 18:51:10 2015
+++ src/external/mit/xorg/lib/gallium/Makefile	Mon Jan  5 20:06:06 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2015/01/05 18:51:10 gson Exp $
+# $NetBSD: Makefile,v 1.6 2015/01/05 20:06:06 joerg Exp $
 
 # Link the gallium mega driver.
 
@@ -468,7 +468,8 @@ CWARNFLAGS.clang+=	-Wno-error=constant-c
 			-Wno-error=pointer-sign \
 			-Wno-error=switch \
 			-Wno-error=absolute-value \
-			-Wno-error=tautological-compare
+			-Wno-error=tautological-compare \
+			-Wno-error=static-in-inline
 
 .include bsd.x11.mk
 LIBDIR=		${X11USRLIBDIR}/modules/dri



CVS commit: src/external/mit/xorg/lib/gallium

2015-01-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan  4 01:26:31 UTC 2015

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
don't regenerate y-


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.2 src/external/mit/xorg/lib/gallium/Makefile:1.3
--- src/external/mit/xorg/lib/gallium/Makefile:1.2	Tue Dec 23 12:49:59 2014
+++ src/external/mit/xorg/lib/gallium/Makefile	Sat Jan  3 20:26:31 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2014/12/23 17:49:59 christos Exp $
+# $NetBSD: Makefile,v 1.3 2015/01/04 01:26:31 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -475,3 +475,5 @@ SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}
 .endfor
 
 .include bsd.lib.mk
+# Don't regenerate c files
+.y.c:



CVS commit: src/external/mit/xorg/lib/gallium

2014-12-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Dec 23 17:49:59 UTC 2014

Modified Files:
src/external/mit/xorg/lib/gallium: Makefile

Log Message:
- Don't install absolute symlinks
- Add missing debug symlinks


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.1 src/external/mit/xorg/lib/gallium/Makefile:1.2
--- src/external/mit/xorg/lib/gallium/Makefile:1.1	Thu Dec 18 01:24:30 2014
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Dec 23 12:49:59 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/12/18 06:24:30 mrg Exp $
+# $NetBSD: Makefile,v 1.2 2014/12/23 17:49:59 christos Exp $
 
 # Link the gallium mega driver.
 
@@ -11,6 +11,7 @@ SHLIB_MAJOR=0
 
 LIB=		gallium_dri
 DRIDIR=		${X11USRLIBDIR}/modules/dri
+DRIDEBUGDIR=	${DEBUGDIR}${X11USRLIBDIR}/modules/dri
 
 DRIVERS=	kms_swrast swrast
 .if ${MACHINE_ARCH} == i386 || ${MACHINE_ARCH} == x86_64
@@ -466,8 +467,11 @@ CPPFLAGS.target.c += \
 LIBDIR=		${X11USRLIBDIR}/modules/dri
 
 .for _d in ${DRIVERS}
-SYMLINKS+= ${DRIDIR}/gallium_dri.so ${DRIDIR}/${_d}_dri.so
-SYMLINKS+= ${DRIDIR}/gallium_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR} 
+SYMLINKS+= gallium_dri.so ${DRIDIR}/${_d}_dri.so
+SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR} ${DRIDIR}/${_d}_dri.so.${SHLIB_MAJOR} 
+.if ${MKDEBUG:Uno} == yes
+SYMLINKS+= gallium_dri.so.${SHLIB_MAJOR}.debug ${DRIDEBUGDIR}/${_d}_dri.so.${SHLIB_MAJOR}.debug
+.endif
 .endfor
 
 .include bsd.lib.mk