shader: run the SPIR-V address window at Shader Model 6.0 #826
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/832"
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 R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T09:32:04Z.
Change
Compile the source-built SPIR-V address-window fixture as
cs_6_0so it can run on Windows 10 in-box adapters below Shader Model 6.6. Keep theInt64ShaderOpsgate for 64-bit address arithmetic. The capability self-test covers SM 6.0 with and without Int64ShaderOps and SM 5.1 with Int64ShaderOps.Refs #553. The base includes #825. A local merge simulation with #827 at
c81164dfound no conflicts.Verification
Tested
8bebb5dce429e10b0b36c6142611dc02c2818cb2on Windows 10 22H2 build 19045.6456 with SPIRV-Toolsef96ed76, the repo's patched SPIRV-Cross57e4efc, and DXC 1.9.2602.17. Configured the app-local builds with Agility SDK 1.620.2 and WARP 1.0.22 usingOFFSCREEN_AGILITY_620_DIRandOFFSCREEN_WARP_DIR.Each adapter matched all 16 words in all eight address-window cases in both configurations. The focused matrix had 32 passes and zero skips or failures. Address-window runs reported zero D3D12 debug warnings and errors. The physical, logical and combined SPIR-V validation checks also passed. Stock Vulkan SDK SPIRV-Cross
f11ba9f0passed the Debug fixture on both in-box adapters.The original
cs_6_6fixture at3ddce57returned two capability skips on the in-box adapters and passed all eight cases on app-local WARP. The baseline can be reproduced withctest --test-dir out/build/dev --no-tests=error -V -R '^spirv_address_window_(hardware|warp)$'andctest --test-dir out/build/app-local-dev --no-tests=error -V -R '^spirv_address_window_warp$'on that revision.Evidence and follow-up
Reuses the existing source-built
subtract.spvasm. Both DXIL profiles retain the 64-bit integer requirement and use the same raw SRV and UAV bindings. The SM 6.0 profile usesbufferLoad.i32andbufferStore.i32for the DWORD transfers. See the address-window experiment for commands.For two local fault controls, generate the SM 6.0 HLSL with the commands in the experiment. Make two copies. In the first, replace
uint64_t(_3.Load(12))with0ull. In the second, replace(_39 >= _36)withtrue. Compile each withdxc -T cs_6_0 -E main -Fo out/window.dxil out/window.hlsland runout/build/dev/offscreen_check.exe hardware --spirv-address-window out/window.dxil. Repeat withwarpusing each runtime's Debug build. All three adapters returned exit 1 at word 11 for both controls. Discarding the high word producedeca86420inhigh address, and removing the overflow comparison producedb97530edinindex addition wraps. The expected word wasedcba988in both cases. The debug layer stayed clean.Checklist
AI-assisted: yes.