mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #215] test(runtime): distinguish wrong V# addresses from a broken draw #266
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#266
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/215
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9950📝 Commits (1)
30b664dtest(runtime): distinguish wrong V# addresses from a broken draw📊 Changes
1 file changed (+37 additions, -6 deletions)
View changed files
📝
runtime/test/d3d12_translated_draw_test.cpp(+37 -6)📄 Description
Original description (mentions and
#Nreferences 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
LEONIDA_VK_VALIDATION=1.d3d12_translated_draw,d3d12_translated_draw_guest,d3d12_m2_textured,d3d12_m3_frame. No validation errors reported.git diff --checkandscripts/check_no_game_data.pypassed. Synthetic only, no game files.AI-assisted (OpenAI Codex).
Previous contribution:
#7565🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.