[PR #1394] tests: cover two UHD render target leases in the XMem pool #1424

Open
opened 2026-11-26 20:21:12 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1394
Author: @Okachamie
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: test-xmem-pool-fill


📝 Commits (1)

  • d1a89d2 tests: cover two UHD render target leases in the XMem pool

📊 Changes

1 file changed (+31 additions, -0 deletions)

View changed files

📝 runtime/test/xs_proxy_mock_test.cpp (+31 -0)

📄 Description

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).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1394 **Author:** [@Okachamie](https://github.com/Okachamie) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test-xmem-pool-fill` --- ### 📝 Commits (1) - [`d1a89d2`](https://github.com/ubiquitarianism/leonida/commit/d1a89d22b2db2dff93f3f0935cd9edbfda8e2962) tests: cover two UHD render target leases in the XMem pool ### 📊 Changes **1 file changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/xs_proxy_mock_test.cpp` (+31 -0) </details> ### 📄 Description Claimed in the coordination issue as: [TEST-XMEM-POOL-FILL](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7146595011) ### 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1424
No description provided.