[pr-diagnostics][rendering] descriptor: clear a staged slot's shows record before it is given back #696
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!696
Loading…
Reference in a new issue
No description provided.
Delete branch "MasterWolf/Darner:pr/post-merge-stage-retired-views-shown"
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?
Contributor role (optional)
What it changes
post-merge: a diagnostics session of about 16 minutes logged 252darner_gpu::shows::onerrors ("descriptors of destroyed objects"), all on staged slots: the 252 destroyed objects were shown by 254 descriptors in 251 distinct slots (3 slots each showed two of them, at different times), 249 of those 254 were written again later, and no bind read a list of slots that named any of them.Staged::dropand theEnded::Setdrop pushed staged slots back on the free list and then retired the host resources they showed, without tellingcrate::shows. When a retired resource was destroyed before another view took the slot,shows::gonestill found the slot naming it and logged an error for a slot no list could name.Both drops now call
shows::wrote(cpu(heap, slot), None, "given back")(the slot's descriptor handle) before the slot goes back on the free list. If the call came after, a thread could take the slot first and this call would erase its new record. No descriptor is written.shows::wroteis empty without thediagnosticsfeature, so other builds are unchanged.Adds a diagnostics-only test on a WARP device for both drop paths (
descriptor::stage::tests::slots_given_back_show_nothing); where no WARP device can be made it returns at once and is reported as passed.How it was tested
Tested revision:
12fd974onpost-merge28a9b42. The checks below ran ond63ae64, the same tree with an earlier commit message.Commands and results, on
d63ae64:cargo build --workspace --locked: okcargo test -p darner-gpu --features diagnostics --locked: 14 passed, 0 failed (13 on the base)cargo clippy --workspace --all-targets --features diagnostics --locked: the same warning counts as the base (darner-gpu 56)Changes a default: no (diagnostics builds only).
A/B result: no default and no speed claim. In-game check, diagnostics builds, same settings and hardware:
28a9b42)darner_gpu::shows::onerrorsdarner_gpu::regionserrors (unrelated, for scale)1 run of about 16.5 minutes for A, 2 runs of about 15.5 and 14.5 minutes for B.
Gates run on that revision (the three in AGENTS.md; there is no CI), each also on the base
28a9b42:cargo test --workspace --locked, ond63ae64: 182 passed, 0 failed (182 on the base)cargo clippy --workspace --all-targets --locked, ond63ae64, without-D warnings: the same warning counts as the base (darner-gpu 46, darner 8, darner-shader 6, darner-loader 4). The base already has these, so with-D warningsthe gate fails on the base and here alike.cargo clippy --workspace --all-targets --all-features --locked, on12fd974, without-D warnings: the same, darner-gpu 61 on both.Gameplay: RTX 5070 Ti 16 GB, driver 621.40, Series X, 2560x1440, DLSS DLAA, hardware ray tracing, DLSS frame generation 2x.
Shader wave sizes tested: not relevant (no shader change).
Hardware dependence: none expected (CPU-side bookkeeping of the diagnostics build).
Coverage gaps: B was a combined build, not this change alone: it also had 3 other unmerged changes, the trail-map programs listed in
OVERinindirect.rs(sent as its own PR) and two local changes not sent for review (a high residency priority for heaps while they hold ray tracing memory, and a bounded cache that keeps given-back pager pages committed). The first B session ended in a GPU device removal after about 15.5 minutes, with no breadcrumbs (DARNER_D3D12_DREDwas off), so its cause is unknown; nothing ties it to any of the changes, and this one writes no descriptor (CPU-side bookkeeping of diagnostics builds only). The second B session ran withDARNER_D3D12_DRED=1and ended without a removal, but at about a third of the frame rate, so it is the weaker of the two zeros.Checklist
post-merge.docs/asset-policy.md.Checked for overlap
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.