Report bound descriptor tables accurately in DRED breadcrumbs #1233
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1233"
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 Jitheswar on 2026-11-24T16:37:58Z.
The device-removed (DRED) report names what each draw or dispatch was bound with. For user data it recomputed each value from the title's current state and read every table value as
value / 32, an index into the first bound heap (heaps[0]). That's wrong in three common cases, and they mislead exactly when the report matters:What changes
[rebuilt view table base N];[unbound table].Test:
draw::breadcrumb_tests::breadcrumbs_distinguish_constants_rebuilt_tables_and_missing_tables(diagnostics feature, synthetic state).Rebased onto upstream by hand:
bind()was restructured for the page table and root views. Windows-target clippy-D warningsis clean with and withoutdiagnostics.victory-gpu --features diagnosticson an RTX 3050 6 GB (Linux, Proton 11, vkd3d-proton): 72 passed / 10 failed. The same 10 fail on plain upstream on that host (view heap capped at 1,000,000), and the breadcrumb test passes. Not run in the game for this change.AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by MichaelSmithAI on 2026-11-24T16:49:31Z.
We compared the dispatch marker on this PR and its base on an RTX 4090 under Wine/GE 3.2. A guest command list bound a CBV that required a rebuilt table, a UAV in the adjacent slot, and a separate scalar root constant. On both revisions the shader wrote 18 to the expected texel (17 from the CBV plus 1 from the root constant).
On the base, the marker printed
u0=0x0 [heap 0: null]for that working table and described heap slot 1 beside the scalar. With this PR it printedu0=0x40 [rebuilt view table base 2] u1=0x1. That matches the byte offset sent to the shader and keeps the scalar readable.For interpreting #1216 and #1222, the remaining distinction is the identity of an individual resource. The fixture independently knew the destination texture and checked its contents. The marker’s
title tablesentry gave its shape and format (uav 2x2 f42), while the rebuilt-table annotation gave the base. Two same-shaped UAVs would still need another identifier to tell them apart in the log.Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T17:59:39Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
312ff56:cargo test -p victory-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
upstream-sync referenced this pull request2026-11-24 21:02:38 +00:00
Imported from Marvisak/VIctory. Originally posted by Jitheswar on 2026-11-24T22:57:51Z.
Rebased onto
70564aeas3575db4. Upstream's restructuredbind()(page table, root views, heap binding) meant reapplying the change by hand. The report keeps upstream's new detail for a slot the host never made (the title's words there), now read from the heap the table is actually in instead of always heap 0. Windows-target clippy-D warningspasses with and withoutdiagnostics. On an RTX 3050 (Proton 11, vkd3d-proton)victory-gpu --features diagnosticsgives 72 passed / 10 failed: the same 10 that fail on plain70564aeon this host (view heap capped at 1,000,000), and the breadcrumb test passes. AI-assisted (Claude Code).Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:20:11Z.
Automated triage for the maintainers.
Merge candidate. This is a diagnostics-only change to the DRED draw/dispatch markers in
crates/victory-gpu/src/draw.rs. TodayState::op_textreads every table value as an index into heap 0, so a table rebuilt for the draw, or one in another heap, is misreported. The PR records each stage's user data as bound inbind(BoundUserData, only whileVICTORY_D3D12_DREDis on) and prints it throughnote_user_data. A rebuilt table shows its fresh base, a bound table its own heap and slot (with the "title words" detail now read from that heap), and an unset table shows as unbound. I checked thatbindpushes one entry per stage before any point whereop_textcan run, and thatHostList::notebuilds the text only with DRED on. Emulation behaviour does not change. One tester's fixture shows the old marker was wrong and the new one matches the offset sent to the shader.Please add a short PR description. The body is empty.
CI: no check runs on the head commit.
Generated by Claude Code
Pull request closed