SPIRV-LLVM-Translator: Add llvm-spirv tool; libclc: 11.0.1 -> 12.0.1#162603
SPIRV-LLVM-Translator: Add llvm-spirv tool; libclc: 11.0.1 -> 12.0.1#162603Lassulus merged 2 commits intoNixOS:stagingfrom
Conversation
|
this seems to trigger a mass-rebuild on linux, so it should probably be rebased to staging: |
This will make ${self.spirv-llvm-translator}/bin/llvm-spirv available.
As of llvmorg-12.0.0, libclc can now build SPIR-V based libraries, but
requires the llvm-spirv build tool for this.
Ref: https://github.com/llvm/llvm-project/blob/llvmorg-12.0.0/libclc/CMakeLists.txt#L98
Signed-off-by: Jordan Justen <[email protected]>
As part of the upgrade to 12.0.1, now 2 SPIR-V libraries will now be made available: * spirv64-mesa3d-.spv * spirv-mesa3d-.spv Signed-off-by: Jordan Justen <[email protected]>
|
@Lassulus: Thanks for letting me know about this. I rebased the 2 patches to the merge-base of the master and staging branches. |
|
I guess you still need to change the target branch to staging instead of master |
primeos
left a comment
There was a problem hiding this comment.
Sorry for the delay. The diff LGTM but unfortunately I don't have the background knowledge and time to properly review this (not even sure why a review from me was requested here - I'm roughly familiar with the technologies but don't actively use them and IIRC I didn't really touch those Nix expressions before).
But while I'm at it: I just opened #170095 regarding a long-standing libclc "issue" (it's out of scope for this PR but would probably be useful in general).
ivan
left a comment
There was a problem hiding this comment.
I applied this to nixpkgs master and did not encounter issues when building an x86_64 NixOS 22.05-pre that depends on this through ffmpeg -> mesa -> libclc. Also, this release has been out for a while, and I would guess it is safe to use.
See NixOS#171656 (comment) there was a conflict with NixOS#162603 and a GitHub Action did a bad merge in 4cab9ae#diff-1aeab0da45b3afb6688d321042021a2ebad96758fc495d92aaadb50cc9aa22c7R28, adding a second makeFlags and breaking the build.
See NixOS#171656 (comment) there was a conflict with NixOS#162603 and a GitHub Action did a bad merge in 4cab9ae#diff-1aeab0da45b3afb6688d321042021a2ebad96758fc495d92aaadb50cc9aa22c7R28, adding a second makeFlags and breaking the build.
See NixOS#171656 (comment) there was a conflict with NixOS#162603 and a GitHub Action did a bad merge in 4cab9ae#diff-1aeab0da45b3afb6688d321042021a2ebad96758fc495d92aaadb50cc9aa22c7R28, adding a second makeFlags and breaking the build.
|
I direct pushed 5ee3e9f to staging to fix the eval, sorry I did not really read the changes here, please take a look at #171784, thanks! |
The SPIRV-LLVM-Translator is updated to install the llvm-spirv tool. Unfortunately this tool is not installed as part of the normal 'make install' process so I added
postBuildandpostInstall.libclc is upgraded from 11.0.1 to 12.0.1. In 12.0.0, libclc started using the llvm-spirv tool to create to spv files:
Motivation for this change
The Mesa project is starting to make use of these SPIR-V libraries. It can be used by some drivers for opencl now, and potentially in the future for Vulkan ray-tracing support.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)llvm-spirvwas used by the libclc 12 build processnixos/doc/manual/md-to-db.shto update generated release notes