Repository navigation
DXIL: lower window_at address carry in 32-bit without i64 - #2180
Conversation
Propagate 64-bit effective address carries in Lw::window_at using scalar 32-bit add + icmp ult + zext (and icmp ult lo, -k for negative signed constants), umul_wide for non-constant Ea::Mul, and compile-time filtering of constant-zero terms, eliminating i64 ops and Feature::Int64Ops from multi-window direct-DXIL address selection. Part of xcl-dev#2088 Part of xcl-dev#1269 Assisted-by: Antigravity (Gemini 4 Neon)
|
AMD RDNA4 numbers for #2180: direct DXIL −2.1 %, AMD driver time unchanged (+1.2 %, within noise), and the tests pass on both paths. Setup
Method
Tests on this card (
Read: on the AMD compiler, dropping the i64 address arithmetic makes the containers smaller but doesn't change build time on these programs. Any gain would be at run time, which this doesn't measure. Not tested: dispatch GPU time, AI use: Claude Code (Claude Opus 5.5) ran the measurement and tests and wrote this. Account owner away; counts and timings only, no game data. |
|
Independent RX 6800M check on exact head Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M (RDNA2), driver Focused results (
Temporary local diagnostic prints showed the new test completed UMA allocation, HLSL and direct DXIL compilation, two Scope: The IR/validator portion passed. GPU output parity and the performance claim remain unverified on this RX 6800M because of the shared runner crash. I did not run a full suite or retail-title smoke for this PR. AI use: OpenAI Codex ran and compared the focused tests, instrumented the local runner to locate the crash, restored those edits, checked the exact revision, and prepared this report. |
|
Tested Independent Windows check at clean head
Both logged 20 native-wave64 skips, three per-lane f16/f32 refusals, one unavailable driver-cache control and one unavailable heap-windows case. The RTX 2080 SUPER also had two missing-D3D12-debug-layer skips ( With Not tested Retail smoke or shader samples, full AMD workspace, Intel or RADV, compilation speed and gameplay performance. AI use Ran via Samaritan:
|
|
Merged as Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug: In the title, in a tree with #2029, #1782 and the #2080 stack besides: one run of 421 s with AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this on the maintainer's behalf. |
Part of #2088
Part of #1269
What is in it
256 compile time (62.5 -> 66.1 ms), so scalar �dd + icmp ult was used instead.
Tested
ustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.8.2502.11 (D:\Windows Kits\10\bin\10.0.26100.0\x64).
Controlled cold NVIDIA CreateComputePipelineState A/B (--release, ID3D12Device9::ShaderCacheControl implicit D3D + driver cache DISABLE -> cache_disabled=true, 5 cold runs per workload, mem_windows=4, wave64=false, synthetic multi-window compute shaders mixing GLOBAL_LOAD_DWORD, BUFFER_LOAD_DWORD, and S_LOAD_DWORD):
64 (64 non-zero-offset ops): main 16,628 B DXIL / 3,139 us translate / 35.794 ms driver median ([34.352, 35.398, 35.794, 36.526, 39.086]) vs PR 16,692 B DXIL / 3,109 us translate / 34.559 ms driver median ([34.282, 34.307, 34.559, 35.444, 38.208], -3.4%).
256 (256 non-zero-offset ops): main 59,544 B DXIL / 10,025 us translate / 63.274 ms driver median ([61.960, 62.059, 63.274, 63.811, 64.571]) vs PR 59,616 B DXIL / 9,894 us translate / 60.896 ms driver median ([59.495, 59.516, 60.896, 61.232, 62.632], -3.8%).
256_realistic (256 mixed zero-offset + offset/indexed ops): main 44,876 B DXIL / 7,953 us translate / 49.202 ms driver median ([48.611, 49.175, 49.202, 49.812, 52.087]) vs PR 44,788 B DXIL (-88 B) / 7,366 us translate (-7.4%) / 47.703 ms driver median ([46.657, 47.320, 47.703, 47.740, 47.769], -3.0%).
Regression run
xcl-smoke v1 commit: cbc296ab65a2661a61e3e2da109134bcd5319f60 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1686 (PresentX 1686) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14083 MBxcl-smoke v1 commit: 547886ca0e4b74b6338d970301894a543a21b249 gpu: NVIDIA GeForce RTX 5080 title: 9cc6a39e seconds: 60 exit: 0x0 frames shown: 1686 (PresentX 1686) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14071 MBNot tested
AI use