mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #102] vk_pipeline_check: skip a module's missing features before vkCreateShaderModule #153
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#153
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/102
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9834📝 Commits (1)
42f55bevk_pipeline_check: skip a module's missing features before vkCreateShaderModule📊 Changes
1 file changed (+28 additions, -26 deletions)
View changed files
📝
runtime/test/vk_pipeline_check.cpp(+28 -26)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7115409238
What and why
vk_pipeline_checkchecks a shader's needs in two places:check_missing_module_featurebeforevkCreateShaderModule("These capability requirements apply as soon as the module is passed to Vulkan") andcheck_missing_featureafter it. Themeta.featureslist (Float64, Int64, FragmentBarycentricKHR, MinLod, mesh, geometry, shader clock, draw parameters, ...) and the maintenance8 imageOffsetwere in the second one. Each of them is a SPIR-V capability, extension or operand that the Khronos layer checks when the module is created, so on a device without the feature the checker printedSKIPPEDfor a module the layer had already rejected:VUID-VkShaderModuleCreateInfo-pCode-08740(capability declared, feature missing): Float64, FragmentBarycentricKHR, MinLodVUID-VkShaderModuleCreateInfo-pCode-08742(extension declared):SPV_KHR_fragment_shader_barycentricVUID-RuntimeSpirv-Offset-10213(Offset outside a gather without maintenance8)Those checks now run in
check_missing_module_feature. Pipeline counts are unchanged. A skip reason can change on a device that lacks both a feature and a float control the same shader needs, because the module-level check now runs first: on MoltenVK (noshaderFloat64, noshaderSignedZeroInfNanPreserveFloat64) the four f64 fixtures reportno shaderFloat64instead ofno shaderSignedZeroInfNanPreserveFloat64(measured by@us3r40456below). A skipped shader no longer counts as a created module, as the existing comment at the early skip says ("No module was attempted, so only the pipeline skip is counted"). Float-control and push-constant checks stay after module creation; I did not see them reported by the layer on these GPUs.Tested
Windows 11 (10.0.26300), MSVC 19.44 (VS 2022 Build Tools), Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, llvm-mc 23.1.6 (conda-forge). Input: the 270 synthetic fixtures from
runtime/test/shaders/build.py(270/270 pass spirv-val). No game files.vk_pipeline_check <spirv> --jobs 1 --isolatewithVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:6312c057fctest -R "pipeline_check|pipeline_summary|large_module|bindless": 7/7 passed.AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.