mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 19:09:16 -04:00
Switch mesa over to use llvm80 instead of llvm60. Make it use the global LLVM_DEFAULT instead of deciding for ourself which llvm version to use. [1] Fix build of lang/beginet [1] Add patch from upstream to fix build of devel/libclc. The patch is taken from the git mirror of devel/libclc rather than the SVN repo, for convenience. Add a patch from mesa upstream preventing certain error messages when using amdgpu [2] Add a notice to bsd.default-versions.mk asking that the graphics team be informed before the llvm version is changed. Enable llvm and gallium on MIPS. As far as I can tell, this used to be the default before this change. Bump portrevisions since dependencies changed. PR: 230789 [1], [2] Submitted by: jbeich [1], tobik [2] Obtained from: FreeBSD Graphics Team development repo https://github.com/FreeBSDDesktop/freebsd-ports/commits/feature/mesa-llvm80 Sponsored by: B3 Init (zeising)
17 lines
901 B
C
17 lines
901 B
C
amd: Make vgpr-spilling depend on llvm version
|
|
|
|
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230789#c14
|
|
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
|
|
index 69d9f7b9f3fe9e5feb07b32c35cbcf1206a14ca8..dc9b684e9dd287d5bb558d9ad3868a9d0975228d 100644
|
|
--- src/amd/common/ac_llvm_util.c
|
|
+++ src/amd/common/ac_llvm_util.c
|
|
@@ -153,7 +153,8 @@ static LLVMTargetMachineRef ac_create_target_machine(enum radeon_family family,
|
|
LLVMTargetRef target = ac_get_llvm_target(triple);
|
|
|
|
snprintf(features, sizeof(features),
|
|
- "+DumpCode,+vgpr-spilling,-fp32-denormals,+fp64-denormals%s%s%s%s",
|
|
+ "+DumpCode,-fp32-denormals,+fp64-denormals%s%s%s%s%s",
|
|
+ HAVE_LLVM >= 0x0800 ? "" : ",+vgpr-spilling",
|
|
tm_options & AC_TM_SISCHED ? ",+si-scheduler" : "",
|
|
tm_options & AC_TM_FORCE_ENABLE_XNACK ? ",+xnack" : "",
|
|
tm_options & AC_TM_FORCE_DISABLE_XNACK ? ",-xnack" : "",
|