Repository navigation
SHADER-638: prototype full 64 KiB LDS for emulated Wave64 compute - #3422
kacper-serewis wants to merge 4 commits into
Conversation
|
Independent CPU re-review confirms ds_nop fixed at 67d55f8: all nine modules pass Vulkan 1.2 spirv-val. Nop, swizzle, bpermute and permute retain a 564 B exchange with no guest LDS; real reachable writes use the 65,536 B loan. A write after s_endpgm in the same block is ignored. Remaining structural limitation: a separately labelled block skipped by an unconditional branch still participates in loan eligibility/code generation; its dead write can force 65,536 B rather than 564 B. This predates the no-op correction. Keep draft pending that scope decision and capable-device execution. Local RTX 5070 reports only 49,152 B. AI-assisted, synthetic CPU review only. |
|
Tested
Test programs built with MSVC (VS 2026) via CMake; AI-assisted (Claude Code). |
|
Verified on Linux: merges cleanly into current main. The new SHADER-638 suite passes (6 tests), shared_memory_limit 15, w64x_scalar_load_order 5, wave64_emulate_opt 22, and tests/test_translate.py 581 passed / 4 skipped under pytest. The rule arrives the right way: design.md contract row, hand-written .asm fixture, and the real translator driven through the shared helpers. Note: test_loop_ballot_barrier shows 3 failures + 2 errors on the merged tree, but the byte-identical set fails on plain main too (re-confirmed today) — pre-existing, not introduced here. The rsrc2 LDS_SIZE fix in that helper is genuine (field is [23:15], the baked 0x8090 set size+1). #4152 touches the same file; sequence accordingly. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
SHADER-638. Existing claim. Synthetic portability prototype for compute kernels that declare and use a full 65,536 B LDS and need Wave64 emulation.
The coordinator's RSRC2 census found zero 128-unit declarations among 2,689 indexed FSSM compute headers and 29 FSPX records. The two measured retail refusals use 64 units and are covered by #1882. This draft is for evaluating a general fallback and its execution cost. Updated to official main aa2988c, including the integrated SHADER-309 allocation checks. The native barrier-counter work in #3245 is independent.
Exchange timing
CPU gates
Validation after merging main
Depends on: #1882 (merged).
AI-assisted (Codex).