Separate texture rewrite dimension counts #4965
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4965
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4964"
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?
@kyle7908 on GitHub · 2026-12-01 15:42 UTC · original
kyle7908:diagnose-texture-slot-rewrites→main· +111 −22 · 1 files · 1 commits · closed without mergingRefs #4860
What it changes
Texture-slot rewrite diagnostics now count confirmed texture SRV dimension mismatches separately from unavailable or unsupported dimensions. An SRV using its default descriptor can have no dimension available to the classifier. Previously that case incremented the same counter as an explicit 2D-to-array mismatch.
The two new counts sum to the old bucket. Aggregate rewrite and retention counts, log cadence, descriptor selection and retention rules stay the same. These counters measure rewrites and cannot establish that a draw sampled a null view.
How it was tested
5fabb46ewith only the new regression test added,cargo test -p victory-gpu --lib --locked texture_rewrites_distinguish_known_and_unknown_dimensionsfailed because the explicit mismatch and the implicit SRV both returnedKin::None.c84db15.cargo test -p victory-gpu --lib --locked descriptor::host::testspassed 87 tests with 1 ignored.cargo test -p victory-gpu --lib --features diagnostics --locked texture_rewritespassed both new tests. Coverage includes explicit and implicit SRVs, unknown and unsupported dimensions, placed buffers, retention modes and aggregate counts.cargo testpassed for the crates it touches: yes. The patchedvictory-gpusuite passed 1,097 tests with 66 ignored.cargo test --workspace --locked -- --test-threads=1passed with host loopback access. The three socket tests that failed in the restricted run also failed on the clean baseline under the same restriction.cargo test --workspace --lockedrun hit the existing UAV-pool assertion reported in #2420. The isolated UAV-pool test passed on the patch.cargo clippy --workspace --all-targets --locked -- -D warningsand the same command with--all-featuresproduced the same five errors on clean5fabb46eand on the patch. They are in the existing font, menu and panel code tracked by #4708.cargo xtask policypassed for all 464 tracked files.cargo xtask policy --stagedpassed for the one changed file.Checked for overlap
@trustno1-coder on GitHub · 2026-12-01 18:27 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
@cloph-dsp on GitHub · 2026-12-01 18:33 UTC · original
Verification (independent, AI-assisted: Hy4 flash). Windows, Rust 1.100.0 (Scoop rust-msvc), MSVC, commit-scoped shallow worktree.
Base
5fabb46eaf6ed8771321787f8871051abde69b9b, headc84db151c213d05e133112807d5ce2b01359866d.git diff --numstat→ crates/victory-gpu/src/descriptor/host.rs 111/22.Both tests are new on the base:
→ no match, exit 1 for each.
git diff --check "5fabb46e..c84db151"→ no output, exit 0.Result, each:
running 1 test,test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1162 filtered out.This is the counter split the report on #4860 asked for, so worth saying what is actually covered: the first test drives
kinwith hand-built descriptors and asserts a placed TEXTURE2D resource whose SRV dimension goes flat → array reports the same class as an explicit shader view carrying that dimension with a null resource handle, while the same old view against a buffer resource reportsUnknownDimensionrather than a confirmed mismatch. The second feeds all six kinds three writes each with fixedkeptflags (Sameall kept,Moved/Sizedonly later ones,Otheronly the last, the two dimension kinds never) and reads the per-class buckets back, plus the kept count andtotal_rewritesas the sum of the five class buckets.The caveat: these are the counters and the classifier, not the call site.
rewritten()still decideskeptfromKin::keptbefore counting, so what the log will report for a given run depends on that table rather than on anything asserted here.No title data, no device; GPU/driver N/A. No game data.
Pull request closed