gpu(native): extend remirror_tables window from shader table metadata #14
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!14
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/14/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?
@claytonblythe on GitHub · 2026-11-26 09:07 UTC · original
claytonblythe:fix/remirror-table-entries→main· +147 −11 · 15 files · 2 commits · merged 2026-11-26 09:21 UTCSummary
Addresses the
NativeHost::remirror_tables16-entry shortcut noted indocs/ROADMAP.mdSection 1 andcrates/victory-gpu/src/native/host.rs:RootType::Tableroot slot during shader lowering (Lower::record_table_entry+native.used) and exposes it asHostShader::table_entries: Vec<(u8, u32)>.table_entriesintovictory_gpu::native::list::Bindingand passes the boundBinding(includingBinding::pson draws) intoNativeHost::remirror_tables.table_check_countkeepsTABLE_CHECK = 16as a floor when no metadata is present or fewer entries are declared, and extends the re-mirroring scan window to cover any higher table entries used by the bound compute, vertex, or pixel shader.Testing
cargo test -p victory-shader --lib(all unit tests pass, including new test inemit::gfx_refusal_testsverifying a shader reading table entry 20 at byte offset0x280reportstable_entries == [(3, 21)]).cargo test --target x86_64-apple-darwin -p victory-gpu --lib native::host::tests(verifiestable_check_countfloor, per-slot extension, and VS+PS max merging).cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings(0 warnings).cargo xtask policy(358 files ok).Note: Tested via unit tests only; not yet run against the game executable.
@LakshanSivakumar on GitHub · 2026-11-26 09:21 UTC · original · approved these changes
Reviewed and tested merged with main on macOS (tests, Windows clippy, policy). Thanks!