From e40d29d4282c0524cfc54fd7942c797e58c1339e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Dele=C5=84kec?= Date: Thu, 13 Mar 2025 09:05:24 +0100 Subject: [PATCH] mesa: Backport graphical corruption fix This fixes a graphical corruption bug in Final Fantasy XIV where tiny colored rectangles appear over some geometry. --- pkgs/development/libraries/mesa/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index c636a32cf13f..1e2d92f1b7f6 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -6,6 +6,7 @@ , expat , fetchCrate , fetchFromGitLab +, fetchpatch , file , flex , glslang @@ -141,6 +142,12 @@ in stdenv.mkDerivation { patches = [ ./opencl.patch ./system-gbm.patch + # Fix graphical corruption in FFXIV + # Remove when updating to 25.0.2 + (fetchpatch { + url = "https://gitlab.freedesktop.org/mesa/mesa/-/commit/0ec174afd56fe48bcfa071d4b8ed704106f46f91.patch"; + hash = "sha256-6A9AkCa+DeUO683hlsNTvSWGFJJ+zfqYA2BThaqCEoU="; + }) ]; postPatch = ''