Repository navigation
fix(display): an accepted HDR master proves the panel for every engine in the process - #855
Conversation
…e in the process A display whose EDR headroom never moves (Apple TV 4K 1st gen, tvOS 26.6: 1.00 through every HDR and Dolby Vision session) proves HDR only when AVFoundation accepts an HDR master. That proof now latches panelProvenToEngageHDR like a headroom reading, and the latch is process-wide, so a host that builds an engine per item and a software-host session (the Dolby Vision FEL route, which has no master to accept) keep the HDR / Dolby Vision label the panel shows. It is read only while AVPlayer.eligibleForHDRPlayback holds, and is forgotten when the app leaves for the background (a process-wide observer, independent of any engine) and on a refused HDR master (AE#588), since either can mean the output configuration changed. Co-authored-by: Claude <[email protected]>
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
|
Merged, thank you! Making the proof process-wide and letting an accepted HDR master latch it is the right fix for panels whose headroom never moves, and the tests plus the device trace made it easy to follow. Two follow-ups landed on top in main:
One behaviour change worth knowing: hosts that keep a single engine for the whole process (Sodalite, AetherPlayer) used to keep a headroom-latched proof across a trip to the home screen. It is now forgotten there too. A panel whose headroom works latches it again at the next HDR transition. On a panel parked in HDR, a software-host or FEL title played right after returning reads SDR until an AVPlayer HDR title proves the panel again. That seems an acceptable trade against a stale HDR label after a Settings change, so it stays as is for now. A device run of the process-wide background observer would still be welcome. It ships with the next engine release. |
Summary
On a display whose EDR headroom never moves, the HDR / Dolby Vision label depends on AVFoundation accepting an HDR master, and that answer was neither remembered nor shared. A host that builds an engine per item lost it at every load, and the Dolby Vision FEL route (software host, no master to accept) labelled every session SDR while the TV showed Dolby Vision.
Refs #459, #588, #589, #667.
What changed
panelProvenToEngageHDR, the same proof a headroom reading latches.AVPlayer.eligibleForHDRPlaybackholds.PanelHDRProofLifetimeTests; CHANGELOG (Unreleased › Fixed).Test plan
swift test --filter "PanelHDRProofLifetime|DisplayCriteria|Issue459|Issue588|MasterFallback|PanelReadout": 126 tests pass.xcodebuild -scheme AetherEngine -destination 'generic/platform=tvOS'builds.panel proven to engage HDR (AVFoundation accepted the HDR master)), the next title, a Profile 7 FEL on the software host, loaded withprovenHDR=yesand kept its Dolby Vision label.playback probe: no HDR reading … keeps its SDR label.Notes for review
eligibleForHDRPlaybackstays true. The same window already existed for the per-engine latch.Checklist
Co-authored with Claude (Anthropic); the commit carries a
Co-authored-by: Claudetrailer.