Bmjask/ultra performance redesign #2778
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!2778
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2778"
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?
@bmjask on GitHub · 2026-11-26 12:00 UTC · original
bmjask:bmjask/ultra-performance-redesign→main· +36617 −4042 · 76 files · 383 commits · draftWhat is in it
Tested
cargo test --workspace -- --test-threads=4: N passed, N failed, N ignored (SKIPPED GPU tests: …)Regression run
main:
PR:
Not tested
AI use
@KOLESNiii on GitHub · 2026-11-26 12:15 UTC · original
Can these improvements be broken down into smaller scoped changes, and then individually merged into main, instead of this mega-PR?
@inf1425 on GitHub · 2026-11-26 12:20 UTC · original
Please complete your PR template too...
@KOLESNiii on GitHub · 2026-11-26 12:46 UTC · original
I put together a proposed split in #2787. @bmjask, are you planning to open PRs for the slices below? If any are unclaimed, I’d like to take them and open focused PRs against main, keeping the original commit attribution.
41a369ee), then preserve and retry dirty work when upload preparation fails (3cd053e4). I’d coordinate the timeout prerequisite with #1277.311fc618with the minimum producer tracking it needs, so a list wait can see the deferred CPU write that satisfies it. I’d keep this to its own regression and PR.b81ac2ebas a standalone PR with byte-parity coverage and a detile benchmark.I’d start with sparse upload recovery if that’s free. If there’s a prerequisite I’ve missed or a narrower cut you’d prefer, please point me to it.
@SlopTart on GitHub · 2026-11-26 13:01 UTC · original
Suite run on this PR from two Linux/Wine machines. Headline: the xcl lib test binary hard-crashes its test host on this branch, and it is reproducible with one single test.
The killer, one command (usual CPU-lane env: wine runner,
WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence, network off):Results:
b49be1837d0487c47d0487c47d0487c4d98343d2With
--nocapturethe last xcl line before the host dies is its own log lineD3D12.X: 2 allocator resets so far with recordings still held or on the GPU – another PC allocator took its place, then wine reportsUnhandled exception code c0000409 flags 1 addr 0x1400e6e25(xcl.exe image base0x140000000, so offset +0xE6E25). A single-threaded full lib pass (--test-threads=1) dies on exactly this test (test 51 of the run), and the two threaded workspace runs die in the same alloc_pool neighborhood on both machines, so the whole-suite abort and this one test look like the same fault.Consequence for the template checklist: a full
cargo test --workspacerun on these lanes cannot produce lib totals on this branch, roughly 1330 lib tests get no verdict. The integration binaries are fine: same 5 known Wine-red names on PR and on main (disk_free_space_ex_reports_pls_quota,offline_split_compute_pipeline_is_reused_by_a_second_process,split_compute_prefers_the_offline_whole_pipeline,set_predication_buffer_state_and_kickoff,test_title_runs_and_game_folder_is_untouched), no new integration reds on this PR.Tested:
--skip gpu::; workspace runs used--test-threads=2 --skip gpu::f910a402is current), the single-test crash still reproduced ond98343d2Not tested:
Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
@ettehn on GitHub · 2026-11-26 13:20 UTC · original · edited 2026-11-26 13:28 UTC
Native Windows follow-up to the Wine allocator abort, Windows 11 with Rust 1.97.1 MSVC debug, one test per process.
mainb49be183:released_lists_leave_only_live_recordings_and_gpu_work_holding_the_backingpasses.f6577375b9460228627fb284fc65a8577777da8d: that exact test terminates the test process with0xc0000409.BackingProbe::newclones the retained fence, so the mock needs a realIUnknown::AddRefslot. The slot had pointed tounexpected_call, which callsabort(). I initialized the fake fence refcount to 1 for the map-owned reference, implemented increment/decrement in its AddRef/Release slots, and asserted the count was 0 afterforget(alloc). No production changes were needed for this test.The allocator group is still red after the fixture fix.
submit_reservation_keeps_pre_reset_attribution_across_queuesindependently fails with fence refs 4 vs expected 0, even in a fresh process. The next test,transferred_owner_is_released_once_outside_state_after_logical_forget, encounters0xc0000005in the group but passes on its own. I have not attributed that second failure or group abort to the missing AddRef above.AI-assisted diagnosis and Windows verification (OpenAI Codex).
_Originally posted by @ettehn in #2778
Retest on
2c5c33d4c85acf64a489204e40b8efb990bfa6e20xc0000409, matching the Wine retest.alloc_pool.rs, the allocator group completes with 23 passed, 0 failed, 0 ignored, no reported GPU skips. In addition to the AddRef fix above, the cross-queue test advances its mock fence through value 6 before cleanup and gives the replacement allocator a validReleaseslot. The resubmit test now registers its initial submission throughbegin_submit/finish_with_markso it creates the list lifetime thatnote_resubmitschecks. The group also runs throughtransferred_owner_is_released_once_outside_state_after_logical_forgetsuccessfully.cargo test --locked --offline -p xcl --lib -j 2 hle::d3d12x::alloc_pool::tests:: -- --test-threads=1 --nocaptureon Windows 11 build 26200, Ryzen 9 8945HX, RTX 5070 Ti Laptop (621.24), Rust 1.97.1 MSVC debug. The full suite and a retail title were not tested.OpenAI Codex assisted with diagnosis and verification (model unavailable in this session).
@SlopTart on GitHub · 2026-11-26 13:27 UTC · original
Wine-lane follow-up to my crash row above and ettehn's Windows control, at PR head
2c5c33d4(heads keep moving, re-checked 2026-11-26):The fixture abort is still live upstream, unmerged-fix:
--exact hle::d3d12x::alloc_pool::tests::released_lists_leave_only_live_recordings_and_gpu_work_holding_the_backingstill hard-kills the Wine test host (exit status 9) on this head, matching ettehn's0xc0000409on Windows. TheirBackingProbe::newAddRef diagnosis also fits our side exactly: the mock fence vtable inalloc_pool.rsis built fromunexpected_call(line 1433) which isstd::process::abort(), andabort()surfaces asc0000409/fast-fail. One fault, two platforms, confirmed.ettehn's remaining red reproduces on Wine too, same fixture as shipped, fresh process, no local changes:
That is the same fence-ref count (4 vs expected 0) ettehn reported on native Windows. A plain assertion failure with identical numbers on Wine/Linux and Windows/MSVC points at the allocator changes in this PR, not at mocks or Wine.
b49be183the full lib suite completes green apart from the known baseline reds, andreleased_lists...was verified solo at 0.00s;submit_reservation...is among the passing on main in the full run.Setup same as the row above (rig A: Ryzen 9 9900X, RX 7900 XT, Mesa 26.2.5 RADV, wine-11.0 Proton, rustc 1.94.0; CPU lane,
gpu::skipped). Not tested: the0xc0000005group abort ettehn saw, group runs on our lane die earlier on the fixture abort.Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting.
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.