Repository navigation
Description
Summary
Presentation Mode on a second display always uses the 8-bit OpenGL output (DesktopVideoDevice), on every platform. The main window can present in 10-bit, EDR, HDR PQ and HLG (Metal on macOS, #69; Vulkan on Linux and Windows), but the presentation display can't. That's the screen people use in reviews and at client sessions, so it's the one that most needs the full range.
Since ca41fa2, the macOS presentation format applies only to the main window. Presentation Mode, NDI and SDI outputs get the OCIO config's default display.
Upstream
OpenRV now has native 10-bit outputs for Presentation Mode:
- macOS:
MetalDesktopVideoDevicein f3a904a6 (OpenRV #1327) - Linux and Windows:
VulkanDesktopVideoDevicein 32a8cee5 (OpenRV #1427)
Both rely on shared changes: shouldUseNativePresentation(), DesktopVideoModule::rebuildDevices(targetNative), and deleting retired devices only after the graph is refreshed. We took only the generic fixes from both (#166, #180), because UTV's Metal and Vulkan views come from earlier versions of those PRs and have changed a lot since.
What's needed
- A native presentation output on macOS, built on UTV's
MetalViewandQTMetalVideoDevice, using upstream'sMetalDesktopVideoDeviceas a reference. - The same presentation formats as the main window on that output: 10-bit, EDR, HDR PQ and HLG (
MetalPresentationFormat). The format and the warnings come from the presentation display, not the main window's screen. - OCIO display and view selection for the presentation output (feat(ocio): pick the OCIO display and view for the presentation and footage #161, feat(ocio): warn when the OCIO display doesn't match the macOS presentation #162). The output gets the Rec.2100 display when it is in PQ or HLG.
- Vulkan presentation output on Linux and Windows, with 10-bit first and HDR PQ after HDR PQ presentation on Linux and Windows through the Vulkan view #190.
- Fall back to the GL output, with a log line saying why, when the native output can't be created.
- Switch between 8-bit and 10-bit live, without reopening Presentation Mode.
Testing
- macOS: an XDR or HDR external display as the presentation output, and a mix of an SDR main display with an HDR presentation display (and the other way round).
- Linux (X11 and Wayland) and Windows, on NVIDIA, AMD and Intel.
Activity