shader,gpu: read shader constant tables from a root SRV instead of a per-thread array #200
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
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
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
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/Androtim--MiniVI!200
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/200/head"
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?
@Androtim on GitHub · 2026-11-30 05:17 UTC · original
Androtim:feat/iter197-shader-code-table-root-srv→main· +312 −10 · 18 files · 1 commits · closed without mergingSummary
s_getpc_b64indexed loads inemit/hdr.rs) from internal per-thread constant arrays (constant_global("code", ...)) to a shared raw root SRV (SLOT_CODE_TABLE = 250inROOT_CBV_SPACE) read viarawBufferLoad.f32, avoiding per-thread scratch VRAM reservations on host drivers (VICTORY_CODE_TABLE_PRIVATE=1opts back into internal arrays).code_table: Vec<u32>toLoweredandHostShader, updatesshader_cacheswitch fingerprint and binary encoding/decoding (keeping trailing compatibility when empty), pools deduplicated 256-byte-aligned tables into 4 MiB host upload buffers inpipeline/host.rs(code_table_address), and bindsstage.code_tableas a root SRV descriptor indraw.rs.diff_tests.rsroot binding forSLOT_CODE_TABLEand addsvalu_tests::code_table_reads_via_root_srv_and_populates_table_wordsverifying DXIL validation plus live GPU and WARP execution.Verification
cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy:311 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib code_table:4 passed; 0 failed(DXIL + hardware GPU + WARP)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib shader_cache:: -- --test-threads=1:2 passed; 0 failedcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib pipeline:: -- --test-threads=1:34 passed; 0 failedcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings: passcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings: pass-PlayParity, warm cache):11.7 fps,used_max=6485/6841 MB(over=0 MB),final_waiting=5252,mapped_rate=8.42 ms/s,lit=17/24,luma=104.84,magenta=0.0%,0crashes, late PNGs crisp (frame-4980,frame-4988)-PlayParity):10.85 fps,max_draws=12773,used_max=7046/6869 MB,lit=18/24,luma=104.52,magenta=0.0%,0crashes, late PNGs crisp (frame-3737,frame-3753)@Androtim on GitHub · 2026-11-30 09:17 UTC · original
Overlaps
#173(SLOT_CODE_TABLE = 250root SRV constant table), which is now merged ontomain. Please rebase onto latestmainif keeping any remaining delta (such asVICTORY_CODE_TABLE_PRIVATE=1/diff_tests.rs), or close as superseded.@Androtim on GitHub · 2026-11-30 10:02 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
needs-rebase· CI (check):passingThis PR no longer merges cleanly into
main.To change the verdict: Rebase onto current
mainand resolve conflicts; CI and triage will run again automatically.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-12-01 01:39 UTC · original
Closing stale/conflicted backlog PR per #276. Superseded by the active root-architecture replacement pillars with isolated plain --release A/B verification.
Pull request closed