Repository navigation
Conversation
|
RTX 3060 12 GB, retail title, 300 s: no regression. This PR's head Both exit 0x0 with no device removals or crashes. Frames: 2 199 against 2 234 on Regression run main: this PR: RTX 3060 12 GB (driver 581.80), i9-14900KF, 64 GB RAM, Windows 11 26200. AI use: Claude Code (Claude Opus 5.5) built both commits, ran the title and wrote this report. |
7f46339 to
bc20fd9
Compare
bc20fd9 to
ae7e5bc
Compare
ae7e5bc to
1bebee0
Compare
|
No open or merged PR makes the same change; #292 cleans up the separate AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
The console heap's RES map (view slot address -> ID3D12Resource) is filled by note_resource and nothing removed an entry when the resource was destroyed. A trace or target dump that later read the slot (GetDesc in bind.rs) was handed a dead pointer. RES is only filled with XCL_TRACE_FRAME / XCL_DUMP_TARGETS, so nothing changes without them (one lock per release when the map was never made). forget_resource drops every entry naming the resource; res_release calls it in its n == 0 block next to title_textures::forget. The unit test fails without the retain (resource_at still returns the dead pointer). The release-hook test (the_last_release_drops_entries_before_the_object_goes) also fills RES and checks that res_release forgets the resource at its last reference; it fails with the real.rs call removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1bebee0 to
273cce7
Compare
|
Thanks, you are right: the test called I extended On your point 2: the scan per release only happens while the map exists, and Claude Code (Claude Sonnet 5.5) assisted with the change and this reply. |
|
Follow-up review (head 273cce7, since 1bebee0, diff read, not a merge-check):
New: none. Fine: the forget sits in the AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
The console heap's resource map (
RESinconsole_heap.rs) is filled only whenXCL_TRACE_FRAMEorXCL_DUMP_TARGETSis set, and nothing removed an entry when the resource was released. Later lookups by address could find a released resource and callGetDescon a dead pointer.res_releasenow forgets the resource when its last reference goes, next totitle_textures::forget.This revision: rebased onto
mainb10cc4c6. One conflict, inreal.rs'sres_releaseagainst #2436:forget_resourcenow runs after #2436'spark_recyclableblock, still insiden == 0and beforelate_release::hold. In the earlier rebase onto765b2c5b, the conflicts inconsole_heap.rsand inreal.rs'sres_releasewere resolved by keeping both sides.What is in it
crates/xcl/src/hle/d3d12x/console_heap.rs: a publicforget_resourceand the testa_released_resource_is_forgotten_by_the_resource_mapcrates/xcl/src/hle/d3d12x/real.rs: the call inres_releasewhen the count reaches 0, and the release testthe_last_release_drops_entries_before_the_object_goesextended to check that the last Release removes the resource from the map (RESispub(super)for it)Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)), debug build for the suite, release builds for the smoke runs.mainb10cc4c6(head273cce7a).cargo test --workspace --no-fail-fast -- --test-threads=4aftercargo build --workspace(debug) on273cce7a: 2607 passed, 2 failed, 49 ignored, 27 SKIPPED. The 2 failures aretwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs(two test targets), which is intermittent: it passed in two other runs on this head and in one onmainb10cc4c6; this diff does not touch the driver cache.main): no wave64 (21), per-lane f16/f32 cases refused by the per-lane form (3), no heap windows (2),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache: Developer Mode is required) (1).forget_resourcedoes not remove the entry (left: Some(..), right: None)forget_resourcecall inres_releaseremoved ("the released resource is still in the resource map") and passes with it.Regression run
The same retail title for 60 s on both sides,
scripts/smoke.ps1on clean trees, release builds,XCL_PREPARE=0andXCL_PRESS_AT=16:Aon both sides, RTX 4090 (driver 621.40).main (
6bfb5c51):This PR's head (
273cce7a):The PR's run got 105.1 % of
main's frames and 103.7 % of its peak commit.Not tested
XCL_TRACE_FRAMEorXCL_DUMP_TARGETSset; the smoke runs do not set them, so they check for regressions only.AI use
maine429936cand ran the suite and the smoke pair on that head.main765b2c5band the conflict resolution, ran the suite and the smoke pair through subagents, and updated this description. A Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolutions).mainb10cc4c6): Claude Code, Claude Opus 5.5: rebased the branch, resolved the conflicts, updated this description; Claude Sonnet 5.5 subagents ran the tests and the smoke runs; a Claude Opus 5.5 reviewer agent checked the rebase (range-diff and the conflict resolution).273cce7a: Claude Code, Claude Opus 5.5 (main session) orchestrated it and updated this description; a Claude Sonnet 5.5 subagent wrote the test change; subagents ran the suite and the smoke pair.