GPU: implement SetMarker, BeginEvent, and EndEvent on command lists (slots 0x1c0-0x1d0) #1168
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1168"
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 geiyiliyabumo on 2026-11-24T16:19:14Z.
Summary
Closes #859
Full verification details and change notes are documented in #859 (commit
a74fe6b, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-24T16:45:10Z.
Tested
SetPredication/SetMarker/BeginEvent/EndEventon RTX 5090 and WARP (VICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1). One subtle interaction with DRED breadcrumbs inset_marker:SETMARKERdesynchronizesHostList::removal_data: WhenVICTORY_D3D12_DRED=1is enabled (crate::host::dred_on()),host.note_op(...)already emits a hostlist.SetMarker(...)breadcrumb soHostList::notesstays strictly 1:1 withD3D12_AUTO_BREADCRUMB_OP_SETMARKERentries (host.rs:685). Callinghost.note_op(...)and then unconditionally callinghost.list.SetMarker(...)emits twoSETMARKERbreadcrumbs for one note entry, shifting all subsequent crash breadcrumbs on that command list by one. Returning early afternote_opwhendred_on()is active (with decoded UTF-16LE/UTF-8 marker text) preserves exact 1:1 breadcrumb indexing.set_predication, recordingnote_read(..., (gpu, 8))onupload.GetGPUVirtualAddress()also lets DRED page-fault attribution match the staged 8-byte predicate buffer, and guardingnote_opuntiluploadsucceeds avoids orphaned notes on allocation failure.Reference commit verified with
VICTORY_D3D12_DRED=1+ 64-bit high-bit deferred write readback on RTX 5090 & WARP:github.com/fuzeofficlal/VIctory@b1d1dee5c3Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T17:16:55Z.
Thanks @fuzeofficlal for catching the DRED breadcrumb desynchronization and upload-path attribution!
Folded both fixes into this PR:
ote_read\ on the CPU-backed upload path until \host.upload(device, 8)\ succeeds and record (upload.GetGPUVirtualAddress(), 8)\ for DRED page-fault attribution.
Re-verified \cargo test -p victory-gpu --features diagnostics --lib list::tests\ (3/3 passed) with \VICTORY_D3D12_DRED=1\ on both WARP and AMD Radeon RX 9060 XT, plus \clippy\ (default + --all-features\ -D warnings) and \cargo xtask policy.
AI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:54Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
3247043:cargo test -p victory-gpupasses, 52 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:38:32Z.
Automated triage for the maintainers.
Merge candidate. Update after your reply:
set_predicationis gone, so slot 0xf8 staysE_NOTIMPLas onmain, and the PR now covers only slots 0x1c0/0x1c8/0x1d0 incrates/victory-gpu/src/list.rs. Onmainthese slots areobject::missingentries: they log once and returnE_NOTIMPL, which a void method's caller ignores. Here they forward the title's metadata and payload to the hostSetMarker/BeginEvent/EndEvent, with a null pointer or zero size mapped to no payload. With DRED on,set_markerrecords only throughHostList::note_op, sonotesstays 1:1 with theSETMARKERbreadcrumbs. Rendering is unchanged; the gain is labelled PIX captures and DRED reports. The tests check the slots in both list tables and run the calls, including null and zero-size payloads, on a host device. CI: passing (check).Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T01:54:09Z.
Rebased cleanly onto \main\ (\
ccfb029). \cargo test -p victory-gpu --locked\ (143 passed, 0 failed), \cargo clippy -p victory-gpu --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.[PR #1168] GPU: implement SetPredication, SetMarker, BeginEvent, and EndEvent on command liststo [PR #1168] GPU: implement SetMarker, BeginEvent, and EndEvent on command lists (slots 0x1c0-0x1d0)Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T04:10:12Z.
Narrowed this PR as suggested in triage: removed \SetPredication\ (slot \
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T21:59:41Z.
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because the title never calls these slots (an unimplemented list slot logs its first call, and no title run has logged them), and for the title's newer list layout their positions are not settled. Two methods were added to the base list somewhere between 0x1b8 and 0x1e8, and the marker call the console upscaler makes at 0x1d8 does not have the PC
BeginEvent/EndEventshape. Filling 0x1c0-0x1d0 on a guess would replace the log that is meant to pin them with a host call that could read title pointers as marker payloads. The gain, even when right, is PIX labels only.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed