test(runtime): distinguish wrong V# addresses from a broken draw #215

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

@⁠Andretuta on GitHub · 2026-11-24 02:45 UTC · original
ubiquitarianism:old-pr/9950 → main · +37 −6 · 1 files · 1 commits · draft

Carried over from old PR 9950 by guimsolutions in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9950, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
guimsolutions: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Scope

Claim: https://github.com/ItsNotRexed/Leonida/issues/7496#issuecomment-7107971737 (new test-only item).
Related to the D3D-696 discussion and #7218, but no dependency: this builds and runs on main without either slot 133 implementation.

Run the existing M1.5 translated draw with the original vertex V#s, then change only the V# bases to point at in-bounds degenerate vertices in the same arena allocation. The pipeline, constants, draw calls, target, and readback are unchanged. The second frame must match the clear value in all 4,096 pixels. Restore the original V#s and require the original image bit for bit. The synthetic mapped-guest test keeps its original behavior.

This supplies a safe control for shader address diagnosis: no unmapped GPU pointer is dereferenced. It does not implement XMem mapping, decide how slot 133 is visible to shaders, test the sparse cross-queue path, or diagnose the retail black frames by itself.

Validation

  • Windows 11 / MSVC 19.44 RelWithDebInfo, RTX 4090 / NVIDIA 621.01, LEONIDA_VK_VALIDATION=1.
  • 4 passed, 0 failed, 0 skipped: d3d12_translated_draw, d3d12_translated_draw_guest, d3d12_m2_textured, d3d12_m3_frame. No validation errors reported.
  • Fault injection: deliberately left the redirect on the original in-bounds V# bases. The new pixel assertion failed; restoring the redirect made it pass.
  • git diff --check and scripts/check_no_game_data.py passed. Synthetic only, no game files.

AI-assisted (OpenAI Codex).

Previous contribution: #7565

**@⁠Andretuta** on GitHub · 2026-11-24 02:45 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/215) `ubiquitarianism:old-pr/9950` → `main` · +37 −6 · 1 files · 1 commits · draft > Carried over from **old PR 9950** by `guimsolutions` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9950`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `guimsolutions`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): ## Scope Claim: https://github.com/ItsNotRexed/Leonida/issues/7496#issuecomment-7107971737 (new test-only item). Related to the D3D-696 discussion and `#7218`, but no dependency: this builds and runs on main without either slot 133 implementation. Run the existing M1.5 translated draw with the original vertex V#s, then change only the V# bases to point at in-bounds degenerate vertices in the same arena allocation. The pipeline, constants, draw calls, target, and readback are unchanged. The second frame must match the clear value in all 4,096 pixels. Restore the original V#s and require the original image bit for bit. The synthetic mapped-guest test keeps its original behavior. This supplies a safe control for shader address diagnosis: no unmapped GPU pointer is dereferenced. It does not implement XMem mapping, decide how slot 133 is visible to shaders, test the sparse cross-queue path, or diagnose the retail black frames by itself. ## Validation - Windows 11 / MSVC 19.44 RelWithDebInfo, RTX 4090 / NVIDIA 621.01, `LEONIDA_VK_VALIDATION=1`. - 4 passed, 0 failed, 0 skipped: `d3d12_translated_draw`, `d3d12_translated_draw_guest`, `d3d12_m2_textured`, `d3d12_m3_frame`. No validation errors reported. - Fault injection: deliberately left the redirect on the original in-bounds V# bases. The new pixel assertion failed; restoring the redirect made it pass. - `git diff --check` and `scripts/check_no_game_data.py` passed. Synthetic only, no game files. AI-assisted (OpenAI Codex). Previous contribution: `#7565`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:49:06 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/test/d3d12_translated_draw_test.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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