GPU: cache the raw SRV byte-bias flag when building the root bindings #1204
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by timorjay on 2026-11-28T15:31:25Z.
While 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.