aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vereeken <Alexander88207@protonmail.com>2026-05-14 21:50:29 +0000
committerJan Beich <jbeich@FreeBSD.org>2026-05-15 00:45:58 +0000
commit51bf5dc43bb216e546c7bed8922aabf5000f0d92 (patch)
tree86655a961b6ad189ff9f5c0d4c9c6bf4813215f7
parent7a04d20af769f125395dbb409a049d5ebaecdb7d (diff)
graphics/mesa-devel: unbreak on AMD GPUs after 6e724a055fd5
Revert one more upstream change to work around the old libdrm. https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15477 PR: 295291
-rw-r--r--graphics/mesa-devel/Makefile1
-rw-r--r--graphics/mesa-devel/files/patch-libdrm-2.4.13112
2 files changed, 13 insertions, 0 deletions
diff --git a/graphics/mesa-devel/Makefile b/graphics/mesa-devel/Makefile
index aacbdcbf217a..5f3a0260f6e8 100644
--- a/graphics/mesa-devel/Makefile
+++ b/graphics/mesa-devel/Makefile
@@ -1,6 +1,7 @@
PORTNAME= mesa
DISTVERSION= 26.1-branchpoint-1298
DISTVERSIONSUFFIX= -gf6debb842d7
+PORTREVISION= 1
CATEGORIES= graphics
PKGNAMESUFFIX= -devel
diff --git a/graphics/mesa-devel/files/patch-libdrm-2.4.131 b/graphics/mesa-devel/files/patch-libdrm-2.4.131
index 2cb665a1ad4e..ef6323821df3 100644
--- a/graphics/mesa-devel/files/patch-libdrm-2.4.131
+++ b/graphics/mesa-devel/files/patch-libdrm-2.4.131
@@ -20,6 +20,18 @@ meson.build:1835:15: ERROR: Dependency lookup for libdrm with method 'pkgconfig'
--- src/amd/common/ac_gpu_info.c.orig 2026-05-06 17:09:22 UTC
+++ src/amd/common/ac_gpu_info.c
+@@ -420,7 +420,11 @@ ac_fill_compiler_info(struct radeon_info *info, const
+ *
+ * Only GFX9 works as expected.
+ */
++#if 0 /* No macro to detect libdrm version */
+ out->has_smem_with_null_prt_bug = info->gfx_level <= GFX12 && info->gfx_level != GFX9;
++#else
++ out->has_smem_with_null_prt_bug = 0;
++#endif
+
+ if (compat_mode && info->family == CHIP_REMBRANDT) {
+ out->has_ngg_passthru_no_msg = false;
@@ -1740,6 +1740,7 @@ ac_query_gpu_info(int fd, void *dev_p, struct radeon_i
&info->pa_sc_raster_config_1, &info->se_tile_repeat);
}