upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 19:45:00 +0100
committerAlxcBTW <187763517+AlxcBTW@users.noreply.github.com>2026-11-22 19:45:00 +0100
commitd3b774eed51b76dea1f0ca3888d6b02a997dcd0a (patch)
tree00006ce4f15e9b4ba5954aa95dbaeaef2e39083c /runtime/src/pe_loader.cpp
parent09637840630da1db6e126e1a4cffa15c159c8d45 (diff)
PresentX planes: tone map shoulder, SDR white query off the present path, review fixes
- Tone map: identity up to 0.8 of SDR white, extended Reinhard shoulder above it, continuous in value and slope, content peak maps to 1.0 (SDR-range content is no longer darkened). - The Windows SDR white level is read by a background thread (about once a second, only while HDR10 is in use); PresentX reads an atomic. A failed query keeps the last good value; QueryDisplayConfig retries on ERROR_INSUFFICIENT_BUFFER. - LEONIDA_SDR_EOTF is case-insensitive, unknown or too long values are logged; setters are atomics; <cwchar> for wcscmp. - Tests: eight-step HDR10 ramp with hand-calculated bytes, curve properties (monotonic, identity below the knee, peak 1, slope continuity), HDR10 plane 1 over SDR plane 0 on HDR10 and SDR outputs, hand-calculated 50% overlay bytes, query cost. - Docs 4.5: shoulder description, query cost, sources marked (KWin claim unverified, vkd3d-proton file partly read, the measured 80 nits only covers the SDR fallback path). - present_compose.inc rebuilt with glslc 2026.4 (reproducible, spirv-val clean). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions