test: fix victory-metal/tests/resources.rs pool sizes for 16KB pages #77
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!77
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-77"
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 13:42 UTC · original
ShivamCodesBS:fix/test-pool-sizes-16kb-pages-v2→main· +23 −5 · 3 files · 2 commits · merged 2026-11-26 17:08 UTCDerive page count from actual buffer sizes instead of fixed pages:
Also add sentence to existing Rosetta alignment note in docs/native-host.md (~239): two reported 4 KiB pages cannot hold the two 16 KiB buffers; test helpers clamp allocation unit to 16 KiB via page_size().max(16384). Note that the 16 KiB clamp lives in the GPU test helpers, not victory-metal::mem.
This addresses reviewer feedback from PR #48:
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 14:55 UTC · original · requested changes
Thanks, this supersedes #48 once trimmed. Please drop the present.rs sampler hunk (out of scope; #91 fixes the black window), revert the unrequested arena change in texture_over_zero_copy_memory, and make the docs sentence agree with the test (the doc says the helpers clamp with
page_size().max(16384), the test uses plainpage_size()).@LakshanSivakumar on GitHub · 2026-11-26 17:08 UTC · original
Merged in
8c47ddd, with a small fix commit on top. I dropped thepresent.rssampler change, since it's out of scope and the black window is #91. I also restored the two-page arena intexture_over_zero_copy_memoryand rewrote the doc sentence to match the test. Thanks!