GPU: make VICTORY_GPU_TIMING notes self-contained #3534
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!3534
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@tharun-37 on GitHub · 2026-11-27 15:23 UTC · original
tharun-37:diagnostics/gpu-timing-notes→main· +45 −16 · 3 files · 1 commits · openVICTORY_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: #1633
AI-assisted (OpenCode).
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:42 UTC · original
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.@futurepro62 on GitHub · 2026-11-27 20:20 UTC · original
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
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:03 UTC · original
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.
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.