DXIL: lower window_at address carry in 32-bit without i64 #2180
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2180
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2180/head"
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?
@O5-7 on GitHub · 2026-11-25 07:55 UTC · original
O5-7:dxil/window-at-32bit-carry→main· +187 −14 · 3 files · 1 commits · merged 2026-11-25 11:42 UTCPart 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
@bielfreedom on GitHub · 2026-11-25 08:18 UTC · original
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
568e7db;547886c.CreateComputePipelineStatetime.Method
XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=0, 4 windows,XCL_PIPELINE_THREADS=1.XCL_PSO_DISK_CACHE=0, with a fresh exe name per phase (the AMD driver cache is keyed on it).568e7dbTests on this card (
XCL_REQUIRE_GPU=1,XCL_ADAPTER=9070)cargo test --release -p xcl --lib -- window_at memory_windows --test-threads=1: 8 passed, 0 failed withXCL_DIRECT_DXILunset, and 8 passed, 0 failed withXCL_DIRECT_DXIL=1.window_at_lowers_to_32bit_carry_without_int64andgpu_window_at_32bit_carry_edge_cases.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,
XCL_HEAP_WINDOWS=1, a title run.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.
@luckyteagirl on GitHub · 2026-11-25 08:27 UTC · original
Independent RX 6800M check on exact head
547886ca0e4b74b6338d970301894a543a21b249(base568e7db7729c8fa6c8f0f4b32d798faaf11462bb). The worktree was clean after diagnostics.Environment: Windows 11 build 26200; Ryzen 9 5980HX; Radeon RX 6800M (RDNA2), driver
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5. I usedXCL_ADAPTER=6800M,XCL_REQUIRE_GPU=wave64, and the matchingXCL_DXC_DIR. I also retried with a temporary Windows high-performance GPU preference for the test executable.Focused results (
cargo test --locked -p xcl --lib -j 2 <filter> -- --test-threads=1 --show-output):window_at_lowers_to_32bit_carry_without_int64,XCL_DIRECT_DXIL=1: 1 passed, 0 failed, 0 ignored; noSKIPPEDmarker.gpu_window_at_32bit_carry_edge_cases,XCL_DIRECT_DXIL=1: process terminated with0xc0000005/STATUS_ACCESS_VIOLATIONbefore an assertion or test result. The same new test also crashed withXCL_DIRECT_DXIL=0and with the high-performance GPU preference.gpu_memory_windows_above_4_gibtest also terminated with0xc0000005under direct DXIL on this machine. Thus the new GPU-test crash is not sufficient evidence of a regression in this PR's address lowering.Temporary local diagnostic prints showed the new test completed UMA allocation, HLSL and direct DXIL compilation, two
OpenExistingHeapFromAddress/CreatePlacedResourcecalls, pipeline creation, four window UAV descriptors, andSetDescriptorHeaps. The process then died before the print immediately afterSetComputeRootSignatureinrun_in_region. The older control test stopped at the same boundary. I removed all diagnostic edits and verified the checkout returned to the exact clean PR head.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.
@itsSio on GitHub · 2026-11-25 11:07 UTC · original
Tested
Independent Windows check at clean head
547886ca0e4b74b6338d970301894a543a21b249, no local merge or patches. Windows 11 Pro 26200 and x64 MSVC on both systems, unoptimized dev/test with debug info off. Bothcargo build --workspace --lockedandcargo test --workspace --locked --no-fail-fast -- --test-threads=4 --nocaptureexited 0.32.0.16.108832.0.16.1088Both 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 (
test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state). The workspace used default shader options.With
XCL_DIRECT_DXIL=1,cargo test -p xcl --lib --locked window_at -- --test-threads=1 --nocapturegave 2 / 0 / 0 and the same command withmemory_windowsgave 6 / 0 / 0 on each of the RTX 2080 SUPER, RTX 5080 and Radeon RDNA2 iGPU (32.0.21043.5001, Ryzen 7 system). No runtime skips in these six invocations. Thewindow_atfilter includes the DXIL validator check and the GPU check for window-boundary carry, borrow and out-of-range results.Not tested
Retail smoke or shader samples, full AMD workspace, Intel or RADV, compilation speed and gameplay performance.
AI use
Ran via Samaritan:
openai/gpt-6.2-sol): planned and ran both Windows verifications, checked raw logs and wrote this report. No subagents contributed to this verification.@ivall on GitHub · 2026-11-25 11:42 UTC · original
Merged as
16d6793, thank you.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug:
426a5a7+ this +ea088a5(animage_get_resinfofix),cargo test --workspace --no-fail-fast -- --test-threads=4: 1243 passed, 2 failed, 46 ignored, 7 SKIPPED;XCL_DIRECT_DXIL=all cargo test -p xcl --lib gpu::: 629 passed, 2 failed, 22 ignored. The two failures arefuzz_validate_and_gpu_1and_3(#2115), onmaintoo.gpu_window_at_32bit_carry_edge_casesran on the card and passed.In the title, in a tree with #2029, #1782 and the #2080 stack besides: one run of 421 s with
XCL_DIRECT_DXIL=1, no device removal, no crash, closed by hand.AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this on the maintainer's behalf.