Repository navigation
D3D12.X / kernelx: CommandList slots 131/132, synchronized sparse commit/decommit, and intro pool reservation - #236
utkarshxdev wants to merge 1 commit into
Conversation
…mit/decommit, and intro pool reservation
|
AMD run of Tested
What the title does with it
Points from reading the diff
Regression run (
this PR merged onto Not tested
AI use
|
|
Test report on our machine with this PR's head (03d4a86) stacked on current main (db1ddb2) + #300 + #294 + #273 + #304: Ryzen 7 9800X3D, RTX 3060 Ti 8 GB (wave32), driver 32.0.16.1742, Windows 11.
The same run without this PR (main + #300 + #294 + #273 + #304, 180 s): the same shape - dip 4.4-8.6 fps at t=44-166 s, 29.9 fps after. So on this hardware the PR neither helped nor hurt the intro pace measurably; the slow stretch looks bounded by something else (we see 6.5 GB local + 4.6 GB non-local video memory on the 8 GB card during it). Not tested: the command-list slots 131/132 paths in isolation; no unit-test run for this report (run-only data point). AI use: GPT-6.2 Astra (API model selector) ran the builds and runs and wrote this report; the human contributor watched the screen and reviewed it. |
|
Thanks for this, and thanks @srcamarda and @ryosen0 for the runs. Not merged yet - what would get it in, in this PR:
The two A/B runs above found no difference on a retail title either way, so with 1 and 2 gone and 3 tested this is a small, safe change. Please keep Tested (suite counts) and the |
Summary
Addresses intro rendering stalls, missing GPU tile samplings, and CommandList dispatch crashes:
CommandList Slots 131 & 132 (
list_x.rs,real.rs):RCX, RDX, R8, R9) returning0to prevent null vtable crashes during intro command list recording.Synchronized Sparse Commit & Decommit (
sparse.rs,kernelx.rs,placeholders.rs):VirtualAlloc(..., MEM_COMMIT)andVirtualFree(..., MEM_DECOMMIT)underSTATE.lock()alongside GPU tile bookkeeping.before_execute) scans and reads CPU pages mid-decommit.ERROR_INVALID_ADDRESS) before calling host Windows memory APIs.free_reservedguarantees decommit succeeds underSTATE.lock()before releasing sparse UMA reservations.early_commit_timingbenchmark to pureBTreeMapoperations without making host memory calls.Intro Streaming Pool Reservation (
kernelx.rs):0x1_3800_0000) uncommitted pool reservation strictly togame_scarlett_master.exe, rawMEM_RESERVE, andPAGE_NOACCESS.VirtualAllocif sparse space is exhausted.Validation
git apply --check --whitespace=error-allpassed cleanly on latestorigin/main(60565c4).cargo check --target x86_64-pc-windows-msvc --offline --all-targetspassed with 0 errors.intro_sparse_reservation_matches_the_observed_request,sparse_commit_rejects_invalid_ranges,command_list_slots_include_131_and_132, andearly_commit_timingthrough 32,768 ranges) all passed.