diff options
| author | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-27 15:14:45 -0600 |
|---|---|---|
| committer | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-27 15:14:45 -0600 |
| commit | 0db8ddb8c97ed06f250999c0afbeb0ca2251daf7 (patch) | |
| tree | 5ab49b453ed7607688ed8349dd68a7b32f748285 /tests/test_run_gpu_tests_python_assembler.py | |
| parent | 39f52f39c435e04273bc822f258f2c4bb1b7fec0 (diff) | |
xbox_present: the first HDR10 present wakes the SDR white reader at once
display_white_worker() waited out its second with the predicate
"worker_stop_" only, so the notify effective_sdr_white_nits() sends on
the first HDR10 present ended no wait, and the first Windows SDR white
level was read up to a second late (found by djrolfes, #1608). A request
sent before the worker reached its wait was lost the same way.
The worker moves to leonida::DisplayWhiteCache (src/display_white_cache.h)
with a read_now_ flag, set under the lock with the notify and checked
by the wait, so the first get() is read at once. XboxPresentation holds
one, made last in its constructor and dropped first in its destructor,
as the thread was before. display_white_cache_test checks the first
read with a one-hour period, the periodic reads, a failed read keeping
the last value, and a prompt shutdown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions