test: increase pool sizes for 16KB pages on Apple Silicon #48
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!48
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-48"
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?
@ShivamCodesBS on GitHub · 2026-11-26 11:20 UTC · original
ShivamCodesBS:fix/test-pool-sizes-16kb-pages→main· +24 −18 · 6 files · 2 commits · closed without mergingTest pools were created with 4-8 pages assuming 4KB pages, but Apple Silicon uses 16KB pages on both arm64 and x86_64 (Rosetta). This caused tests to access memory past the pool boundary at offsets like 16KB, 32KB, etc.
Fix: increase pool pages from 4→8/16 and 2→8 across all native test files:
All tests now pass on x86_64-apple-darwin (Rosetta) with 16KB pages.
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documented@LakshanSivakumar on GitHub · 2026-11-26 11:42 UTC · original · requested changes
Thanks for catching the descriptor-table arena. Could you narrow this to that fix?
page_size().max(16384).victory-metal/tests/resources.rs, please derive the page count from the two 16 KiB buffers and the reported page size, instead of a fixed 8 pages (that's 128 KiB on arm64).A short note on Rosetta's 4 KiB reported page size in
docs/native-host.mdwould help too.@LakshanSivakumar on GitHub · 2026-11-26 12:01 UTC · original · requested changes
Thanks for catching the arena bounds failure. Please keep this PR to
srv_and_uav_through_a_descriptor_table, size its arena from the two 16 KiB buffers and the reported page size (rather than a hard-coded eight pages), and add a sentence to the existing Rosetta alignment note indocs/native-host.md(~237). The GPU test helpers on main already clamp the allocation unit to 16 KiB, so the other pool increases aren't needed.@LakshanSivakumar on GitHub · 2026-11-26 12:10 UTC · original · requested changes
Thanks for deriving the descriptor-table arena size from the reported page size; that part is right. Please keep that fix and revert the other GPU and Metal arena changes still in the diff (
native/tests.rs,texture_tests.rs,title_tests.rs,victory-metal/tests/render.rs, andtexture_over_zero_copy_memoryinresources.rs). Move the docs into the existing Rosetta alignment note indocs/native-host.md(~239) as one sentence explaining that two reported 4 KiB pages cannot hold the two 16 KiB buffers. Note that the 16 KiB clamp lives in the GPU test helpers, notvictory-metal::mem(which returnssysconf(_SC_PAGESIZE)directly).@LakshanSivakumar on GitHub · 2026-11-26 14:55 UTC · original
Superseded by #77 (same fix, current with main). Closing; please carry the remaining asks there.
Pull request closed