Repository navigation
Conversation
|
Tested: current PR head merged onto current No Linux/Wine report in the thread yet; adding one.
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
|
Independent RTX 3070 check of clean PR head Windows 11 Pro build 22631, Core i7-10700K, GeForce RTX 3070 (driver 617.42), Rust 1.100.0 MSVC, DXC/DXIL 1.9.2602.17, release build. The workspace suite reported 1,273 passed, 0 failed, 46 ignored. Its pass count includes 26 runtime cargo build --release --offline --locked --workspace
cargo test --release --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputCodex (GPT-6.2) ran the tests and drafted this report. |
|
Test report for #2341 on RTX 5070 Ti (Windows 11): the cap works at translation level and its test passes; I could not reproduce the memory spike on the base today, so the in-game effect is not shown I reported the Tested
Not tested
Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5). |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
bmjask
left a comment
There was a problem hiding this comment.
No concrete source-level defect found. Giant-program refusal occurs before per-lane lowering and falls through to the existing direct_compute translator/auto-compact path; cache identity invalidates stale per-lane results. Current Windows CI and AMD smoke evidence are green. Nonblocking coverage gap: unit tests stop at refusal rather than proving end-to-end direct_compute fallback accepts the giant program, though external translation evidence covers it. I found no blocker.
92437bd to
45dbd47
Compare
|
Rebased onto current |
What is in it
Follow-up to #2203 addressing @tiagonleal's
XCL_PER_LANE=1memory-spike report on giant compute programs (such as56c0cd3b82a00c6e):56c0cd3b82a00c6e(488,744 B guest code, 14,377 blocks) became accepted byrecomp::lower_dxil::compute_with. Because the per-lane form has no compact loop-switch lowering, it emitted 4,563,088 B of plain DXIL (9.5× larger than gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426's 478,764 B compact form), causing the NVIDIA driver compiler to spike +18 GiB RAM and OOM.crates/xcl/src/gpu/recomp/lower_dxil.rs:MAX_INSTS = 20_000(matchingdxil::compact::large's 20,000-instruction threshold): checked right after decode before spawning the 256 MB worker thread or constructing IR, so giant programs immediately fall back to gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426's compact form.MAX_DXIL_BYTES = 1 << 20(1 MiB): post-lowering safety cap incompute_with(all 39 normal per-lane compute shaders in the 2,000-program sample are<= 197 KB).lower_dxil.rsadvancesXCL_PER_LANE_SOURCE_IDautomatically so any cached multi-megabyte per-lane entries are invalidated on disk.compute_with_refuses_giant_programs_for_compact_fallbackcovering both caps.Impact:
56c0cd3b82a00c6ewith--direct --lanes --split 1: immediately refused ("program too large for the per-lane form") and translated via gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 compact form (478 KB DXIL instead of 4.56 MB DXIL; total sweep time 0.7 s vs 3.2 s).--direct --lanes --split 1 --sample 2000 --max-bytes 0): all 39 / 205 normal per-lane compute shaders continue to translate (0 regressions); 4 giant compute programs (>= 20,000instructions) are routed to gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426's compact form.Tested
rustc 1.100.0, DXC /dxil.dll1.9.2602.17, debug & release builds.cargo test --workspace -- --test-threads=4on45dbd47: 1436 passed, 0 failed, 47 ignored across 37 test binaries (29 runtimeSKIPPEDnotices from adapter-gated tests); the newcompute_with_refuses_giant_programs_for_compact_fallbackpasses.--hash,--sample 2000) were done on the pre-rebase head92437bd; the rebase only merged this PR's test next to a new test inlower_dxil.rs(no code overlap).xcl shaders <pack> --direct --hash 56c0cd3b82a00c6e --lanes --split 1: refused by per-lane (program too large for the per-lane form), compact form 478 KB DXIL, 0 errors.xcl shaders <pack> --direct --lanes --split 1 --sample 2000 --max-bytes 0: 39/205 per-lane compute programs unchanged, 4 giant compute programs capped, 0 validator/panic errors.Regression run
Baseline (
main568e7db):PR (
45dbd47, run withXCL_PER_LANE=1):Not tested
XCL_PER_LANE=1(verified via single-hash56c0cd3b82a00c6erouting to compact form + 60-secondXCL_PER_LANE=1smoke run).AI use
56c0cd3b82a00c6eand the 2,000-program per-lane size distribution, implementingMAX_INSTS/MAX_DXIL_BYTESand the unit test inlower_dxil.rs, and running the test and smoke suites.