mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #900] vk_harness: a vertex shader with subgroup operations is unsupported where the vertex stage has none (TEST-W64G-VS-SUBGROUP-STAGE) #938
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#938
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/900
Author: @hugo0024
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:w64g-vs-subgroup-stage📝 Commits (1)
d063e61vk_harness: a vertex shader with subgroup operations is unsupported where the vertex stage has none (TEST-W64G-VS-SUBGROUP-STAGE)📊 Changes
4 files changed (+51 additions, -1 deletions)
View changed files
📝
docs/testing.md(+6 -0)📝
runtime/test/spirv_capability.h(+18 -0)📝
runtime/test/spirv_capability_test.cpp(+14 -0)📝
runtime/test/vk_harness.cpp(+13 -1)📄 Description
Claimed in the coordination issue as: TEST-W64G-VS-SUBGROUP-STAGE (claim)
What and why
runtime/test/shaders/w64_graphics.pyfails all sevenvs_w64_*fixtures on a Mac. They readSubgroupLocalInvocationId, and MoltenVK cannot build the pipeline:The device says so itself: its subgroup
supportedStagesare compute, fragment and tessellation control ("supported_subgroup_stages": 50fromtools/vk_subgroup_info.py). A Metal vertex function has no SIMD-group built-ins. Using subgroup operations in a stage outsidesupportedStagesis not valid Vulkan, so this is a device that cannot run the fixture, not a failure of it.vk_harness.cppreadsVkPhysicalDeviceSubgroupPropertiesand exits 77 withunsupported: no subgroup operations in the vertex stagewhen the vertex module declares a GroupNonUniform capability and the vertex stage is not insupportedStages. Only for a plain draw: underVKH_MESHandVKH_MESH_COMPUTEthe first module is a mesh shader.spirv_capability.hgetsuses_subgroup_operations()(any of the eight GroupNonUniform capabilities), with cases inspirv_capability_test.cpp.w64_graphics.pyis unchanged: it already turns a 77 into aSKIP, as it does for the geometry fixtures.docs/testing.md: a paragraph in thew64_graphics.pysection on what a Mac gives.Of the 18 vertex fixtures
build.pymakes, only the sevenvs_w64_*declare a GroupNonUniform capability, so nothing that runs today is skipped by this.Tested
Apple M5, MoltenVK 1.4.2.
w64_graphics.pyon all 29 fixtures, before atmain3d3770c16and after on this branch (vk_harness.cppandw64_graphics.pydid not change in between):vs_w64_*)SKIP (unsupported: unsupported: no subgroup operations in the vertex stage); the doubled word is how the runner prints every 77, the geometry ones too.spirv_capability_test: all checks pass.ctest: 72/72.run_gpu_tests.py: 185/249 passed, 61 skipped, 3 failed in one run and 184 with 4 failed in another. The failures arecs_fma_fused,cs_imgload_tfe,cs_imgload_d16_tfeand the intermittentps_imgatomic(#543), as onmain; every plain vertex shader still draws.tests/test_w64_graphics_*.py,tests/test_docs_*.pyandtests/test_i18n_index.pypass.Not tested: a device that has the vertex stage in
supportedStages, where the new check is a no-op by construction, and the geometry stage, which this does not touch (a Mac has none).GPUs tested: Apple M5 (8-core GPU), MoltenVK 1.4.2, macOS 27.2.1 (26B131)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.