Skip to content

Commit

Permalink
Merge pull request #229749 from K900/even-more-more-vulkan-updates
Browse files Browse the repository at this point in the history
Even more more vulkan updates
  • Loading branch information
K900 authored May 4, 2023
2 parents 63464b8 + bfa29e5 commit 3428bdf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
25 changes: 20 additions & 5 deletions pkgs/development/tools/vulkan-validation-layers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,30 @@
, libXdmcp
, libXrandr
, spirv-headers
, spirv-tools
, vulkan-headers
, wayland
}:

let
robin-hood-hashing = callPackage ./robin-hood-hashing.nix {};

# Current VVL version requires a newer spirv-headers than the latest release tag.
# This should hopefully not be too common and the override should be removed after
# the next SPIRV headers release.
# FIXME: if this ever becomes common, figure out a way to pull revisions directly
# from upstream known-good.json
spirv-headers' = spirv-headers.overrideAttrs(_: {
version = "unstable-2023-04-27";

src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "SPIRV-Headers";
rev = "7f1d2f4158704337aff1f739c8e494afc5716e7e";
hash = "sha256-DHOYIZQqP5uWDYdb+vePpMBaQDOCB5Pcg8wPBMF8itk=";
};

postPatch = "";
});
in
stdenv.mkDerivation rec {
pname = "vulkan-validation-layers";
Expand All @@ -34,7 +51,7 @@ stdenv.mkDerivation rec {
owner = "KhronosGroup";
repo = "Vulkan-ValidationLayers";
rev = "v${version}";
hash = "sha256-viVceH8qFz6Cl/RlMMWZnMIdzULELlnIvtPZ87ySs2M=";
hash = "sha256-+Vjy3hzzpC+bFNSEHLsfUaaHMSrMv2G+B8lGjui0fJs=";
};

nativeBuildInputs = [
Expand All @@ -50,14 +67,13 @@ stdenv.mkDerivation rec {
libXrandr
libffi
libxcb
spirv-tools
vulkan-headers
wayland
];

cmakeFlags = [
"-DGLSLANG_INSTALL_DIR=${glslang}"
"-DSPIRV_HEADERS_INSTALL_DIR=${spirv-headers}"
"-DSPIRV_HEADERS_INSTALL_DIR=${spirv-headers'}"
"-DROBIN_HOOD_HASHING_INSTALL_DIR=${robin-hood-hashing}"
"-DBUILD_LAYER_SUPPORT_FILES=ON"
"-DPKG_CONFIG_EXECUTABLE=${pkg-config}/bin/pkg-config"
Expand All @@ -84,6 +100,5 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
license = licenses.asl20;
maintainers = [ maintainers.ralith ];
broken = (lib.all (pkg: pkg.version != version) [vulkan-headers glslang spirv-tools spirv-headers]);
};
}
8 changes: 3 additions & 5 deletions pkgs/tools/graphics/vulkan-tools-lunarg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@

stdenv.mkDerivation rec {
pname = "vulkan-tools-lunarg";
# The version must match that in vulkan-headers
version = "1.3.243.0";
version = "1.3.249";

src = fetchFromGitHub {
owner = "LunarG";
repo = "VulkanTools";
rev = "sdk-${version}";
hash = "sha256-mvBP6wD1Z0VNLZ0mC4bA3i2IaBDtDr7K6XjHz4S3UA4=";
rev = "v${version}";
hash = "sha256-yQE6tjUxIZEMspxDaO9AoSjoEHQl2eDAc0E/aVQZnxQ=";
fetchSubmodules = true;
};

Expand Down Expand Up @@ -102,6 +101,5 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
license = licenses.asl20;
maintainers = [ maintainers.expipiplus1 ];
broken = (version != vulkan-headers.version);
};
}

0 comments on commit 3428bdf

Please sign in to comment.