Sat Jul 30 03:12:00 2022 UTC ()
amdgpu: don't set -mhard-float for clang

clang complains that the option has no effect and it generates hard
float instructions without the option. soft-float not really supported
on x86_64 with clang from what I can tell.


(tnn)
diff -r1.2 -r1.3 src/sys/modules/amdgpu/Makefile

cvs diff -r1.2 -r1.3 src/sys/modules/amdgpu/Makefile (expand / switch to unified diff)

--- src/sys/modules/amdgpu/Makefile 2022/07/24 20:05:00 1.2
+++ src/sys/modules/amdgpu/Makefile 2022/07/30 03:12:00 1.3
@@ -1,26 +1,26 @@ @@ -1,26 +1,26 @@
1# $NetBSD: Makefile,v 1.2 2022/07/24 20:05:00 riastradh Exp $ 1# $NetBSD: Makefile,v 1.3 2022/07/30 03:12:00 tnn Exp $
2 2
3.include "../Makefile.inc" 3.include "../Makefile.inc"
4.include "../drmkms/Makefile.inc" 4.include "../drmkms/Makefile.inc"
5 5
6KMOD= amdgpu 6KMOD= amdgpu
7IOCONF= amdgpu.ioconf 7IOCONF= amdgpu.ioconf
8MKLDSCRIPT=yes 8MKLDSCRIPT=yes
9 9
10WARNS= 3 10WARNS= 3
11 11
12.if ${MACHINE_ARCH} == "x86_64" 12.if ${MACHINE_ARCH} == "x86_64"
13COPTS.amdgpu_float+= -mhard-float -msse -msse2 13COPTS.amdgpu_float+= ${${ACTIVE_CC} == "gcc" :? -mhard-float :} -msse -msse2
14.elif !empty(MACHINE_ARCH:Maarch64*) 14.elif !empty(MACHINE_ARCH:Maarch64*)
15COPTS.amdgpu_float+= -march=armv8-a 15COPTS.amdgpu_float+= -march=armv8-a
16.endif 16.endif
17 17
18# sed -ne 's,^makeoptions amdgpu "\([^.]*\)\.amdgpu"+="\(.*\)",\1+= \2,gp' <files.amdgpu | sed -e 's,\$S,${S},g' 18# sed -ne 's,^makeoptions amdgpu "\([^.]*\)\.amdgpu"+="\(.*\)",\1+= \2,gp' <files.amdgpu | sed -e 's,\$S,${S},g'
19# Note: order of includes is significant. 19# Note: order of includes is significant.
20CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/include/asic_reg 20CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/include/asic_reg
21CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/include 21CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/include
22CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/amdgpu 22CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/amdgpu
23CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/inc 23CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/inc
24CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/smumgr 24CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/smumgr
25CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr 25CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr
26CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/acp/include 26CPPFLAGS+= -I${S}/external/bsd/drm2/dist/drm/amd/acp/include