GPU: make VICTORY_GPU_TIMING notes self-contained #3534
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3534"
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 tharun-37 on 2026-11-27T15:23:34Z.
VICTORY_GPU_TIMINGsplits submissions into per-list executions and allocates timestamp queries, but command notes were gated on DRED. With DRED off, the timing switch had no commands to pair with those timestamps, so its slow-command report was empty.This change records notes when either DRED or GPU timing is on. DRED-specific output is unchanged: shader traces and D3D12 marker commands remain DRED-only. A pure boolean helper in
switch.rshas a truth-table test; no game data, captured output or hardware-specific values are involved.Verification:
cargo clippy --workspace --all-targets --locked -- -D warningspasses.cargo clippy -p victory-gpu --features diagnostics --all-targets --locked -- -D warningspasses.cargo test -p victory-gpu --features diagnostics switch::tests: 5 passed, 0 failed.cargo xtask policy: 191 files ok.victory-gputests still have the same 3 pre-existing failures (244 passed, 3 failed, 1 ignored in that crate).Claim: https://github.com/Marvisak/VIctory/issues/1633#issuecomment-7221878517
AI-assisted (OpenCode).
Co-authored-by: andrewpozdnakov7-jpg [email protected]
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T18:42:05Z.
I tested the command labels from two real D3D12 copies, one per list, on app-local WARP. Each list copied four bytes into a separate readback buffer. Both buffers returned the expected bytes in every run.
14a950fThe combination keeps both exact PR heads,
a684e32and #356914a950f, and merges cleanly. With the temporary two-copy test removed, 247 GPU tests plus the SDK module check passed and one was ignored. Strict GPU Clippy with all features and the asset policy passed.Next step is maintainer review. Please retain the Git authors on cherry-pick or rebase. If folding my integration into another commit, add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>. AI-assisted with Codex.Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-27T20:20:29Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
a684e32(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.notes_are_recorded_for_dred_or_timingonly builds with thediagnosticsfeature, so the run above doesn't include it; it passes incargo test -p victory-core -p victory-gpu -p victory-hle -p victory-loader -p victory-shader -p victory --lib --locked --features victory-core/diagnostics,victory-gpu/diagnostics,victory-hle/diagnostics,victory-loader/diagnostics,victory-shader/diagnostics,victory/diagnostics(same skips).--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:03:32Z.
I tested this change with
VICTORY_GPU_TIMING=1and DRED unset on app-local WARP. On exacta684e32, timestamps were present, but with 4,096 or 4,098 notes the last sample included a separately bracketed 1 MiB copy after the sampled prefix.I resolved the one overlapping timestamp hunk with #3622 in
e725e0a. It preserves both exact heads. The last sample now ends before the copy in both oversize cases. The 0, 1 and 4,095-note controls still end after it, and the copy bytes match across all cases. The combined diagnostics suite passed 247 repository tests and one SDK module-identity test, with one ignored. Strict all-feature GPU Clippy and the asset policy passed.Please keep the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding my integration into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:46:24Z.
For the timing follow-up in #3590, I combined this exact head
a684e32with the sample cutoff fix in #3622 and the per-command maximum in #3651. The combined tree is available at4768fc0.The two-window synthetic check uses the reporting code from the exact combined commit. The existing totals, counts and ranking matched. The highest-cost entry reported 38.00 ms/frame and a 26.00 ms maximum. The next entry reported 24.50 ms/frame and a 48.00 ms maximum. Its next window reported a 3.00 ms maximum. The previously verified cutoff behavior stays in the combined tree. This check used generated timestamps and covered the aggregation and formatting on CPU.
If you take another matched hardware sample, the two aggregate lines with their
max … ms per commandsuffix would answer whether a single measured interval approached each per-frame total.Please keep the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding my contribution into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by tharun-37 on 2026-11-28T02:51:11Z.
Applied the query-cap boundary fix in \d282d9: the 4,096th note now closes the last timestamp query, and \close\ does not append a second end query once the heap is full. The last sample no longer spans commands recorded after the cap.
Co-authored-by: andrewpozdnakov7-jpg [email protected]
Switch tests, strict GPU/diagnostics Clippy, workspace Clippy and the asset policy pass.
AI-assisted (OpenCode).
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:52:36Z.
Thanks for landing the cap fix in the PR and preserving the attribution. I compared the trees.
ad282d9has the exact same source tree ase725e0a, which passed the 4,096- and 4,098-note cutoff controls on WARP.Updated branch
889bf90combines your new head directly with #3651. Its source tree is identical to the earlier combined CPU-tested4768fc0tree. This is the branch to use for a matched aggregate sample in #3590.Please keep both Git authors on cherry-pick or rebase, or keep the existing
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>trailer if folding my contribution into another commit.Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T04:00:40Z.
I combined the current
02bc831head with #3651 and #3661 ind79fece. The intermediate peak merge has the same source tree as the build used in #3590.On app-local WARP 1.0.22 with Agility 1.620.2 and DRED off, the actual list submissions produced these counts:
All four generated copy words matched. The report had 12,285 measured intervals and four notes beyond the budget, retained the maximum field, and cleared both figures after the report. The temporary runtime fixture, strict all-feature GPU Clippy and the asset policy passed.
Please retain the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding my contribution into another commit.AI-assisted with OpenAI Codex.
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.