Commit Graph

3 Commits

Author SHA1 Message Date
0fbf9cd92f d3d12_boot_movie: wait on the fence, skip sRGB and label the round-trip checks
Address the review nits: a real Win32 event makes run_list wait for the fence
instead of relying on the readback Map; the two always-PASS check(true, ...)
calls become labelled checks of upload_and_verify with an early return; an sRGB
swapchain skips the pixel comparison with an explicit line instead of failing on
gamma-encoded bytes; <memory> is included for std::make_unique.

Verified with the real 3840x2160 movie under Wine/Xvfb: 1:1 exact
8,294,400/8,294,400, worst 0; temporary 1600x900 window: 1,440,000/1,440,000
within 2, worst 1.
2026-11-22 21:39:24 -03:00
bdb2a62b42 d3d12_boot_movie: filter the scaled comparison and keep the frame override alive
The scaled branch compared each presented pixel with one source texel at
floor(x*W/ew), but the presenter blits with VK_FILTER_LINEAR when the extents
differ, so a correctly scaled frame failed wherever the blit blends. The
expected pixel is now sampled at destination texel centres with the presenter's
own filter (linear when the source format reports linear filtering, nearest
otherwise), and the centre/corner probes use the same model. The 1:1 run stays
bit-exact.

LEONIDA_MOVIE_FRAME was parsed from a temporary std::string whose buffer died
before *end was read; the string now lives in a local.

Verified with the real 3840x2160 movie under Wine/Xvfb: 1:1 exact, 8,294,400 of
8,294,400 pixels, worst 0; with a temporary 1600x900 window, 1,440,000 of
1,440,000 within 2, worst 1.
2026-11-22 20:08:55 -03:00
d61278421b d3d12_boot_movie: a real boot-splash frame through the present path
Decode two frames of a real startup movie through the package's own
Bink2Scarlett.dll (rt::Loader), upload each BGRA frame to a committed
ALLOW_DISPLAY texture through the Xbox-ABI proxy, present it with PresentX and
compare the captured swapchain image with the decoded frame: both frames are
bit-exact at 1:1 (8,294,400/8,294,400, worst 0), centre and corners included,
and the two presented frames differ (24,833,045/33,177,600 bytes).

The test is Windows-only and skips (77) without LEONIDA_GAME_DIR and
LEONIDA_MOVIE; it prints only the movie's properties and writes nothing, so no
game data can enter the repository. CTest entry d3d12_boot_movie.
2026-11-22 19:22:40 -03:00