test: fix victory-metal/tests/resources.rs pool sizes for 16KB pages #77
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ShivamCodesBS on 2026-11-26T13:42:49Z.
Derive 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 documentedImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T14:55:03Z.
Review: CHANGES_REQUESTED
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()).Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:08:41Z.
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!