forked from mirrors/nixpkgs
mesa: update musl patches (#141970)
Also remove a patch that was upstreamed
This commit is contained in:
parent
e20385a2e9
commit
8daecb33b9
|
@ -54,16 +54,22 @@ self = stdenv.mkDerivation {
|
||||||
# revive ./dricore-gallium.patch when it gets ported (from Ubuntu), as it saved
|
# revive ./dricore-gallium.patch when it gets ported (from Ubuntu), as it saved
|
||||||
# ~35 MB in $drivers; watch https://launchpad.net/ubuntu/+source/mesa/+changelog
|
# ~35 MB in $drivers; watch https://launchpad.net/ubuntu/+source/mesa/+changelog
|
||||||
patches = [
|
patches = [
|
||||||
./missing-includes.patch # dev_t needs sys/stat.h, time_t needs time.h, etc.-- fixes build w/musl
|
# fixes pkgsMusl.mesa build
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://raw.githubusercontent.com/void-linux/void-packages/b9f58f303ae23754c95d5d1fe87a98b5a2d8f271/srcpkgs/mesa/patches/musl.patch";
|
||||||
|
sha256 = "sha256-Jyl7ILLhn8hBJG7afnEjE8H56Wz/1bxkvlqfrXK5U7I=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://raw.githubusercontent.com/void-linux/void-packages/b9f58f303ae23754c95d5d1fe87a98b5a2d8f271/srcpkgs/mesa/patches/musl-endian.patch";
|
||||||
|
sha256 = "sha256-eRc91qCaFlVzrxFrNUPpAHd1gsqKsLCCN0IW8pBQcqk=";
|
||||||
|
})
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://raw.githubusercontent.com/void-linux/void-packages/b9f58f303ae23754c95d5d1fe87a98b5a2d8f271/srcpkgs/mesa/patches/musl-stacksize.patch";
|
||||||
|
sha256 = "sha256-bEp0AWddsw1Pc3rxdKN8fsrX4x2TQEzMUa5afhLXGsg=";
|
||||||
|
})
|
||||||
|
|
||||||
./opencl.patch
|
./opencl.patch
|
||||||
./disk_cache-include-dri-driver-path-in-cache-key.patch
|
./disk_cache-include-dri-driver-path-in-cache-key.patch
|
||||||
# Fix `-Werror=int-conversion` pthread warnings on musl.
|
|
||||||
# TODO: Remove when https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6121 is merged and available
|
|
||||||
(fetchpatch {
|
|
||||||
name = "nine_debug-Make-tid-more-type-correct";
|
|
||||||
url = "https://gitlab.freedesktop.org/mesa/mesa/commit/aebbf819df6d1e.patch";
|
|
||||||
sha256 = "17248hyzg43d73c86p077m4lv1pkncaycr3l27hwv9k4ija9zl8q";
|
|
||||||
})
|
|
||||||
] ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
] ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
||||||
# Fix aarch64-darwin build, remove when upstreaam supports it out of the box.
|
# Fix aarch64-darwin build, remove when upstreaam supports it out of the box.
|
||||||
# See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1020
|
# See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1020
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
--- ./src/gallium/winsys/svga/drm/vmw_screen.h.orig
|
|
||||||
+++ ./src/gallium/winsys/svga/drm/vmw_screen.h
|
|
||||||
@@ -34,7 +34,7 @@
|
|
||||||
#ifndef VMW_SCREEN_H_
|
|
||||||
#define VMW_SCREEN_H_
|
|
||||||
|
|
||||||
-
|
|
||||||
+#include <sys/stat.h>
|
|
||||||
#include "pipe/p_compiler.h"
|
|
||||||
#include "pipe/p_state.h"
|
|
||||||
|
|
||||||
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
|
|
||||||
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
|
|
||||||
@@ -28,6 +28,8 @@
|
|
||||||
#ifndef RADV_AMDGPU_WINSYS_H
|
|
||||||
#define RADV_AMDGPU_WINSYS_H
|
|
||||||
|
|
||||||
+#include <sys/types.h>
|
|
||||||
+
|
|
||||||
#include <amdgpu.h>
|
|
||||||
#include <pthread.h>
|
|
||||||
#include "util/list.h"
|
|
Loading…
Reference in a new issue