From: Pekka Paalanen <pekka.paalanen@haloniitty.fi>
To: "Garg, Nemesa" <nemesa.garg@intel.com>
Cc: Simon Ser <contact@emersion.fr>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"G M, Adarsh" <adarsh.g.m@intel.com>
Subject: Re: [RFC 0/5] Introduce drm sharpening property
Date: Wed, 13 Mar 2024 11:36:38 +0200 [thread overview]
Message-ID: <20240313113638.3ff61e4f@eldfell> (raw)
In-Reply-To: <20240312162600.7358e146@eldfell>
[-- Attachment #1: Type: text/plain, Size: 4070 bytes --]
On Tue, 12 Mar 2024 16:26:00 +0200
Pekka Paalanen <pekka.paalanen@haloniitty.fi> wrote:
> On Tue, 12 Mar 2024 08:30:34 +0000
> "Garg, Nemesa" <nemesa.garg@intel.com> wrote:
>
> > This KMS property is not implementing any formula
>
> Sure it is. Maybe Intel just does not want to tell what the algorithm
> is, or maybe it's even patented.
>
> > and the values
> > that are being used are based on empirical analysis and certain
> > experiments done on the hardware. These values are fixed and is not
> > expected to change and this can change from vendor to vendor. The
> > client can choose any sharpness value on the scale and on the basis
> > of it the sharpness will be set. The sharpness effect can be changed
> > from content to content and from display to display so user needs to
> > adjust the optimum intensity value so as to get good experience on
> > the screen.
> >
>
> IOW, it's an opaque box operation, and there is no way to reproduce its
> results without the specific Intel hardware. Definitely no way to
> reproduce its results in free open source software alone.
>
> Such opaque box operations can only occur after KMS blending, at the
> CRTC or later stage. They cannot appear before blending, not in the new
> KMS color pipeline design at least. The reason is that the modern way
> to use KMS planes is opportunistic composition off-loading.
> Opportunistic means that userspace decides from time to time whether it
> composes the final picture using KMS or some other rendering method
> (usually GPU and shaders). Since userspace will arbitrarily switch
> between KMS and render composition, both must result in the exact same
> image, or end users will observe unwanted flicker.
>
> Such opaque box operations are fine after blending, because there they
> can be configured once and remain on forever. No switching, no flicker.
If you want to see how sharpness property would apply in Wayland
design, it would be in step 5 "Adjust (settings UI)" of
https://gitlab.freedesktop.org/pq/color-and-hdr/-/blob/main/doc/color-management-model.md#compositor-color-management-model
To relate that diagram to KMS color processing, you can identify step 3
"Compose" as the KMS blending step. Everything before step 3 happens in
KMS plane color processing, and steps 4-5 happen in KMS CRTC color
processing.
Sharpening would essentially be a "compositor color effect", it just
happens to be implementable only by specific Intel hardware.
If a color effect is dynamic or content-dependant, it will preclude
colorimetric monitor calibration.
Thanks,
pq
> Where does "sharpeness" operation occur in the Intel color processing
> chain? Is it before or after blending?
>
> What kind of transfer characteristics does it expect from the image,
> and can those be realized with KMS CRTC properties if KMS is configured
> such that the blending happens using some other characteristics (e.g.
> blending in optical space)?
>
> What about SDR vs. HDR imagery?
>
>
> Thanks,
> pq
>
> > > -----Original Message-----
> > > From: dri-devel <dri-devel-bounces@lists.freedesktop.org> On Behalf Of Simon
> > > Ser
> > > Sent: Monday, March 4, 2024 7:46 PM
> > > To: Garg, Nemesa <nemesa.garg@intel.com>
> > > Cc: Pekka Paalanen <pekka.paalanen@haloniitty.fi>; intel-
> > > gfx@lists.freedesktop.org; dri-devel@lists.freedesktop.org; G M, Adarsh
> > > <adarsh.g.m@intel.com>
> > > Subject: RE: [RFC 0/5] Introduce drm sharpening property
> > >
> > > On Monday, March 4th, 2024 at 15:04, Garg, Nemesa <nemesa.garg@intel.com>
> > > wrote:
> > >
> > > > This is generic as sharpness effect is applied post blending.
> > > > Depending on the color gamut, pixel format and other inputs the image
> > > > gets blended and once we get blended output it can be sharpened based
> > > > on strength value provided by the user.
> > >
> > > It would really help if you could provide the exact mathematical formula applied
> > > by this KMS property.
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-03-13 9:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 11:24 [RFC 0/5] Introduce drm sharpening property Nemesa Garg
2024-02-14 11:24 ` [RFC 1/5] drm: Introduce sharpeness mode property Nemesa Garg
2024-02-14 11:24 ` [RFC 2/5] drm/i915/display/: Compute the scaler filter coefficients Nemesa Garg
2024-02-14 11:24 ` [RFC 3/5] drm/i915/dispaly/: Enable the second scaler Nemesa Garg
2024-02-14 11:24 ` [RFC 4/5] drm/i915/display/: Add registers and compute the strength Nemesa Garg
2024-02-14 11:24 ` [RFC 5/5] drm/i915/display: Load the lut values and enable sharpness Nemesa Garg
2024-02-14 12:22 ` ✗ Fi.CI.CHECKPATCH: warning for Introduce drm sharpening property Patchwork
2024-02-14 12:22 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-02-14 12:42 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-02-15 8:33 ` [RFC 0/5] " Simon Ser
2024-02-16 4:28 ` Garg, Nemesa
2024-02-16 8:36 ` Pekka Paalanen
2024-03-04 14:04 ` Garg, Nemesa
2024-03-04 14:15 ` Simon Ser
2024-03-12 8:30 ` Garg, Nemesa
2024-03-12 14:26 ` Pekka Paalanen
2024-03-13 9:36 ` Pekka Paalanen [this message]
2024-03-27 7:11 ` Garg, Nemesa
2024-03-27 11:29 ` Pekka Paalanen
2024-03-28 10:04 ` Pekka Paalanen
2024-06-19 11:23 ` Garg, Nemesa
2024-02-15 16:37 ` Harry Wentland
2024-02-15 16:48 ` Ville Syrjälä
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=20240313113638.3ff61e4f@eldfell \
--to=pekka.paalanen@haloniitty.fi \
--cc=adarsh.g.m@intel.com \
--cc=contact@emersion.fr \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=nemesa.garg@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