mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:35:52 +01:00
[PR #123] cmake: pass LEONIDA_SPIRV_TOOLS to the subgroup shader build #176
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#176
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/123
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9858📝 Commits (1)
9d4cb91cmake: pass LEONIDA_SPIRV_TOOLS to the subgroup shader build📊 Changes
1 file changed (+7 additions, -2 deletions)
View changed files
📝
runtime/CMakeLists.txt(+7 -2)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):What
d3d12_subgroup_testtranslates four shaders throughtest/shaders/build.py, which runsspirv-as. Every other shader-test block passesLEONIDA_SPIRV_TOOLS, whichbuild.pyprepends toPATH; the subgroup block did not. A configure with-DLEONIDA_SPIRV_AS=<path>but withoutVulkanSDK\BinonPATHtherefore failed at build time with:Fix
Compute
LEONIDA_SPIRV_TOOLS_NATIVEoutside the M1.5 guard (wheneverspirv-asis found) and pass it in the subgroup custom command.Tested
Windows 10 Pro 22H2 (19045), MSVC 19.44.35230, VS 2022 generator, RelWithDebInfo, Vulkan SDK 1.4.363.0, llvm-mc 21.1.8, with
VulkanSDK\Binnot onPATH:cmake --build runtime/build --target d3d12_subgroup_testsucceeds, all four variants translated;ctest -R ^d3d12_subgroup$passes (1.89 s).Note on the current
mainTested on
31276208. At the currentmain(7e39a81ea) this machine cannot buildgta6rt_d3d12_comat all, in a clean build directory:d3d12_vulkan_device.cpp(10001):DescriptorHeaphas no constructor taking(state, desc, console_address, console_size);(10002):Device::identityis private;d3d12_xs_device.cpp(1606):rt::d3d12::create_console_descriptor_heapis not declared there (the file does not included3d12_com.h).That is unrelated to this change (it touches only
runtime/CMakeLists.txt), but it is why CI may be red here.AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.