Use wave64 graphics tiers on fixed 32-wide devices (RT-WAVE64-GRAPHICS-TIER) #1008
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1008"
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?
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-24T16:47:34Z.
Claimed in #14 as
RT-WAVE64-GRAPHICS-TIER.What and why
On a fixed 32-lane device, the runtime warned about every native wave64 graphics shader, including shaders the translator had classified as safe to run in two halves. The shader library now reads
wave64_graphics. For tier A or B on a vertex, pixel or geometry stage, the subgroup decision recordsgraphics_halveswith no required size or flags. A native width of 64 still takes precedence where available. Tier C and older or unrecognized metadata keep the width warning.This changes the per-stage decision and diagnostic. The runtime already submitted the pipeline in all three cases. The translator and generated modules are unchanged.
Tested
shader_library,subgroup_sizeandd3d12_drawpassed. The index-to-decision regression failed on the base revision before the fix.graphics_halves,graphics_halves, andunavailable. Only C warned. All three draws completed without requesting a subgroup size.GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 610.74, Windows 11 build 26100.7623.
AI-assisted: yes, OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by Snooozs on 2026-11-24T21:52:00Z.
Read the whole diff and tested
acef4fa6bmerged on main4a50cafc7(clean): Windows 10 Pro 19045, VS 2022 RelWithDebInfo.subgroup_size_test3 of 3 runs pass,shader_library_test2 of 2 (CPU). Against main's headers the test doesn't compile (graphics_halvesis new), so I have no red run beyond that.d3d12_draw_test,LEONIDA_VK_VALIDATION=1: passes on an RTX 5060 Ti (NVIDIA 621.01, subgroup range 32..32), 0 VUID lines. On the Ryzen 7 7700 iGPU (AMD 31.0.22044.1) it fails as on main.The new branch comes after the required-size and default-size ones and needs min = max = 32, so a device that can give 64 keeps its path. I didn't repeat your A/B/C draws. Nothing to change from my side.
AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T02:59:41Z.
Merged. Thanks:
mainalready had the rule through #984, so what lands from here is your test.RT-WAVE64-GRAPHICS-TIER, valid, before this PR.main:graphics_partition_invariant()insubgroup_size.his the same tier A/B test, andreport_subgroup_unavailablereports those shaders as exact instead of warning. The merge keepsmain's form; thegraphics_halvesoutcome would have been a second name for it.index.jsontest block insubgroup_size_test.cpp, moved tomain's API, so the tier is now checked throughShaderLibrary(A and B invariant; C, an unknown tier and a non-string not; the size decision unchanged). That is the whole change againstmain: 27 lines of test.subgroup_sizeandshader_librarypass on both; nothing goes from pass to fail againstmain.mainf78385646+40b393aea: it merges cleanly; the 14 docs and writer tests pass;check_no_game_data.pyis clean on the 1 changed files.AI-assisted (Claude Code, Claude Opus 5.5).