GPU: report staged texture bytes in the frame line #3461
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!3461
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3461"
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 03:40 UTC · original
tharun-37:fix/texture-counter-attribution→main· +120 −7 · 2 files · 1 commits · openSummary
Current main already skips uploading unchanged texture contents, but the frame line's
textures ... MBvalue included bytes read only to check whether content changed. This makes that diagnostic reflect upload traffic rather than change-detection traffic.Fixes #3269
Verification
cargo test -p victory-gpu texture::testscargo test -p victory-gpu --features diagnostics texture::testscargo clippy -p victory-gpu --all-targets -- -D warningscargo clippy -p victory-gpu --all-targets --features diagnostics -- -D warningscargo test -p victory-gpu— 230 passed, 1 ignored; 3 failures reproduced on base63bcca4@oni-swr on GitHub · 2026-11-27 04:10 UTC · original
WARP test report for #3461 (AI-assisted (Claude), claimed on #1633 comment 7209455899)
VICTORY_WARP=1 VICTORY_D3D12_WARP=1), rustc 1.98.1 / cargo 1.98.1, Windows SDK 10.0.26100dxil.dllviaVICTORY_DXIL,cargo test -j 4 -p <crate> --lib --locked -- --test-threads=1. No GPU hardware used. No game files involved.63bcca43c6a00a758510398fa43096ce7e4f7df0; head9192ff2341b6b5d78a7d36b71f677f74d183fbb9(already contains this main; merge is a fast-forward, tested tree equals head).victory-gpulib: main 231 passed / 0 failed / 1 ignored -> head 233 passed / 0 failed / 1 ignored. The 2 new tests (an_unchanged_texture_reports_no_staged_bytes,staged_size_counts_only_the_subresources_passed) pass. No regressions.refresh_nownow returns staged bytes (0 when nothing changed or the detile fails) instead of bytes read, so the frame line's texture byte count drops for unchanged textures by design.TexWatched/TexHasheddiagnostics still count bytes read. Not covered by tests: the watched-pages path (staged_sizeis only unit-tested directly, and the unchanged test uses the hash path). Not checked here: a real-title frame line. No concerns.@cloph-dsp on GitHub · 2026-11-27 04:37 UTC · original
Independent CPU-only verification on Windows (Rust 1.100.0/MSVC, worktree-local
CARGO_TARGET_DIR,CARGO_BUILD_JOBS=2, no game data).9192ff2341b6b5d78a7d36b71f677f74d183fbb9, base/merge base63bcca4.cargo test --locked -p victory-gpu --lib -- texture::tests::an_unchanged_texture_reports_no_staged_bytes --exact --test-threads=1 --quiet->test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 233 filtered out.cargo test --locked -p victory-gpu --lib -- texture::tests::staged_size_counts_only_the_subresources_passed --exact --test-threads=1 --quiet-> same, 1 passed/233 filtered.63bcca4(git grep -c -F-> exit 1).git diff --check 63bcca4 HEAD-> clean.Note: only the two named synthetic tests were replayed; the full crate suite was not run. GPU/driver: N/A (CPU-only
Stagingbookkeeping). AI-assisted (Hy4 flash). No game data, assets, extracted shaders or DRM involved.@futurepro62 on GitHub · 2026-11-27 09:17 UTC · original
NVIDIA full-suite run, to go with the reports above by cloph-dsp, oni-swr, since none of them names a GPU run. Tested exact head
9192ff2(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: 868 passed, 0 failed, 10 ignored.an_unchanged_texture_reports_no_staged_bytes,staged_size_counts_only_the_subresources_passed.--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.