git: amdgpu: Improve makefile for sources that require double floats
Aaron LI
aly at crater.dragonflybsd.org
Fri Apr 17 19:04:14 PDT 2026
commit c12d11212d71eede1a0b2511dad60449b742f390
Author: Aaron LI <aly at aaronly.me>
Date: Fri Apr 17 12:46:10 2026 +0800
amdgpu: Improve makefile for sources that require double floats
* Use a '.for' loop expression to reduce duplicate.
* Remove the unported/unavailable sources: dcn20_resource.o,
dcn21_resource.o
* Remove the unneeded '-mpreferred-stack-boundary=4' compiler flag,
which is the default on x86_64. (Linux's amdgpu requires this because
the kernel sets '-mpreferred-stack-boundary=3' as the global default.)
* Add '-msse2' to enable SSE2 and thus better generate double precision
FP instructions. [1][2]
[1] drm/amd/display: readd -msse2 to prevent Clang from emitting
libcalls to undefined SW FP routines
https://github.com/torvalds/linux/commit/0f0727d971f6fdf8f1077180d495ddb9928f0c8b
[2] drm/amdgpu: enable -msse2 for GCC 7.1+ users
https://github.com/torvalds/linux/commit/e8a170ff9a3576730e43c0dbdd27b7cd3dc56848
Summary of changes:
sys/dev/drm/amd/amdgpu/Makefile | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c12d11212d71eede1a0b2511dad60449b742f390
--
DragonFly BSD source repository
More information about the Commits
mailing list