Compare mapped DLL draw with a Windows load #153

Merged
sof9816 merged 1 commit from upstream-pr/154 into main 2026-11-21 17:46:35 +00:00
sof9816 commented 2026-11-21 17:37:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by sof9816 on 2026-11-21T17:37:17Z.


Change

Compare one source-built DLL draw after a normal Windows load and after mapping the same image with pe_map. Both paths call the same exported function and translated two-texture shader. The fixture verifies TLS and DLL entry order, checks the render against the CPU reference, and compares the two captures byte for byte. A withheld graphics import must fail before startup.

Refs #132.

Verification

Tested a4866f6 on Windows 11 build 26200 with MSVC 19.44 and Python 3.13.3.

  • cmake --build --preset dev --parallel 5 completed.
  • ctest --preset dev --no-tests=error -R '^cpu_native_frame_(hardware|warp)$' -V passed both tests. RTX 3060 Ti driver 621.14 and WARP each matched all 4,096 pixels on both load paths. D3D12 reported zero debug warnings or errors. Both tests verified the withheld-import case.
  • ctest --preset dev --no-tests=error reported 82 passes, zero failures and two native wave64 capability skips.

Evidence and follow-up

The fixture extends the existing MIT-licensed TLS assembly and reuses the source-built pixel fixture. The host callback runs the existing offscreen renderer in a child process. The reproduction command is documented in Mapped DLL draw with a Windows reference. EXE startup is tracked separately in #132.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532195819 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/154). Originally posted by [sof9816](https://github.com/sof9816) on 2026-11-21T17:37:17Z. --- ## Change Compare one source-built DLL draw after a normal Windows load and after mapping the same image with `pe_map`. Both paths call the same exported function and translated two-texture shader. The fixture verifies TLS and DLL entry order, checks the render against the CPU reference, and compares the two captures byte for byte. A withheld graphics import must fail before startup. Refs #132. ## Verification Tested `a4866f6` on Windows 11 build 26200 with MSVC 19.44 and Python 3.13.3. - `cmake --build --preset dev --parallel 5` completed. - `ctest --preset dev --no-tests=error -R '^cpu_native_frame_(hardware|warp)$' -V` passed both tests. RTX 3060 Ti driver 621.14 and WARP each matched all 4,096 pixels on both load paths. D3D12 reported zero debug warnings or errors. Both tests verified the withheld-import case. - `ctest --preset dev --no-tests=error` reported 82 passes, zero failures and two native wave64 capability skips. ## Evidence and follow-up The fixture extends the existing MIT-licensed TLS assembly and reuses the source-built pixel fixture. The host callback runs the existing offscreen renderer in a child process. The reproduction command is documented in [Mapped DLL draw with a Windows reference](./docs/experiments.md#mapped-dll-draw-with-a-windows-reference). EXE startup is tracked separately in #132. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted.
upstream-sync closed this pull request 2026-11-24 06:41:35 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
R0Y00/Xbox2Windows!153
No description provided.