mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1129] cmake: the d3d12_subgroup_test shader rule names the spirv tools folder (BUILD-SUBGROUP-SPIRV-TOOLS) #1163
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1163
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1129
Author: @MalexAson
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/subgroup-shaders-spirv-tools📝 Commits (1)
c6b493ccmake: the d3d12_subgroup_test shader rule names the spirv tools folder (BUILD-SUBGROUP-SPIRV-TOOLS)📊 Changes
2 files changed (+61 additions, -5 deletions)
View changed files
📝
runtime/CMakeLists.txt(+10 -5)➕
tests/test_cmake_spirv_tools_env.py(+51 -0)📄 Description
Claimed in the coordination issue as: BUILD-SUBGROUP-SPIRV-TOOLS
What and why
The rule that translates the four shader sets of
d3d12_subgroup_testrantest/shaders/build.pywith onlyLLVM_MCin its environment, and the block was enabled byLEONIDA_LLVM_MC AND Vulkan_GLSLANG_VALIDATOR_EXECUTABLE. The seven other rules that runbuild.pypass"LEONIDA_SPIRV_TOOLS=${LEONIDA_SPIRV_TOOLS_NATIVE}"and are gated onLEONIDA_SPIRV_ASandLEONIDA_SPIRV_VAL.So when CMake finds
spirv-asthroughVULKAN_SDKor-DLEONIDA_SPIRV_ASbut the tools are not onPATH, the configure enables the test and the build stops at its four rules:The block now looks for the two tools as well, requires them, passes their folder to
build.py, and names them in its "is not built" message.Tested
PATH(named with-Donly). Onmainthe build stops at the four "Translating ... for the subgroup size test" rules. With the change the fourgenerated/subgroup_shaders/*/spirv/index.jsonoutputs build: 1 shader each, translated and spirv-val clean.tests/test_cmake_spirv_tools_env.py(2 tests, readsruntime/CMakeLists.txt, no compiler): both fail onmain, both pass with the change.python -Iontests/test_cmake_translator_deps.py,tests/test_cmake_vulkan_missing.pyandtests/test_ctest_registration.py: OK.scripts/check_no_game_data.pyon the two changed files: clean.d3d12_subgroup_testexecutable was not rebuilt with this change. Built from3aa975421with the tools appended toPATH,ctest -R d3d12_subgrouppassed on the GPU below.GPUs tested: Intel Iris Xe (8086:a7a0), Intel 32.0.101.7092, Windows 11 (for the d3d12_subgroup run above; the change itself needs no GPU)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (no translator rule)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.