Repository navigation
d3d12: keep live SRVs intact during resource retirement - #2679
Conversation
|
|
tedin7
left a comment
There was a problem hiding this comment.
Review of head 3140649e (comment only).
What I checked
- The change removes the opt-in rewrite that replaced live slot-18 descriptors with null SRVs during retirement (
retire_null_ready_views,retire_null_srv_desc,retire_views_stuck). Nothing else references them (git grepover src, tests, docs is clean). X2W_D3D12_RELEASE_RETIRED_VIEWS=1now only logs that it no longer clears descriptors and keeps the read-only budget breakdown. The normal release path and its queue/recording holds are untouched.tests/startup_resource_retire_views.cppbinds the original and copied descriptors after the last release, reads back GPU texels, overwrites explicitly, then checks retirement. CMake covers legacy-on, legacy-off and a base-retirement-off control (startup_resource_retire_views_noretire_*), warp and hardware.- This is a correctness fix of descriptor lifetime, with no claim to advance game startup. #2379 stays a measurement issue.
- Sibling tests
startup_resource_retire,_title,_reasonsare in the Win2025 selection.
Commands run (Linux)
git diff --check origin/main...HEAD: cleanpython3 tests/docs_links_check.py: 523 links okpython3 tests/bidi_controls_check.py: ok
Win2025 WARP receipt follows separately.
AI-assisted; commands listed were executed locally.
|
Win2025 WARP receipt for head 3140649 after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
Six debug-layer cases skip (no debug layer on the VM); the other 20 pass in dev and release. AI-assisted; commands listed were executed locally. |
Refs #2379. Corrects the opt-in descriptor rewrite introduced by #2579 and preserves the same-slot rebind behavior covered by #2468.
A live slot-18 view and each tracked descriptor copy hold the resource until explicit overwrite or heap teardown. The normal release path still waits for recording and queue holds. X2W_D3D12_RELEASE_RETIRED_VIEWS=1 now logs that the rewrite is disabled and enables the existing read-only retirement breakdown when base retirement and budgets are enabled.
The Windows Release fixture binds the original and copied descriptors after the last guest Release, including after the release fences and with a gated submission. It verifies nonzero GPU readback, overwrites the descriptors explicitly, checks retirement after discard or queue completion, and checks the recorded copy against its original texels. Coverage includes the legacy setting on and off plus a base-retirement-off control.
cmake --build --preset release --target startup_resource_retire_views startup_resource_retire startup_resource_retire_title startup_resource_retire_reasonsctest --preset release --no-tests=error -j 1 -R '^startup_resource_retire(_|$)' -Vpassed 26/26. No skips.python -B tests/docs_links_check.pychecked 512 links.The 20 GiB A/B in #2379 exercised the earlier experiment and remains a memory-pressure measurement. This change covers the checked descriptor and recording lifetimes. Independent code review is welcome.