GPU: implement SetMarker, BeginEvent, and EndEvent on command lists (slots 0x1c0-0x1d0) #1168
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1168
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1168/head"
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?
@geiyiliyabumo on GitHub · 2026-11-24 16:19 UTC · original
geiyiliyabumo:feat/list-predication-and-markers→main· +151 −2 · 1 files · 2 commits · closed without mergingSummary
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.
@fuzeofficlal on GitHub · 2026-11-24 16:45 UTC · original
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@b1d1dee5c3@geiyiliyabumo on GitHub · 2026-11-24 17:16 UTC · original
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.
@Zipettte on GitHub · 2026-11-24 18:00 UTC · original
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).
@Marvisak on GitHub · 2026-11-25 00:38 UTC · original · edited 2026-11-25 07:23 UTC
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
@geiyiliyabumo on GitHub · 2026-11-25 01:54 UTC · original
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.@geiyiliyabumo on GitHub · 2026-11-25 04:10 UTC · original
Narrowed this PR as suggested in triage: removed \SetPredication\ (slot \
@Marvisak on GitHub · 2026-11-25 21:59 UTC · original
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