From 7f7ab8be9713618c1ed5f51287b8ace58c55da84 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sat, 27 May 2023 20:55:54 +0200 Subject: [PATCH] mesa: 23.0.3 -> 23.1.1 --- pkgs/development/libraries/mesa/default.nix | 21 +++++++++---------- ...include-dri-driver-path-in-cache-key.patch | 4 +++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index d8a6615b7f48..38afcd174db3 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -4,7 +4,7 @@ , expat, libdrm, xorg, wayland, wayland-protocols, openssl , llvmPackages_15, libffi, libomxil-bellagio, libva-minimal , libelf, libvdpau -, libglvnd, libunwind +, libglvnd, libunwind, lm_sensors , vulkan-loader, glslang , galliumDrivers ? if stdenv.isLinux then @@ -85,8 +85,8 @@ */ let - version = "23.0.3"; - hash = "sha256-OGNipdgN87CWY2tn80Dhzme3BbRHZ9W90R0u0QNxktU="; + version = "23.1.1"; + hash = "sha256-omeQMe1bc7KcTwQqxk2W+DsM/khYYX3jLi78GWxlOkA="; # Release calendar: https://www.mesa3d.org/release-calendar.html # Release frequency: https://www.mesa3d.org/releasing.html#schedule @@ -146,11 +146,6 @@ self = stdenv.mkDerivation { "get_option('datadir')" "'${placeholder "out"}/share'" substituteInPlace src/amd/vulkan/meson.build --replace \ "get_option('datadir')" "'${placeholder "out"}/share'" - '' - # TODO: can be removed >= 23.0.4 (most likely) - # https://gitlab.freedesktop.org/mesa/mesa/-/commit/035aa34ed5eb418339c0e2d2 - + '' - sed '/--size_t-is-usize/d' -i src/gallium/frontends/rusticl/meson.build ''; outputs = [ "out" "dev" "drivers" ] @@ -198,6 +193,10 @@ self = stdenv.mkDerivation { # To enable non-mesa gbm backends to be found (e.g. Nvidia) "-Dgbm-backends-path=${libglvnd.driverLink}/lib/gbm:${placeholder "out"}/lib/gbm" + + # meson auto_features enables these features, but we do not want them + "-Dandroid-libbacktrace=disabled" + ] ++ lib.optionals stdenv.isLinux [ "-Dglvnd=true" @@ -220,10 +219,9 @@ self = stdenv.mkDerivation { libX11 libXext libxcb libXt libXfixes libxshmfence libXrandr libffi libvdpau libelf libXvMC libpthreadstubs openssl /*or another sha1 provider*/ - zstd + zstd libunwind ] ++ lib.optionals haveWayland [ wayland wayland-protocols ] - ++ lib.optionals stdenv.isLinux [ libomxil-bellagio libva-minimal udev ] - ++ lib.optionals stdenv.isDarwin [ libunwind ] + ++ lib.optionals stdenv.isLinux [ libomxil-bellagio libva-minimal udev lm_sensors ] ++ lib.optionals enableOpenCL [ libclc llvmPackages.clang llvmPackages.clang-unwrapped rustc rust-bindgen' spirv-llvm-translator' ] ++ lib.optional withValgrind valgrind-light ++ lib.optional haveZink vulkan-loader @@ -254,6 +252,7 @@ self = stdenv.mkDerivation { if [ -n "$(shopt -s nullglob; echo "$out/lib/libxatracker"*)" -o -n "$(shopt -s nullglob; echo "$out/lib/libvulkan_"*)" ]; then # move gallium-related stuff to $drivers, so $out doesn't depend on LLVM mv -t $drivers/lib \ + $out/lib/libpowervr_rogue* \ $out/lib/libxatracker* \ $out/lib/libvulkan_* fi diff --git a/pkgs/development/libraries/mesa/disk_cache-include-dri-driver-path-in-cache-key.patch b/pkgs/development/libraries/mesa/disk_cache-include-dri-driver-path-in-cache-key.patch index 445f26c6bd10..fe51c79d7a06 100644 --- a/pkgs/development/libraries/mesa/disk_cache-include-dri-driver-path-in-cache-key.patch +++ b/pkgs/development/libraries/mesa/disk_cache-include-dri-driver-path-in-cache-key.patch @@ -10,16 +10,18 @@ diff --git a/meson_options.txt b/meson_options.txt index b8f753e2e1a..70d9071c8be 100644 --- a/meson_options.txt +++ b/meson_options.txt -@@ -452,6 +452,12 @@ option( +@@ -452,7 +452,14 @@ option( value : true, description : 'Enable direct rendering in GLX and EGL for DRI', ) + +option( + 'disk-cache-key', + type : 'string', + value : '', + description : 'Mesa cache key.' +) ++ option('egl-lib-suffix', type : 'string', value : '',