<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Interesting. Thanks. Yeah, agree that it might not make general sense.  Will take a swing at it.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 23, 2022 at 11:47 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le samedi 23 avril 2022 à 10:20 -0700, Bill Hofmann a écrit :<br>
> Nicolas:<br>
> <br>
> Thanks for the details. I understand the enormity of the challenge for a<br>
> general desktop environment when you have to mix SDR and PQ-HDR (having worked<br>
> on HDR support on the Windows desktop and in the Xbox while at Dolby). It's a<br>
> nasty problem.  My goal is to *JUST* display HDR10 full screen via HDMI to an<br>
> HDR-capable TV, never displaying anything else, no tonemapping, etc.  The<br>
> additional (OPTIONAL, so prepared to punt) challenge is to drive multiple<br>
> displays with different HDR10 content. (The alternative being having multiple<br>
> SBCs/NUCs, 1 per screen, and figure out sync one of several ways)<br>
> <br>
> So, it looks like while the "correct" solution is to wait on Wayland<br>
> compositor, the two plausible approaches to a solution short term seem to be:<br>
> <br>
> 1. Punt on 1..n computer..HDR display, just bump up the system cost a bit with<br>
> 1..1 computer..display<br>
> 2. Build something by hand (not using gstreamer) where the part that uses<br>
> KMS/DRM handles all n streams and displays<br>
> <br>
> If that seems correct, then alas I think I know what my choice will be. :(<br>
<br>
You can also add a device-fd property to kmssink, open /dev/dri/cardX in your<br>
app and set that property. if all kmssink are using the same fd the permission<br>
error will go away. Though it is then up to the caller to make sure each kmssink<br>
element don't walk over each other. I'm not certain if such a feature would have<br>
its place upstream, but its one way.<br>
<br>
Nicolas<br>
<br>
> <br>
> -Bill<br>
> <br>
> On Sat, Apr 23, 2022 at 5:49 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>> wrote:<br>
> > Le samedi 23 avril 2022 à 16:24 +0530, Nirbheek Chauhan a écrit :<br>
> > > On Sat, Apr 23, 2022 at 3:30 AM Nicolas Dufresne via gstreamer-devel<br>
> > > <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br>
> > > > Though, to get out of the toy land, kmssink would need perhap to be<br>
> > > > ported to<br>
> > > > use atomic API, which notably allow trying calls without affecting other<br>
> > > > surfaces. That would build up to the need for a shared display manager<br>
> > > > (also<br>
> > > > known as a compositor), specially to coordinate mode setting. Which<br>
> > > > mostly boils<br>
> > > > down to, why not use a proper compositor ?<br>
> > > > <br>
> > > <br>
> > > Presumably the HDR10 requirement precludes the use of a compositor? Or<br>
> > > do we now have a Linux compositor that correctly implements HDR<br>
> > > features?<br>
> > <br>
> > "correctly" is a vast requirement. Wayland protocol for HDR10 (and up) is<br>
> > still<br>
> > under development. Here's some lecture:<br>
> > <br>
> > <a href="https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14</a><br>
> > <a href="https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/124" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/124</a><br>
> > <a href="https://www.collabora.com/news-and-blog/blog/2020/11/19/developing-wayland-color-management-and-high-dynamic-range/" rel="noreferrer" target="_blank">https://www.collabora.com/news-and-blog/blog/2020/11/19/developing-wayland-color-management-and-high-dynamic-range/</a><br>
> > <br>
> > > <br>
> > > Cheers,<br>
> > > Nirbheek<br>
> > <br>
> <br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(51,51,51);font-family:verdana,sans-serif">Bill Hofmann</span><br></div><div><span style="color:rgb(102,102,102);font-family:verdana,sans-serif">+1 510 387-0952</span><br></div></div></div></div></div></div>