git: 9deb1db06346 - main - graphics/mesa-devel: Disable "-mtls-dialect=gnu2" when built with clang 19

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Fri, 01 Nov 2024 18:18:19 UTC
The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9deb1db0634686b589ce81278e03206fe340f4bc

commit 9deb1db0634686b589ce81278e03206fe340f4bc
Author:     Jung-uk Kim <jkim@FreeBSD.org>
AuthorDate: 2024-11-01 18:12:46 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2024-11-01 18:12:46 +0000

    graphics/mesa-devel: Disable "-mtls-dialect=gnu2" when built with clang 19
    
    Clang 19 now supports "-mtls-dialect=gnu2" but it does not work for us.
    Originally, I tried to use "-ftls-model=initial-exec" but it caused
    regressions.  Disable the optimization for now until we have a proper
    implementation.
    
    Approved by:    jbeich (maintainer)
    PR:             282322
---
 graphics/mesa-devel/Makefile | 1 +
 graphics/mesa-devel/distinfo | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/graphics/mesa-devel/Makefile b/graphics/mesa-devel/Makefile
index 21b6744f6db6..136f0937584b 100644
--- a/graphics/mesa-devel/Makefile
+++ b/graphics/mesa-devel/Makefile
@@ -9,6 +9,7 @@ PATCHFILES+=	700efacda59c.patch:-p1:github
 PATCH_SITES+=	${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/-/commit/
 PATCHFILES+=	2930dcbb3329.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22246
 PATCHFILES+=	11aaf934112c.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22941
+PATCHFILES+=	5d48fb19553c.patch:-p1 # https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31931
 
 MAINTAINER=	jbeich@FreeBSD.org
 COMMENT=	Bleeding edge Mesa drivers (OpenCL, OpenGL, Vulkan)
diff --git a/graphics/mesa-devel/distinfo b/graphics/mesa-devel/distinfo
index 38d25a771c9f..c2a8e92e9e3e 100644
--- a/graphics/mesa-devel/distinfo
+++ b/graphics/mesa-devel/distinfo
@@ -7,3 +7,5 @@ SHA256 (2930dcbb3329.patch) = f90ab77950ba1a56d165f0bc8a3cbd9c5f624bb5c67d1c7f33
 SIZE (2930dcbb3329.patch) = 1638
 SHA256 (11aaf934112c.patch) = 4408d8c0c4bf559ddf32ddbd06766f4fd28cc30b199a1991b20c89cf99bb9121
 SIZE (11aaf934112c.patch) = 780
+SHA256 (5d48fb19553c.patch) = 316360bdb0e0eb46075a8e537e1147283d1e88f2ee48d9eac13bb8c24f7d7b46
+SIZE (5d48fb19553c.patch) = 1090