Recompiler: NVIDIA compute programs take flat heap windows by default #2428
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!2428
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2428"
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?
@Kalmarv on GitHub · 2026-11-25 18:37 UTC · original
Kalmarv:heap-windows-default→main· +394 −42 · 11 files · 2 commits · openPart of #2088. Stacked on #2427; only the top commit belongs here.
On NVIDIA, this PR turns #2427's flat heap windows on by default, for compute programs only. Graphics stages, mesh, GS, other vendors and the HLSL path keep the switch over root UAVs, as they do today.
What it changes for compute programs on NVIDIA, compared with
main's form (#2368's select over root UAVs):GetCachedBlob) was 41.11 MB with this form and 51.17 MB with root UAVs, a ratio of 0.803 (0.465–0.922 per record). NVIDIA removes the device when a title's compiled shader code reaches about 448 MB in total (#2403). I have not measured how much this moves that point for a whole title.main's form (#2368's select) this form built 22–48 % faster (geomean 7.67 vs 12.72 s, 0.603), with native code 0.877 times the size in that job. Against the switch from before #2368 it built 1.5–3.6 times as fast. Tables are in #2427. The gain is shown only for those few large programs. Under Wine and vkd3d-proton, @Royalflamejlh's times did not separate from the spread between runs (see Tested by others).How it decides:
XCL_HEAP_WINDOWSset:1gives heap windows to every stage, as before;0turns them off.0x10DE), and only for the compute programs the direct translator makes (compute_mem_windows).XCL_HEAP_FLAT=0brings back the guarded form.with_switch_fallback). Only builds that had heap windows are rebuilt that way. A graphics or mesh build without them is not built twice (@bmjask's review).XCL_HEAP_WINDOWS=1did. This applies to every list, graphics included, although graphics shaders still take the switch.Why only compute, and not the HLSL path:
XCL_HEAP_WINDOWSwas opt-in because two NVIDIA setups failed with it in #187's review:927adcc0). A view that some D3D12 runtimes refused, removing the device, is now capped (deb4b92b).What is in it
gpu/recomp/pso.rs:heap_windowswith the vendor default,set_adapter_vendor,heap_windows_everywhere,compute_mem_windows/compute_windowsandhlsl_windows.console_to_dxil_fortakes the compute windows for a compute program.XCL_HEAP_FLATis on by default.hle/d3d12x/real.rs:with_switch_fallbacktakes whether the build has heap windows: the compute windows for a compute build, the graphics windows for graphics and mesh.driver_psoretries E_OUTOFMEMORY in the switch form only for such a build.switch_fallback_tests: an E_OUTOFMEMORY without heap windows is not retried, one with heap windows is built again once, and a driver call outside a translated build is not a heap-window build.shaders.rs,gpu/adapter.rs: the--precompile/--export-hlsl/--measure-psowindows are the runtime's, per stage, for the bench's adapter. Compute programs takepso::compute_windows, ascompute_mem_windowsdoes. VS, PS and mesh programs takepso::graphics_windows, asmem_windowsdoes. So by default on NVIDIA only the compute programs are precompiled with heap windows. Before, every stage got the compute count, so precompiled VS, PS and mesh entries missed at run time (found by @pvfreis, comment 7181439405).gpu/uma.rs:XCL_UMA_WINDOWS=8|16still needsXCL_HEAP_WINDOWS=1, since graphics need the heap for more than 4 windows.tests/gpu_compute_e2e.rs: the switch-form fallback test checks the compute windows.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4on this head,c6e5af86(on #2427'sc8c2b7a6andmain6d12f58a): 1431 passed, 0 failed, 46 ignored.V_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32).heap_window_out_of_memory_falls_back_to_the_switch_formruns, because heap windows are on by default on this NVIDIA card, and passes: a refused heap-window pipeline is rebuilt in the switch form and runs correctly.switch_fallback_testspass, and so do #2427'sgpu_heap_flat_reads_match_the_switch_form,only_compute_programs_read_heap_windows_flatandprecompile_windows_are_the_runtimes. The last checks the precompile's windows per stage against the runtime's: withXCL_HEAP_WINDOWS=1, and with it unset on an NVIDIA and an AMD vendor, each in a new process. With the old single count it fails on NVIDIA's default: VS, PS and mesh got 772 where the runtime uses 4.xcl shaders --precompile --only vswith default settings; then the same withXCL_HEAP_WINDOWS=0, whose VS keys are the runtime's default ones. The second run's already-cached count is what the runtime finds.c6e5af86: the second run compiled none and found all 554.precompile, PS and mesh programs take the same count as VS.Tested by others
cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 1422 passed, 0 failed, 46 ignored. The 16 heap-window tests ran, none skipped, with no device removal. 25 SKIPPED lines (no wave64 and the like).c6e5af86, debug, Ryzen 7 9800X3D, Windows 11.XCL_REQUIRE_GPU=mesh: 1419 passed, 0 failed, 44 ignored. All 8 new tests ran and passed.heap_window_out_of_memory_falls_back_to_the_switch_formskipped there with "no heap windows", as it should off NVIDIA.--skiplist on NVIDIA includesheap_window_out_of_memory_falls_back_to_the_switch_form, so that run does not cover it (@thehollowedone's run below does). Its other skips aremain's tests, which this PR does not change.c6e5af86.heap_window_out_of_memory_falls_back_to_the_switch_formwithXCL_HEAP_WINDOWSunset andXCL_REQUIRE_GPU=mesh: 1 passed, 0 failed, 0 ignored. It ran on the real adapter with the heap views made by default, and the injected out-of-memory gave one switch-form rebuild.shaders.rs, andpso::graphics_windowswith the same rule as before); the fallback path is the same.heap_window_out_of_memory_falls_back_to_the_switch_formpasses 1/1, and the forced out-of-memory fires on the real adapter: the pipeline is built again in the switch form.maine1d84b7d.presentstest, also fails on thatmain(1422 passed, 1 failed, 46 ignored).6d12f58a,XCL_DIRECT_DXIL=1.XCL_HEAP_WINDOWS=0.Create*PipelineStatetime.=0run lost its device at 77.9 s in vkd3d-proton and is left out.c6e5af86) itself.CreateComputePipelineStatetime over 26 large programs.Regression run
scripts/smoke.ps1through our run script, 120 s, release builds,XCL_DIRECT_DXIL=1, in one queue job:mainb49be18, then this head. Both sides use the same data root and XCL cache, warmed by earlier runs, and start from the same learned coherent-window state.main's frames (2227 against 1593) and 50 % of its peak commit (14319 against 28787 MB). Its last 6 s still presented 60 frames per 2 s, wheremain's presented none. One run each; I have not looked into why the two differ this much.mainb49be18:This PR (
c6e5af86):Not tested
AI use
🤖 Generated with Claude Code
@DavidM1911 on GitHub · 2026-11-25 19:46 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure —gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier(group-barrier assertion, lower_dxil.rs). Same failure as #2371 and the rest of this stacked series.— Devin
@pvfreis on GitHub · 2026-11-25 23:25 UTC · original
Test report for
ab2855f(includes #2427d356a74) with #249678bba5conmaine1d84b7d(tree76fc443d): outputs and driver code size.Tested
--test-threads=4, NVIDIA 32-lane waves only. One run each.b39fd905: plus our test arms and a test-only break switch): 1429 passed, 1 failed, 46 ignored, 24 SKIPPED lines.main: 1422 / 1 / 46, 25 (heap_window_out_of_memory_falls_back_to_the_switch_formskips there). Both fail e2epresentsonly.XCL_WINDOW_NO_CARRY, wave32 and split wave64, in #2408's two tests and a new one (offsets, window edges, out of range, null, inactive lanes, halfword, typed,s_load): all expected values met. Three arms in #2427's test, one flat, agree with its root UAV run. Three one-line breaks of the flat read are caught.GetCachedBlobbytes, 60 compute records (30 largest, 30 sampled, chosen beforehand), unsplit, at opt-level 3 without debug assertions; plain debug gives the same DXIL and root signatures (60/60, 0 validator errors).XCL_HEAP_WINDOWS=0) 51.17 MB, guarded heap (XCL_HEAP_FLAT=0) 42.19, flat (new default) 41.11Not tested: what the 60 programs compute, a title, build time, split chains, GS, mesh, graphics, other GPUs.
AI use: Claude Code. Claude Opus 5.5 wrote the test, ran it and wrote this; Claude Fable 5.2 rechecked it.
@DavidM1911 on GitHub · 2026-11-26 00:59 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
@Royalflamejlh on GitHub · 2026-11-26 01:38 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA,
ab2855f, the title withXCL_DIRECT_DXIL=1, cold, 2 runs with heap windows by default and 2 withXCL_HEAP_WINDOWS=0: the heap form's DXIL was 11 to 21 % smaller (median 18 %), but its creation times did not separate from the spread between runs. The 18 programs whose DXIL changed took 73.0 s per run against 96.9 s, nearly all of it8994bb33…anddd51cdee…. Six programs with the same DXIL either way were also faster in the heap-window runs, by as much asdd51cdee….Setup:
6d12f58a(this pull request's base) + #684e56dbc3+ #2427d356a74+ #2428ab2855f, one build, the two settings in turn. RTX 4070 12 GB (615.71.09), Fedora 44, Wine 11.21 Staging, vkd3d-protonv3.1-90-g30b0eb9bwith XCL's relaxed-vtable patch and dxil-spirve084e35cplus four patches, release, Series X profile, 200 s, A at 16.0 to 16.2 s,XCL_PSO_PRELOAD=0,XCL_PSO_DISK_CACHE=0, fresh NVIDIA and vkd3d-proton caches per run. Times are thedriver compile finishlines: vkd3d-proton's whole creation under Wine (dxil-spirv, then the driver), not nativeCreate*PipelineStatetime.XCL_HEAP_WINDOWS=0: DXIL, two runs8994bb33444988e6dd51cdeedc76d3a744d832b4bdbd5ef8a74706fb8f96ade9=0. Over the 18, the median was 0.98; without the two largest, 56.8 s against 51.7 s. The 6 unchanged had a median of 0.43.=0run lost its device at 77.9 s (0x887a0005, vkd3d-protonFailed to wait for Vulkan timeline semaphore, vr -4, no NVIDIA kernel message); it is left out.af82530. Read: its changes limit flat reads to compute entries and retry E_OUTOFMEMORY only for heap-window builds; neither touches these programs, and no run logged an E_OUTOFMEMORY.Not tested:
af82530itself; the default path's direct programs (not reached in 200 s withoutXCL_DIRECT_DXIL=1); graphics; the suite; Windows.AI use: Claude Code (Claude Opus 5.5) ran the title and wrote this comment.
Posted without review by a person: the account owner was away and reads replies later.
@Kalmarv on GitHub · 2026-11-26 01:50 UTC · original
@Royalflamejlh thank you for the runs and the careful write-up.
Under Wine and vkd3d-proton, the compile-time gain doesn't separate from the spread between runs except in the two largest programs, and the six programs with unchanged DXIL show how large that spread is. I've scoped the description's compile-time claim to what it was measured on: native Windows, an RTX 5070 Ti on 610.74, and five large compute programs, timed against the switch from before #2368. Those five are all the native compile-time evidence there is, so the description now says the gain is shown only for a few large programs, and not natively against #2368's form. Your result is under Tested by others, with your caveat that the times are vkd3d-proton's whole creation path rather than native
Create*PipelineState. The 11–21 % DXIL reduction is cited there as well.AI use: Claude Code (Claude Opus 5.5) wrote this reply.
@pvfreis on GitHub · 2026-11-26 03:08 UTC · original
By reading only, not run, at
970823e4: on NVIDIA with default settings,xcl shaders --precompilemakes VS, PS and mesh compute-pass entries that the runtime never looks up.precompilegets one window count for every stage:shaders.rs:978takes it fromruntime_windows, which ispso::compute_windows(n)(shaders.rs:996). On NVIDIA that isn | HEAP_WINDOWS | HEAP_FLAT(pso.rs:92,:146).shaders.rs:1695), sotranslateemits the heap form (recomp/mod.rs:1506), andcompile_cachedkeys on that HLSL (dxc.rs:575).mem_windows()(pso.rs:204for VS/PS,pso.rs:1229for mesh), which has heap windows only withXCL_HEAP_WINDOWS=1(pso.rs:79,:151). Their HLSL is the root-UAV form, so each of those precompiled entries is a cache miss and the title compiles them cold. Nothing wrong is loaded. Onmainand on #2427 alone the two counts are the same.--only cs,--windows 1,XCL_HEAP_WINDOWS=0or=1and other vendors are not affected.precompile_windows_are_the_runtimesruns withXCL_HEAP_WINDOWS=1, so it does not see this.A fix could give
precompileboth counts:compute_windows(n)for compute containers and the rulemem_windowsuses for the rest, with the test also run withXCL_HEAP_WINDOWSunset and an NVIDIA vendor. #2613 and #2246 pass the same single count on to VS/PS and to the mesh pass, so they do not change this.AI use: Claude Code (Claude Opus 5.5) found this; Claude Fable 5.2 rechecked it; checked by a person before posting.
@upipibi on GitHub · 2026-11-25 19:41 UTC · original · edited 2026-11-26 03:56 UTC
Update, head
c6e5af8(pushed 03:30Z), same 8 GB RTX 3070, driver 616.56, Windows 11, debug, head as is:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 1422 passed, 0 failed, 46 ignored. The 16 heap-window tests ran (none skipped); no device removal; 25SKIPPEDlines (no wave64 etc.). The same counts as on970823e. Lib and workspace tests only; still no title run on an 8 GB card.NVIDIA test report for
dbf54bfon an 8 GB card, which Not tested lists. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, head as is (base3f27770), aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2 --skip gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier: 1350 passed, 0 failed, 46 ignored. No device removal and no compiler exit in the run, and the end-to-end title tests pass.no heap windowsSKIPPED line thatmainshows here is gone, andheap_window_out_of_memory_falls_back_to_the_switch_form,heap_windows_by_default_on_nvidia_only,default_heap_windows_are_flat_and_for_the_direct_form_only,gpu_raw_window_view_reaches_its_topandgpu_heap_windows_reject_out_of_uma_aliasingpass.a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier: this head's base has that test but not its fix (#2420), so it fails there onmaintoo. Skippedhle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR touches neither.no wave64, 3 f16/f32 forms the per-lane path refuses, 1 PSO measurement that needs Developer Mode.Added 21:32Z: re-run at the current head
ab2855f(as is, base6d12f58), same RTX 3070 8 GB, same command but without the bridged-test skip (the base now has #2420's fix): 1417 passed, 0 failed, 46 ignored. No device removal, and the end-to-end title tests pass. The heap-window tests run rather than skip (12 pass, includingheap_windows_by_default_on_nvidia_onlyandheap_window_out_of_memory_falls_back_to_the_switch_form), and nono heap windowsSKIPPED line appears. SKIPPED lines: 25 (21no wave64, 3 f16/f32 per-lane refusals, 1 PSO measurement that needs Developer Mode).AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
@Kalmarv on GitHub · 2026-11-26 01:55 UTC · original · edited 2026-11-26 04:14 UTC
@bmjask thank you, the P2 was right.
Fallback scope.
driver_psotook "heap windows" fromcompute_mem_windows()for every pipeline. With NVIDIA's default, compute is heap-windowed and graphics stays in the switch form. So a graphics E_OUTOFMEMORY was taken for a heap-window refusal, andwith_switch_fallbackbuilt the same graphics pipeline again. Fixed, now inc6e5af86:with_switch_fallback(heap, build)now takes whether the stage being built took heap windows:compute_mem_windows()for compute,mem_windows()for graphics and mesh (heap only withXCL_HEAP_WINDOWS=1).driver_psonotes E_OUTOFMEMORY only while that is set, and only for the first attempt. A driver call outside a translated build never counts.Tests,
real.rsswitch_fallback_tests:an_out_of_memory_without_heap_windows_is_not_retried: one attempt, E_OUTOFMEMORY returned;an_out_of_memory_with_heap_windows_is_built_again_once: two attempts, nothing left noted;a_driver_call_outside_a_translated_build_is_not_a_heap_window_build.The end-to-end
heap_window_out_of_memory_falls_back_to_the_switch_formstill runs and passes on this head. Suite onc6e5af86(on #2427 andmain6d12f58a): 1431 passed, 0 failed, 46 ignored.Regression pair (in the body), on
c6e5af86againstmainb49be18, 120 s,XCL_DIRECT_DXIL=1: no removal or crash, 140 % ofmain's frames (2227 against 1593) and 50 % of its peak commit.Earlier NVIDIA failures and 8 GB.
927adcc0, scoped above), and the view that removed the device on some runtimes is capped (deb4b92b). This card shows no removals. Whether that covers both failures is not confirmed, and the body says so.AI use: Claude Code (Claude Opus 5.5) made the fix and the tests and wrote this reply.
github-bot referenced this pull request2026-11-26 06:18:31 +00:00
@Kalmarv on GitHub · 2026-11-26 04:23 UTC · original
@pvfreis thank you, that was right, and it would have cost exactly what this PR is for: VS, PS and mesh programs compiling in play after a precompile.
Checked against the code at 970823e4:
precompiletranslated every stage withpso::compute_windows(n), which on NVIDIA by default isn | HEAP_WINDOWS | HEAP_FLAT. VS, PS and mesh programs takepso::mem_windows()at run time, which has heap windows only withXCL_HEAP_WINDOWS=1.Fixed in
c6e5af86, as you suggested:runtime_windowsinshaders.rsgives two counts. Compute programs takepso::compute_windows, ascompute_mem_windowsdoes. VS, PS and mesh programs take the newpso::graphics_windows, whichmem_windowsnow uses too.precompile_windows_are_the_runtimesnow also runs withXCL_HEAP_WINDOWSunset on an NVIDIA and an AMD vendor, each in a new process. With the old single count it fails on the NVIDIA case: VS, PS and mesh got 772 where the runtime uses 4.c6e5af86: 1431 passed, 0 failed, 46 ignored.Offline count, the first 4,000 records of the title's shader pack, release: a fresh DXIL cache,
xcl shaders --precompile --only vswith default settings, then the same withXCL_HEAP_WINDOWS=0, whose VS keys are the runtime's default ones.c6e5af86: the second run compiled none and found all 554.I did not count PS. The first 6,000 records hold none, and a full-pack count takes close to an hour. PS and mesh take the same count as VS in
precompile.AI use: Claude Code (Claude Opus 5.5) made the fix, the test and the count and wrote this reply.
@pickles976 on GitHub · 2026-11-26 05:00 UTC · original
The GPU leg now runs and passes on a relaxed diagnostic stack — and the fallback genuinely fires. Head
af825308(policy tests previously verified 2/2 under Wine on this host), RTX 4060 Laptop GPU 8 GiB, Wine 11.0, NVIDIA 590.48.1,--locked --target x86_64-pc-windows-msvc, one test thread, freshCompiling xcl .../xcl-pr2428/...provenance.On stock vkd3d-proton 3.2.0 this integration test aborted before its body:
Assertion failed: iface->lpVtbl == &d3d12_root_signature_vtbl (vkd3d_private.h:2111)afterID3D12RootSignature – 8 PC methods, 33 internal slots under the guard— the #175 identity wall, which is why the earlier report here carried only the policy-test result.On the relaxed diagnostic build of the same provenance commit our stock DLL reports (
2576c0b4adfae4a,-Db_ndebug=true+ the two #175from_ifacerelaxations, local-only):heap_window_out_of_memory_falls_back_to_the_switch_formpasses 1/1 (0.91 s). Not a skip: the log shows the forced OOM hitting on the real adapter —the driver ran out of memory on a pipeline with heap windows – building it in the switch form (1 so far)— followed by a translated console CS PSO build and full Queue/Fence/Resource/Allocator/List adoption through the guards. The #1651 concern about this test's opt-in GPU skip did not apply here; the fallback path executed.Scope: relaxed stack = identity checks compiled out, so this verifies the fixture's assertions, not XCL's vtable patching against a stock runtime; no title run. Log:
.compat-xcl/logs/verify-pr2428-wine-heap-oom-relaxed.log(local). AI-assisted verification and report (OpenAI Codex).@Kalmarv on GitHub · 2026-11-26 05:06 UTC · original
@pickles976 thank you, especially for showing that the fallback really fired on the adapter and wasn't skipped. Your run is under Tested by others in the description, with your caveats: the relaxed diagnostic build with the identity checks compiled out, and no title run. It was on af825308. The head is now
c6e5af86, which changes only the precompile's windows, not the fallback path.AI use: Claude Code (Claude Opus 5.5) wrote this reply.
@bmjask on GitHub · 2026-11-25 21:03 UTC · original · reviewed
P2: driver_pso uses compute_mem_windows() for every PSO. On NVIDIA defaults compute is heap-windowed but graphics remains switch-form; nevertheless translated_graphics_pso runs under with_switch_fallback, so any unrelated graphics E_OUTOFMEMORY is misclassified as heap-window failure and retries the identical graphics pipeline. Restrict heap-OOM fallback to the actual translated stage/form and add graphics-E_OOM/no-retry coverage. This draft also lacks regression pair, reruns of prior NVIDIA failure scenarios, and 8 GB-card validation.
xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2590@futurepro62 on GitHub · 2026-11-26 08:43 UTC · original
NVIDIA and AMD full-suite run, to go with the reports above by pickles976, upipibi, since none of them covers AMD. Tested exact head
c6e5af86(on its base6d12f58).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1419 passed, 0 failed, 44 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,dispatch_chain_native_wave64_builds_whole,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.only_compute_programs_read_heap_windows_flat,heap_windows_by_default_on_nvidia_only,default_heap_windows_are_flat_and_for_the_direct_form_only,gpu_heap_flat_reads_match_the_switch_form,an_out_of_memory_without_heap_windows_is_not_retried,an_out_of_memory_with_heap_windows_is_built_again_once,a_driver_call_outside_a_translated_build_is_not_a_heap_window_build,precompile_windows_are_the_runtimes.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1430 passed, 0 failed, 46 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on mainb49be183too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@Kalmarv on GitHub · 2026-11-26 08:46 UTC · original
@futurepro62 thank you for the full suite on
c6e5af86, and on the Radeon iGPU too. Both runs are now under Tested by others in the description.One test in your NVIDIA
--skiplist is one this PR changes:heap_window_out_of_memory_falls_back_to_the_switch_form. Onmainit skips on NVIDIA, because heap windows are opt-in there, andXCL_REQUIRE_GPU=meshturns that skip into the #1651 failure. On this head, heap windows are on by default on NVIDIA, so the test does not skip: it forces an out-of-memory and checks the switch-form rebuild. On my RTX 5070 Ti (610.74) it ran and passed in the suite onc6e5af86(1431 passed, 0 failed, 46 ignored, no--skip). If you have a minute,cargo test -p xcl --test gpu_compute_e2e heap_window_out_of_memory_falls_back_to_the_switch_formon 621.40 would cover it on your driver. On the iGPU it skipped with "no heap windows", which is the intended default off NVIDIA.The rest of the list are
main's tests, which this PR does not touch.AI use: Claude Code (Claude Opus 5.5) drafted this reply from your comment and my suite log.
@thehollowedone on GitHub · 2026-11-26 09:38 UTC · original
Independent RTX 3080 Ti check of PR head
c6e5af86, following the request to cover the fallback test. NVIDIA driver 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, rustc 1.99.1 MSVC, DXC/DXIL 1.8.2502.11; debug build.With
XCL_HEAP_WINDOWSunset andXCL_REQUIRE_GPU=mesh:cargo test --offline --locked -p xcl --test gpu_compute_e2e heap_window_out_of_memory_falls_back_to_the_switch_form -- --nocapture --test-threads=1passed 1/0/0. It ran on the real RTX adapter, made the shared heap views by default, logged the injected heap-window out-of-memory condition and one switch-form rebuild, then completed the compute fixture. No skip or device removal occurred.With
XCL_HEAP_WINDOWSandXCL_REQUIRE_GPUunset:cargo build --offline --locked --workspace: passed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --quiet: 1,431 passed, 0 failed, 46 ignored across 37 test executables; 24 GPUSKIPPEDnotices (mainly unsupported wave64). Skips are not GPU coverage.An initial suite invocation before the workspace build failed three e2e tests because the test title binaries were missing. The documented build step and full rerun above passed.
Not tested: a retail title or paired smoke run, an actual driver out-of-memory event rather than the test injection, other GPU vendors, or release performance. This confirms the fallback fixture on Ampere driver 621.35; it does not establish the whole-title code-size or compile-time gain.
AI use: Codex (GPT-6.2 Sol) checked out the exact head, ran the tests, checked the log for the real GPU and actual fallback, and drafted this report.
@Kalmarv on GitHub · 2026-11-26 09:43 UTC · original
@thehollowedone thank you. Your run covers the fallback test that the earlier run left out:
heap_window_out_of_memory_falls_back_to_the_switch_formran on a real RTX 3080 Ti (621.35) with heap windows on by default, and the injected out-of-memory gave one switch-form rebuild. Your 1431/0/46 workspace run is also under Tested by others in the description, with your caveat that the out-of-memory was the test's injection, not a real driver event.AI use: Claude Code (Claude Opus 5.5) drafted this reply from your comment.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.