From cf0e893e777b853f13fac983b39549362438c19a Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 12 Sep 2023 10:54:13 +0800 Subject: [PATCH] swiftshader: 2020-11-06 -> 2023-09-11 --- .../libraries/swiftshader/default.nix | 35 +++---------------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 6 insertions(+), 31 deletions(-) diff --git a/pkgs/development/libraries/swiftshader/default.nix b/pkgs/development/libraries/swiftshader/default.nix index cfcccd018f9d..36564110d283 100644 --- a/pkgs/development/libraries/swiftshader/default.nix +++ b/pkgs/development/libraries/swiftshader/default.nix @@ -2,22 +2,15 @@ stdenv.mkDerivation rec { pname = "swiftshader"; - version = "2020-11-06"; + version = "2023-09-11"; src = fetchgit { url = "https://swiftshader.googlesource.com/SwiftShader"; - rev = "4ed9d3498dcffa987acba1a8007ff8dec336f263"; - sha256 = "1gz2zflfacxf34s78djddf93brn9kyxj4byc4p2ip1pin43lh2lg"; + rev = "4e40d502c440cc59b25fa3a5fee0eadbab7442aa"; + sha256 = "085bdqn80s7zw5h2pz6xff3j34hmkxb9wxzgjmzdr9c24zwp2k1c"; }; nativeBuildInputs = [ cmake python3 jq ]; - buildInputs = [ libX11 libXext zlib ]; - - env.NIX_CFLAGS_COMPILE = toString [ - # Needed with GCC 12 - "-Wno-error=array-bounds" - "-Wno-error=uninitialized" - ]; # Make sure we include the drivers and icd files in the output as the cmake # generated install command only puts in the spirv-tools stuff. @@ -35,35 +28,17 @@ stdenv.mkDerivation rec { mkdir -p "$(dirname "$vk_icd_json")" jq ".ICD.library_path = \"$vk_so_path\"" "$vk_icd_json" - # - # GL driver - # - gl_so_path="$out/lib/libEGL.so" - mkdir -p "$(dirname "$gl_so_path")" - mv Linux/libEGL.so "$gl_so_path" - - gl_icd_json="$out/share/glvnd/egl_vendor.d/swiftshader.json" - mkdir -p "$(dirname "$gl_icd_json")" - cat >"$gl_icd_json" <