diff options
| author | Jolymmiles <75259437+Jolymmiles@users.noreply.github.com> | 2026-11-22 18:46:39 +0400 |
|---|---|---|
| committer | Jolymmiles <75259437+Jolymmiles@users.noreply.github.com> | 2026-11-22 18:59:21 +0400 |
| commit | 17a27f23ccee18a25f428f1eb0277b9182d4ccda (patch) | |
| tree | 167177b112f338d7f73817c1b7c4893f408c1ae2 /runtime/src/pe_loader.cpp | |
| parent | 6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff) | |
d3d12_present_test: check the presented images through the capture, GDI screen read only where it works
Under Wine's macOS driver the test failed at its last step, the GDI read of the screen: GetPixel on the screen DC
returns CLR_INVALID there for every pixel, even one GDI painted itself (BitBlt from the screen DC fails too), and
the window's own DC holds Wine's GDI surface (white), not the image presented through the Metal layer. The
presenter itself was fine: all the injected-failure checks passed, MoltenVK made 320x240 and 400x300 swapchains
at contents scale 1.0, and the driver reported no out-of-date presents. The "present failed" lines in that log
(VkResult -1000001004 twice, then -1 = VK_ERROR_OUT_OF_HOST_MEMORY) are the test's own injections; markers around
them showed each line inside its injection.
The test now enables the presenter's capture and checks the whole presented image for the clear colour at the
swapchain's size after the first 60 frames, after the resize and at the end, on every platform. The screen check
stays where GDI can read the screen; a CLR_INVALID there is reported and skipped instead of failing. The test also
says on stderr that the next three "present failed" lines are expected, since they were read as faults twice.
Checked under CrossOver's Wine 11 with MoltenVK 1.4.3 on an Apple M3 Max: the test passes, and with the clear
colour changed the capture check fails at the first 60 frames.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions