gpu: a value test on Metal for indexed table buffers without a stride (#424) #429
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!429
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-425"
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?
@tiagonogueiraa-bit on GitHub · 2026-11-27 17:38 UTC · original
tiagonogueiraa-bit:test-indexed-table-buffer→main· +68 −1 · 2 files · 2 commits · openRefs #428
docs/native-host.md("Indexed table buffers without a stride") said the path was translation-tested only: "no GPU value test". This PR adds the test. It is test and docs only, with no translator or host change.Test.
heap_tests::an_indexed_load_through_a_table_buffer_without_a_stride_reads_its_elements(victory-gpu, on Metal with MSC 4.0 beta 3).shaders::translateof an FSPX container with two table records: an SRV (kind 0, user data 0) whose record gives no stride, and a raw UAV (kind 3, user data 1).create_placed_srvas the title makes them. Entry 2 is a placed raw UAV.lane(buffer_load_dword ... idxen offset:4) and stores it to dwordlaneof the UAV. Each element is[0xdead0000 | i, 1000 + i].1000 + iin every lane, so the element size (8) came from the view-stride table. A wrong stride would read other dwords, and a null view would read 0. The test also checksunset_rootsandfailedare 0.Checks.
cargo test -p victory-shader -p victory-hle -p victory -p victory-gpu -p victory-metal -p xtask: all passed, 0 failed.-D warnings: clean.cargo xtask policy: ok.@Olima34 on GitHub · 2026-11-28 00:37 UTC · original · requested changes
Thanks for this PR! We're helping the maintainer clear the queue tonight, and main has moved a lot (the preview branch landed as
86cefd22, then a batch of PRs; main is nowa6a58361). This branch now conflicts with main incrates/victory-gpu/src/native/heap_tests.rs.Could you merge current
maininto the branch (a merge commit is fine, no need to rebase) and resolve the conflict? It looks like tests appended at the same spot as tests that landed on main; keep both sides. Once GitHub shows it as mergeable and CI is green on the new head, we'll read it through and merge it if it holds up.@tiagonogueiraa-bit on GitHub · 2026-11-28 10:01 UTC · original
Merged current
main(26817285) into the branch with a merge commit. Inheap_tests.rsI kept both sides. Innative-host.md, I kept main's "Computed compute buffers" bullet (from #426) and this branch's "Indexed table buffers" bullet. On the merged head:cargo test -p victory-shader -p victory-hle -p victory -p victory-gpu -p victory-metal -p xtaskgives 1133 passed and 0 failed, and Windows clippy and policy are clean.github-bot referenced this pull request2026-11-28 11:32:22 +00:00
@buddybot89 on GitHub · 2026-11-28 15:26 UTC · original
At
482ead4, on an M2 Ultra (64 GB, macOS 26.7.1) with Apple's Metal Shader Converter 4.0.3:an_indexed_load_through_a_table_buffer_without_a_stride_reads_its_elementspassed (1 passed, 0 failed).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.