GPU: cache the raw SRV byte-bias flag when building the root bindings #1204
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!1204
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1204"
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?
@timorjay on GitHub · 2026-11-28 15:31 UTC · original
timorjay:perf/cache-root-srv-bias-in-binding→main· +57 −17 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCWhile recording a draw,
State::bindwalks the translated shader's user-data words once per bound root SRV to check forUSER_VIEW_BIAS. Those words and the title slot are already fixed when the host pipeline is created.This change records that one bit in the root view binding alongside the title slot and host parameter. Both one-view tables and direct root descriptors use it. The record occupies the same 8 bytes as the previous pair on x64 and handles the full range of title slots without a mask or a fallback scan.
The idea came from Vilocity, which credits ProjectLeonida/mandy and maren-halv/VIctory-DXR. This implementation keeps the flag on each binding in VIctory-NVIDIA. Vilocity commit
Verification
cargo test --release --locked -p victory-gpu --lib root_view_bias_is_specific_to_the_srv_and_its_title_slot,cargo check --release --locked --all-features -p victory-gpu, andcargo build --release --locked -p victory.black_box, and the order alternated across nine rounds. The impact on whole-frame time is unmeasured.AI-assisted with OpenAI Codex.