gpu(native): run ExecuteIndirect of one dispatch from title memory #112
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!112
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-112"
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?
@Olima34 on GitHub · 2026-11-26 16:50 UTC · original
Olima34:feat/native-execute-indirect-dispatch→main· +161 −2 · 11 files · 1 commits · closed without mergingWhat this changes
On macOS
ExecuteIndirectnever ran: only the#[cfg(windows)]path inlist.rsexecutes, and the native host counted each call and dropped it ("indirect execution dropped"). Tester report #99 shows five dropped just before the story load stalls, among them signatures of stride 12 whose single argument is a dispatch (type 2, or the console's single-pass dispatch 105).The native host now runs the simplest form: one record of one dispatch argument,
max == 1, and no count buffer. The GPU reads the group counts from title memory at the argument address, throughdispatchThreadgroupsWithIndirectBufferon the pool buffer, with the pipeline and root arguments a direct dispatch would get. Everything else is still dropped and counted as before: draws (#99's strides 16 and 20), several records, a count buffer, root constants or views before the dispatch. Ashortcut:comment says when to take those.How it was tested
an_indirect_dispatch_reads_its_group_counts_from_title_memory(native, on Metal): group counts written to title memory drive the dispatch, and its output is checked.only_single_dispatches_execute_indirectly_on_the_native_hostpins which signatures run.cargo test -p victory-gpu -p victory-metalon arm64 with the Metal Shader Converter (185 tests, 2 passes); arm64cargo test --workspace(694)cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings, also with--all-featurescargo xtask policyChecklist
@Olima34 on GitHub · 2026-11-26 16:57 UTC · original
Closing:
8765326(native/execute-indirect, now on main) covers this and more (draws as well as dispatches). Thanks!Pull request closed