Repository navigation
Conversation
… a failed pipeline
A stage that uses subgroup operations needs the device to list it in
VkPhysicalDeviceSubgroupProperties::supportedStages. MoltenVK lists no vertex
stage, so w64_graphics.py's seven vs_w64_* fixtures failed at
vkCreateGraphicsPipelines ("Subgroup builtins are not available in this type of
function") instead of skipping, and a Mac run could not tell the driver limit
from a translator regression.
vk_harness now checks each stage it builds (vertex, or the mesh / --mesh-compute
shader, VKH_MESH_COMPUTE's vertex shader, VKH_GS and the fragment shader): one
that declares a GroupNonUniform* or SubgroupBallot/VoteKHR capability where the
device has no subgroup operations is "unsupported:" with exit 77, which
w64_graphics.py and the other runners already report as SKIP. vk_ps_sweep makes
the same check for the fragment stage. rdna2spirv.py declares these
capabilities only for a shader that uses them, so other draws are unaffected.
The capability test lives in spirv_capability.h (uses_subgroup_operations) with
CPU-only checks in spirv_capability_test.cpp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested on Apple M1 Max, macOS 27.2.1 arm64: built |
|
Follow-up GPU check on the same head, Apple M1 Max, macOS 27.2.1 arm64, MoltenVK 1.4.2 — the Built
On Apple Silicon the whole wave64-graphics suite is unreachable — every path skips for a documented hardware reason rather than failing. No game files. AI-assisted (Devin). |
|
Tested
|
|
Apple M2 re-run of w64_graphics.py on 63c80b3: 29/29 SKIP, 0 FAIL.
AI-assisted. |
|
Addendum: a normal non-subgroup pixel draw still passes with this vk_harness. python3 -I scripts/run_gpu_tests.py --build runtime/build/linux --filter ps_flat --require-pass -> 1/1 passed (4096 pixels, flat IDs exact, uv within 6e-08). AI-assisted. |
|
macOS arm64 verification (Apple M3 Pro, MoltenVK + KosmicKrisp) — the skip fires, and the fixtures really do fail without it Tested PR head Host: macOS 27.2.1, Apple M3 Pro (arm64), CPython 3.15.2, Apple clang 21.0.0, CMake 4.5.0, SPIRV-Tools v2026.4. Drivers: MoltenVK 1.4.0 and Mesa 26.3.0 KosmicKrisp, both through
The 7 are Negative control — the premise is real, not assumed. The same line for all 7 fixtures, and I also checked the two ways this could over-skip:
That last point is not a defect — Vulkan requires the stage to be listed in Found: the SKIP line now reads
Smaller notes. Measured The new unit tests are the right shape: every capability in the range, both KHR aliases, the boundary just past it (69), a capability placed after No game files. AI-assisted. |
Claim: #8683 (comment) (new item, from @alvaroaguileraweb's finding #8683 (comment))
On MoltenVK,
runtime/test/shaders/w64_graphics.py's sevenvs_w64_*fixtures fail atvkCreateGraphicsPipelines("Subgroup builtins are not available in this type of function") instead of skipping, so a Mac run can't tell the driver limit from a translator regression.A stage that uses subgroup operations needs the device to list it in
VkPhysicalDeviceSubgroupProperties::supportedStages, and MoltenVK lists no vertex stage (as #6160 also notes).vk_harnessnow checks every stage it builds:VKH_MESH) or compute (--mesh-compute)VKH_MESH_COMPUTE's vertex shaderVKH_GSA stage that declares a
GroupNonUniform*(61..68) orSubgroupBallotKHR/SubgroupVoteKHRcapability where the device has no subgroup operations is nowunsupported: <module> uses subgroup operations and the device has none in the <stage> stagewith exit 77.w64_graphics.pyand the other runners already report 77 as SKIP.vk_ps_sweep.cpp:305already makes the same check for the fragment stage.rdna2spirv.pydeclares these capabilities only for a shader that uses them, so other draws and devices are unaffected: RADV, AMD, NVIDIA and Intel list every graphics stage.runtime/test/spirv_capability.h:uses_subgroup_operations(), next toneeds_shader_int64().runtime/test/spirv_capability_test.cpp: 9 CPU-only checks (each capability, a non-subgroup neighbour, a capability afterOpMemoryModel, an empty module).runtime/test/shaders/w64_graphics.py: the docstring says these fixtures skip where the vertex stage has no subgroup operations.Tested (Windows 10, no GPU run, no game files):
spirv_capability_testbuilt with clang 20 (zig c++,-std=c++20 -Wall -Wextra): all checks pass.vk_harness.cppcompiled forx86_64-windows-gnuwith-Wallagainst the Khronos Vulkan-Headers: no errors or warnings, same asmain. Not built with MSVC here (no Visual Studio on this machine).tests/test_w64_graphics_args.py,_probe.py,_reference.py: OK.w64_graphics.pyon your M2 with this branch? Thevs_w64_*rows should readSKIP (unsupported: ...).AI-assisted (Claude Code).
🤖 Generated with Claude Code