GPU: report host resources held by descriptor heap slots in diagnostics #1448
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1449"
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?
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T18:05:51Z.
Fixes #895.
Summary
HostHeap::slot_host/describe_resource(#[cfg(feature = "diagnostics")]) and include the underlyingID3D12Resourcesummary (host 2d WxH fFMT mips M,host 3d ...,host buffer 0x...B, orhost none) inHostHeap::describe_slot(including dynamic and stale slots) andState::readswithout eagerly allocating uncreated host heaps.Verification
describe_slot_reports_missing_and_live_host_resourcestesting null, unbacked, committed 2D multi-mip texture, dynamic, stale/released, and buffer slots underVICTORY_D3D12_DEBUG=1on NVIDIA GeForce RTX 5090 and Microsoft D3D12 WARP.cargo clippy --workspace --all-targets --all-featuresandcargo xtask policy: passed.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:28:40Z.
Automated triage for the maintainers.
Still a merge candidate. The new head
25a6030is the same change rebased onto currentmainas one commit. It is diagnostics only.HostHeap::describe_slotandHostHeap::slot_host(descriptor/host.rs) name the hostID3D12Resourcethat a slot keeps. They also cover dynamic and stale slots.State::reads(draw.rs) finds the heap throughheap_of/Heap::indexand reads it through the newHeap::existing_host, so it no longer creates a host heap as a side effect. I checked the index handling against main'sHostHeap::new, wheremadehascountentries andkepthascount + extra. A title handle maps only belowcount, so the newdynamicbranch is never reached fromState::reads. The branch merges cleanly, and CI (check) passes on this head.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-25T10:39:24Z.
Amended commit message in
cfbdee2b(no code change, tree identical to7d8720f1) to addCo-authored-bycredit for @rpmaster2 from #895.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.