tests: cover two UHD render target leases in the XMem pool #1394

Open
github-bot wants to merge 1 commit from github-bot/gh-1394 into main AGit
Owner

@⁠Okachamie on GitHub · 2026-11-24 23:15 UTC · original
Okachamie:test-xmem-pool-fill → main · +31 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: TEST-XMEM-POOL-FILL

What and why

Extend xs_proxy_mock_test to keep two synthetic 3840×2160 RGBA8 render targets alive at once through device slot 127. Check that each allocation hook sees a 31.875 MiB lease, leaving 256 KiB in a 64 MiB pool. Check that releasing each resource frees its matching lease with the expected attributes.

Tested

The saved Windows mock executable passed all six modes under Wine 11.22 on CachyOS Linux: default, --fail-virtualalloc, --fail-virtualprotect, --fail-veh, --env-slots, and --env-slots-invalid. Both target source files are byte-identical to the previously tested patched worktree. No game files used.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of docs/design.md (n/a).
**@⁠Okachamie** on GitHub · 2026-11-24 23:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1394) `Okachamie:test-xmem-pool-fill` → `main` · +31 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: [TEST-XMEM-POOL-FILL](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why Extend `xs_proxy_mock_test` to keep two synthetic 3840×2160 RGBA8 render targets alive at once through device slot 127. Check that each allocation hook sees a 31.875 MiB lease, leaving 256 KiB in a 64 MiB pool. Check that releasing each resource frees its matching lease with the expected attributes. ### Tested The saved Windows mock executable passed all six modes under Wine 11.22 on CachyOS Linux: default, `--fail-virtualalloc`, `--fail-virtualprotect`, `--fail-veh`, `--env-slots`, and `--env-slots-invalid`. Both target source files are byte-identical to the previously tested patched worktree. No game files used. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md` (n/a).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:49:50 +00:00
Author
Owner

@⁠Okachamie on GitHub · 2026-11-25 02:27 UTC · original

I rebuilt xs_proxy_mock_test from the exact PR head d1a89d22b using clang-cl 23.1.5 and the Windows SDK. All six modes passed on CachyOS with Wine 11.22. In a scratch control, changing only the expected tile-row count from 17 to 18 caused the new slot 127 lease-size assertion to fail, confirming the two-lease case ran in this build. Synthetic COM objects only. AI-assisted.

**@⁠Okachamie** on GitHub · 2026-11-25 02:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1394#issuecomment-7150755981) I rebuilt `xs_proxy_mock_test` from the exact PR head `d1a89d22b` using clang-cl 23.1.5 and the Windows SDK. All six modes passed on CachyOS with Wine 11.22. In a scratch control, changing only the expected tile-row count from 17 to 18 caused the new slot 127 lease-size assertion to fail, confirming the two-lease case ran in this build. Synthetic COM objects only. AI-assisted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1394/head:github-bot/gh-1394'
git switch 'github-bot/gh-1394'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1394'
git switch 'github-bot/gh-1394'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1394'
git switch 'github-bot/gh-1394'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1394'
git switch 'main'
git merge --squash 'github-bot/gh-1394'
git switch 'main'
git merge --ff-only 'github-bot/gh-1394'
git switch 'main'
git merge 'github-bot/gh-1394'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.