diff options
| author | Emma <47298336+zzEmmazz@users.noreply.github.com> | 2026-11-22 22:46:40 +0200 |
|---|---|---|
| committer | Emma <47298336+zzEmmazz@users.noreply.github.com> | 2026-11-22 22:46:40 +0200 |
| commit | f38b10ea5b05d2a41b55663d3b8f9f0f86fead48 (patch) | |
| tree | d79419f37fbb7cd3d9d7ac35c89023b33d3b1b7b /runtime/src/pe_loader.cpp | |
| parent | f847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff) | |
Tests: d3d12_present_test reads the screen only where its own window is on top
The on-screen colour check ran whenever the test's window was the foreground window, but the foreground window
can still be covered at its centre (an always-on-top window, or one another process showed without taking the
foreground). GetPixel on the screen DC then returned that window's pixel and the test failed, although the
presented images had already been checked: 3 of 20 runs on the Radeon iGPU and 5 of 30 on the RTX 3070 with
another application in use.
A read now counts only when WindowFromPoint at the centre, taken to its root window, is the test's window before
and after the read; otherwise the check is skipped with a line saying the centre is covered, like the existing
"not in front", HDR and CLR_INVALID skips. A pixel that is not the clear colour is read again every 50 ms for up
to a second before the EXPECT, since how long the compositor takes to show the last frame is not known; nothing is
presented meanwhile, so a wrong colour that stays still fails. A click-through layered overlay is not seen by
WindowFromPoint and still fails the check; the comment says so.
docs/d3d12_vulkan.md: the sentence on the check names the new condition.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions