victory-gpu: report VICTORY_SKIP_PIPELINES takes and first skips (NEW-70) #3549
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!3549
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3549"
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?
@cloph-dsp on GitHub · 2026-11-27 16:55 UTC · original
cloph-dsp:fix/skip-pipelines-diagnostics→main· +32 −3 · 1 files · 1 commits · openDepends on: #1633
Claim:
NEW-70(posted on #1633 as issuecomment-7222806878). The earlier PR #2273 that claimed this closed unmerged on 2026-11-27T02:12Z; open PRs #2696 and #3418 touch the same switch but cover release-build gating and@filelists, not this reporting.Problem:
VICTORY_SKIP_PIPELINESsilently drops draws/dispatches. The diagnosticsDROPScounter aggregates reasons, but nothing says which hashes the switch accepted, and each skipped shader is only reported as a repeated count rather than the first time it actually skips.Change (1 file, +32/-3): in
crates/victory-gpu/src/pipeline.rs(all behindcfg(all(windows, feature = "diagnostics"))):first_time(what: &str) -> boolwith a process-localMutex<Option<HashMap<String, ()>>>so a reason is reported once;skip_hashes()logs the accepted hashes once viatracing::info!(?hashes, "VICTORY_SKIP_PIPELINES: skipping their draws and dispatches")when the list is non-empty;note_drop()logs the hash the first time that shader actually skips viatracing::info!(hash, "VICTORY_SKIP_PIPELINES: skipped a draw or dispatch"), then still returns the same reason string so drop counting is unchanged;a_skip_is_reported_once_per_hash(two unique keys, true then false).The diagnostics-only
first_timeuses the sameHashMap/Mutexstyle already in the file; no new dependency. No game-derived data is touched: the keys are test strings in the new test and runtime shader hashes already present in the process.Validation (Windows, Rust 1.100.0/MSVC, CARGO_BUILD_JOBS=2, per-worktree CARGO_TARGET_DIR
D:\Victory-Contrib\target-new70):cargo test --locked -p victory-gpu --lib --features diagnostics -- pipeline::tests::a_skip_is_reported_once_per_hash --exact --test-threads=1 --quiet→test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 247 filtered out, exit 0.git diff --check→ exit 0.Limitation: only the named synthetic test was replayed; the full crate suite and a real title run with the switch set were not exercised.
GPU/driver: N/A (CPU-only diagnostics test). AI-assisted: Hy4 flash. No game data, assets, extracted shaders or DRM involved.
@oddmaniv on GitHub · 2026-11-27 18:53 UTC · original
Independent verification of the PR author's concurrent WARP pipeline/draw test at
76794d5da2f85506cdafcfc4f145ffed7477449e.cargo test --locked -p victory-shader --lib emit::host::tests::parallel_warp_pipelines_and_draws -- --exact --nocaptureMain baseline pin:
63bcca43c6a00a758510398fa43096ce7e4f7df0.Windows x86_64 MSVC native runs. Local and remote source snapshots matched before and after each check. The adaptation applies the PR diff without additional source edits.
This is focused regression coverage, not the full workspace suite, a gameplay test, or an independent validation of every behavior in the PR. No new fix is claimed.
AI-assisted verification.
@futurepro62 on GitHub · 2026-11-27 21:26 UTC · original
NVIDIA full-suite run, to go with the reports above by oddmaniv, since none of them names a GPU run. Tested exact head
76794d5(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.a_skip_is_reported_once_per_hashonly 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
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.