shader: lower mesh computed buffers, dynamic root counts, and spilled phis #558
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!558
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-554"
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?
@Sheffy007 on GitHub · 2026-11-28 03:47 UTC · original
Sheffy007:feat/mesh-and-spilled-phi-descriptors→main· +745 −42 · 4 files · 1 commits · openSummary
computed_buffersforHwStage::Msinresource::track_graphics(and keepcomputed_buffersconsistent inemit_fast'sstructure::killingretry), matching the Metal mesh stage's zero-copy page-table binding.Source::BuiltMemorywhencomputed_buffersis enabled and a 4-dword V# buffer descriptor is built around a non-VERTEX_TABLERootType::Descriptorwith a runtimenum_records(w2), and setroot_memoryinLower::newwheneverSource::BuiltMemoryis present so compute shaders expose the root descriptor's 64-bit title address.Tracer::const_u32) when classifyingSource::Constantsampler words andSource::Built/Source::BuiltMemorycontrol/count dwords.v_readlane_b32of constant scratch VGPR lanes across VGPRphijoins inTracer::phiandTracer::collect_descriptor_loads, and propagateVal::Missingthrough multi-armv_writelane_b32spills (Lower::spill_missing) without pollutingread_phison the scratch VGPR.victory-shaderand an end-to-end Metal GPU mesh test (a_mesh_program_loads_from_a_computed_buffer_descriptor_in_title_memory) reading 64-bitPoolmemory with runtimenum_recordsbounds checking.Verification
cargo xtask policycargo test --locked -p victory-shader(423 lib + 5 sweep passed)cargo test --locked -p victory-gpu --lib -- mesh_tests:: --test-threads=1(24 passed on Metal)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningscargo clippy --workspace --all-targets --all-features --locked --target x86_64-pc-windows-gnullvm -- -D warningsCloses #556
Refs #258, #525
cc @Olima34
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.