From: "Knop, Ryszard" <ryszard.knop@intel.com>
To: "B S, Karthik" <karthik.b.s@intel.com>,
"Sharma, Swati2" <swati2.sharma@intel.com>,
"Nikula, Jani" <jani.nikula@intel.com>,
"gildekel@google.com" <gildekel@google.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"markyacoub@google.com" <markyacoub@google.com>,
"kamil.konieczny@linux.intel.com"
<kamil.konieczny@linux.intel.com>,
"contact@emersion.fr" <contact@emersion.fr>
Subject: Re: [PATCH] lib/igt_hdr: switch to libdisplay-info for EDID parsing
Date: Mon, 23 Nov 2026 15:03:31 +0000 [thread overview]
Message-ID: <6369f30cf5d7dc9346589d34fe3e3c6bcaa41cbd.camel@intel.com> (raw)
In-Reply-To: <no3gurwcnsisfnjvfezh4xub7a6b3jw4wyxjyl4h5wr5rraq6p@gfmxhhez5xm2>
On Mon, 2026-11-23 at 13:51 +0100, Kamil Konieczny wrote:
> Hi Simon,
> On 2026-11-21 at 11:52:49 +0000, Simon Ser wrote:
> > Replace manual EDID/CTA parsing with libdisplay-info [1].
> >
> > libdisplay-info is an EDID and DisplayID library. It's widely used
> > across Wayland compositors. It exposes both a high-level API
> > (with information collected across EDID/DisplayID/CTA blocks) and
> > a low-level API (exposing individual parsed fields from the
> > specifications).
> >
> > Using libdisplay-info will allow IGT to drop all of its custom
> > parsing code. libdisplay-info takes care of the bitshifting and
> > value decoding. libdisplay-info has documentation, a test suite,
> > fuzzing, and a clone of edid-decode which can serve as an example
> > to figure out how to use the low-level API.
> >
> > IGT has already quite a bit of hand-rolled parsing code, and we
> > need to start somewhere, so here is a patch leveraging
> > libdisplay-info for igt_hdr.
> >
> > As a bonus, igt_hdr now extracts HDR static metadata from CTA
> > DisplayID blocks for free, because the high-level libdisplay-info
> > helper does this already.
> >
> > [1]: https://gitlab.freedesktop.org/emersion/libdisplay-info
> >
> > Signed-off-by: Simon Ser <contact@emersion.fr>
> > Cc: Gil Dekel <gildekel@google.com>
> > Cc: Jani Nikula <jani.nikula@intel.com>
> > Cc: Swati Sharma <swati2.sharma@intel.com>
> > Cc: Karthik B S <karthik.b.s@intel.com>
> > Cc: Mark Yacoub <markyacoub@google.com>
> > ---
> > Dockerfile.build-debian-arm64 | 1 +
> > Dockerfile.build-debian-armhf | 1 +
> > Dockerfile.build-debian-minimal | 1 +
> > Dockerfile.build-fedora | 1 +
> > lib/igt_hdr.c | 63 +++++----------------------------
> > lib/meson.build | 1 +
> > meson.build | 1 +
> > 7 files changed, 15 insertions(+), 54 deletions(-)
> >
>
> Please wait with merging as now it will not build in CI
> on Ubuntu 20.04 and 22.04.
Hey Simon. Intel CI still runs on Ubuntu 20/22.04 and RHEL 8 where we
don't have these libs in the repo - could you make this lib optional
for now (old impl and new ifdefed with HAVE_LIBDISPLAY_INFO)?
We will likely drop distros older than 24.04/RHEL 9 in the near future,
but it's a pain to maintain a single external lib for those distros :<
Ryszard
>
> +cc Ryszard Knop <ryszard.knop@intel.com>
>
>
> Regards,
> Kamil
>
>
> > diff --git a/Dockerfile.build-debian-arm64 b/Dockerfile.build-debian-arm64
> > index 114b9760d1f6..7a9cd1915825 100644
> > --- a/Dockerfile.build-debian-arm64
> > +++ b/Dockerfile.build-debian-arm64
> > @@ -26,6 +26,7 @@ RUN apt-get install -y \
> > libpci-dev:arm64 \
> > libpixman-1-dev:arm64 \
> > libudev-dev:arm64 \
> > + libdisplay-info-dev:arm64 \
> > libgsl-dev:arm64 \
> > libasound2-dev:arm64 \
> > libjansson-dev:arm64 \
> > diff --git a/Dockerfile.build-debian-armhf b/Dockerfile.build-debian-armhf
> > index c6527ea1eb2f..375f3e185bba 100644
> > --- a/Dockerfile.build-debian-armhf
> > +++ b/Dockerfile.build-debian-armhf
> > @@ -26,6 +26,7 @@ RUN apt-get install -y \
> > libpci-dev:armhf \
> > libpixman-1-dev:armhf \
> > libudev-dev:armhf \
> > + libdisplay-info-dev:armhf \
> > libgsl-dev:armhf \
> > libasound2-dev:armhf \
> > libjansson-dev:armhf \
> > diff --git a/Dockerfile.build-debian-minimal b/Dockerfile.build-debian-minimal
> > index 573bb5139ceb..1d326250eef9 100644
> > --- a/Dockerfile.build-debian-minimal
> > +++ b/Dockerfile.build-debian-minimal
> > @@ -17,6 +17,7 @@ RUN apt-get install -y \
> > libpci-dev \
> > libpixman-1-dev \
> > libudev-dev \
> > + libdisplay-info-dev \
> > libxrandr-dev \
> > libxv-dev \
> > x11proto-dri2-dev \
> > diff --git a/Dockerfile.build-fedora b/Dockerfile.build-fedora
> > index aacc6a87c844..db7618325a67 100644
> > --- a/Dockerfile.build-fedora
> > +++ b/Dockerfile.build-fedora
> > @@ -14,6 +14,7 @@ RUN dnf install -y \
> > 'pkgconfig(cairo)' \
> > 'pkgconfig(libpci)' \
> > 'pkgconfig(libudev)' \
> > + 'pkgconfig(libdisplay-info)' \
> > 'pkgconfig(glib-2.0)' \
> > 'pkgconfig(gsl)' \
> > 'pkgconfig(alsa)' \
> > diff --git a/lib/igt_hdr.c b/lib/igt_hdr.c
> > index c0ed9e843163..b8175ceef1f7 100644
> > --- a/lib/igt_hdr.c
> > +++ b/lib/igt_hdr.c
> > @@ -11,6 +11,8 @@
> > #include <termios.h>
> > #include <unistd.h>
> >
> > +#include <libdisplay-info/info.h>
> > +
> [cut]
next prev parent reply other threads:[~2026-11-23 15:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 11:52 [PATCH] lib/igt_hdr: switch to libdisplay-info for EDID parsing Simon Ser
2026-11-23 11:23 ` Jani Nikula
2026-11-23 12:51 ` Kamil Konieczny
2026-11-23 15:03 ` Knop, Ryszard [this message]
2026-11-23 15:06 ` Simon Ser
2026-11-23 16:07 ` Knop, Ryszard
2026-11-23 16:36 ` Simon Ser
2026-11-23 17:01 ` Kamil Konieczny
2026-11-23 17:19 ` Simon Ser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6369f30cf5d7dc9346589d34fe3e3c6bcaa41cbd.camel@intel.com \
--to=ryszard.knop@intel.com \
--cc=contact@emersion.fr \
--cc=gildekel@google.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=kamil.konieczny@linux.intel.com \
--cc=karthik.b.s@intel.com \
--cc=markyacoub@google.com \
--cc=swati2.sharma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox