Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/amdgpu amdgpu: Factor out float build ...



details:   https://anonhg.NetBSD.org/src/rev/35c68d1fa786
branches:  trunk
changeset: 1028888:35c68d1fa786
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:24:27 2021 +0000

description:
amdgpu: Factor out float build options.

diffstat:

 sys/external/bsd/drm2/amdgpu/files.amdgpu |  38 +++++++++++++++++-------------
 1 files changed, 21 insertions(+), 17 deletions(-)

diffs (54 lines):

diff -r 9c9c3336fc5a -r 35c68d1fa786 sys/external/bsd/drm2/amdgpu/files.amdgpu
--- a/sys/external/bsd/drm2/amdgpu/files.amdgpu Sun Dec 19 12:24:19 2021 +0000
+++ b/sys/external/bsd/drm2/amdgpu/files.amdgpu Sun Dec 19 12:24:27 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.amdgpu,v 1.24 2021/12/19 12:23:16 riastradh Exp $
+#      $NetBSD: files.amdgpu,v 1.25 2021/12/19 12:24:27 riastradh Exp $
 
 version        20180827
 
@@ -64,24 +64,28 @@
 makeoptions    amdgpu  "CWARNFLAGS.amdgpu_vega20_reg_init.c"+="-Wno-cast-qual"
 
 ifdef amd64
-makeoptions    amdgpu  "COPTS.amdgpu_dcn20_resource.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_dcn21_resource.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_dcn_calc_auto.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_dcn_calc_math.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_dcn_calcs.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba_20.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba_20v2.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba_21.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_rq_dlg_calc_20.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_rq_dlg_calc_20v2.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_display_rq_dlg_calc_21.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_dml1_display_rq_dlg_calc.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_dml_common_defs.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_rc_calc.c"+="-mhard-float -msse -msse2"
-makeoptions    amdgpu  "COPTS.amdgpu_rc_calc_dpi.c"+="-mhard-float -msse -msse2"
+makeoptions    amdgpu  "COPTS.amdgpu_float"+="-mhard-float -msse -msse2"
+elifdef aarch64
+makeoptions    amdgpu  "COPTS.amdgpu_float"+="-march=armv8-a"
 endif
 
+makeoptions    amdgpu  "COPTS.amdgpu_dcn20_resource.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_dcn21_resource.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_dcn_calc_auto.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_dcn_calc_math.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_dcn_calcs.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba_20.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba_20v2.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_mode_vba_21.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_rq_dlg_calc_20.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_rq_dlg_calc_20v2.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_display_rq_dlg_calc_21.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_dml1_display_rq_dlg_calc.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_dml_common_defs.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_rc_calc.c"+="${COPTS.amdgpu_float}"
+makeoptions    amdgpu  "COPTS.amdgpu_rc_calc_dpi.c"+="${COPTS.amdgpu_float}"
+
 # Local additions.
 file   external/bsd/drm2/amdgpu/amdgpu_module.c        amdgpu
 file   external/bsd/drm2/amdgpu/amdgpu_pci.c           amdgpu



Home | Main Index | Thread Index | Old Index