Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Nautiyal, Ankit K" <ankit.k.nautiyal@intel.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	"Garg, Nemesa" <nemesa.garg@intel.com>
Cc: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"G M, Adarsh" <adarsh.g.m@intel.com>,
	Simona Vetter <simona.vetter@ffwll.ch>
Subject: Re: [PATCH 01/10] drm/drm_crtc: Introduce sharpness strength property
Date: Thu, 9 Oct 2025 16:30:21 +0530	[thread overview]
Message-ID: <aa510447-53d5-4b27-aed1-03ecc6d36d32@intel.com> (raw)
In-Reply-To: <mqvmv3bqikoekjhhwqifzatzouxym4yy4eab6bb2zjhzlv2tfw@l5iumy2ybngl>


On 10/9/2025 1:35 AM, Dmitry Baryshkov wrote:
> On Wed, Oct 08, 2025 at 07:22:00AM +0000, Garg, Nemesa wrote:
>>
>>> -----Original Message-----
>>> From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
>>> Sent: Saturday, October 4, 2025 3:38 PM
>>> To: Garg, Nemesa <nemesa.garg@intel.com>
>>> Cc: intel-gfx@lists.freedesktop.org; intel-xe@lists.freedesktop.org; dri-
>>> devel@lists.freedesktop.org; Nautiyal, Ankit K <ankit.k.nautiyal@intel.com>;
>>> G M, Adarsh <adarsh.g.m@intel.com>; Simona Vetter
>>> <simona.vetter@ffwll.ch>
>>> Subject: Re: [PATCH 01/10] drm/drm_crtc: Introduce sharpness strength
>>> property
>>>
>>> On Wed, Oct 01, 2025 at 12:04:51PM +0530, Nemesa Garg wrote:
>>>> Introduce a new crtc property "SHARPNESS_STRENGTH" that allows the
>>>> user to set the intensity so as to get the sharpness effect.
>>>> The value of this property can be set from 0-255.
>>>> It is useful in scenario when the output is blurry and user want to
>>>> sharpen the pixels. User can increase/decrease the sharpness level
>>>> depending on the content displayed.
>>>>
>>>> v2: Rename crtc property variable [Arun]
>>>>      Add modeset detail in uapi doc[Uma]
>>>> v3: Fix build issue
>>>> v4: Modify the subject line[Ankit]
>>>>
>>>> Signed-off-by: Nemesa Garg <nemesa.garg@intel.com>
>>>> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
>>>> Tested-by: Adarsh G M <Adarsh.g.m@intel.com>
>>>> Acked-by: Simona Vetter <simona.vetter@ffwll.ch>
>>>> ---
>>>>   drivers/gpu/drm/drm_atomic_uapi.c |  4 ++++
>>>>   drivers/gpu/drm/drm_crtc.c        | 35 +++++++++++++++++++++++++++++++
>>>>   include/drm/drm_crtc.h            | 18 ++++++++++++++++
>>>>   3 files changed, 57 insertions(+)
>>>>
>>>> diff --git a/drivers/gpu/drm/drm_atomic_uapi.c
>>>> b/drivers/gpu/drm/drm_atomic_uapi.c
>>>> index 85dbdaa4a2e2..b2cb5ae5a139 100644
>>>> --- a/drivers/gpu/drm/drm_atomic_uapi.c
>>>> +++ b/drivers/gpu/drm/drm_atomic_uapi.c
>>>> @@ -419,6 +419,8 @@ static int drm_atomic_crtc_set_property(struct
>>> drm_crtc *crtc,
>>>>   		set_out_fence_for_crtc(state->state, crtc, fence_ptr);
>>>>   	} else if (property == crtc->scaling_filter_property) {
>>>>   		state->scaling_filter = val;
>>>> +	} else if (property == crtc->sharpness_strength_property) {
>>>> +		state->sharpness_strength = val;
>>>>   	} else if (crtc->funcs->atomic_set_property) {
>>>>   		return crtc->funcs->atomic_set_property(crtc, state, property,
>>> val);
>>>>   	} else {
>>>> @@ -456,6 +458,8 @@ drm_atomic_crtc_get_property(struct drm_crtc
>>> *crtc,
>>>>   		*val = 0;
>>>>   	else if (property == crtc->scaling_filter_property)
>>>>   		*val = state->scaling_filter;
>>>> +	else if (property == crtc->sharpness_strength_property)
>>>> +		*val = state->sharpness_strength;
>>>>   	else if (crtc->funcs->atomic_get_property)
>>>>   		return crtc->funcs->atomic_get_property(crtc, state, property,
>>> val);
>>>>   	else {
>>>> diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
>>>> index 46655339003d..a7797d260f1e 100644
>>>> --- a/drivers/gpu/drm/drm_crtc.c
>>>> +++ b/drivers/gpu/drm/drm_crtc.c
>>>> @@ -229,6 +229,25 @@ struct dma_fence *drm_crtc_create_fence(struct
>>> drm_crtc *crtc)
>>>>    * 		Driver's default scaling filter
>>>>    * 	Nearest Neighbor:
>>>>    * 		Nearest Neighbor scaling filter
>>>> + * SHARPNESS_STRENGTH:
>>>> + *	Atomic property for setting the sharpness strength/intensity by
>>> userspace.
>>>> + *
>>>> + *	The value of this property is set as an integer value ranging
>>>> + *	from 0 - 255 where:
>>>> + *
>>>> + *	0: Sharpness feature is disabled(default value).
>>>> + *
>>>> + *	1: Minimum sharpness.
>>>> + *
>>>> + *	255: Maximum sharpness.
>>>> + *
>>>> + *	User can gradually increase or decrease the sharpness level and can
>>>> + *	set the optimum value depending on content.
>>>> + *	This value will be passed to kernel through the UAPI.
>>>> + *	The setting of this property does not require modeset.
>>>> + *	The sharpness effect takes place post blending on the final composed
>>> output.
>>>> + *	If the feature is disabled, the content remains same without any
>>> sharpening effect
>>>> + *	and when this feature is applied, it enhances the clarity of the
>>> content.
>>>
>>> I can repeat my question from XDC: should we extend this to negative values,
>>> allowing softening (unsharpening) the image?
>>>
>> Hi Dmitry,
>> The un-sharpening or blurring is a very valid usecase in pre-blending where certain layers (data
>>  From clients) can be un-sharpened while some other layers can be enhanced with sharpening.
>> This helps give  focus to the particular content and suppress the background.
>>
>> However, this current property is targeted for post blending so will be
>> applied to the entire frame on screen, here sharpening only is the intended objective.
>>
>> We can pursue a pre-blending solution to target the un-sharpening case as well as a separate interface.
> Indeed, I'm more interested in a per-plane sharpen / unsharpen property.

Makes sense to have a separate interface for the per-plane sharp/unsharp 
property, that can be used for hardware that support per plane / pre 
blending sharpness.

Currently Intel display hardware does not have pre-blending sharpness 
support, but surely would be a good feature to have.

Regards,

Ankit


>
>> Hope this is fine.

  reply	other threads:[~2025-10-09 11:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-01  6:34 [PATCH 00/10] Introduce drm sharpness property Nemesa Garg
2025-10-01  6:34 ` [PATCH 01/10] drm/drm_crtc: Introduce sharpness strength property Nemesa Garg
2025-10-04 10:08   ` Dmitry Baryshkov
2025-10-08  7:22     ` Garg, Nemesa
2025-10-08 20:05       ` Dmitry Baryshkov
2025-10-09 11:00         ` Nautiyal, Ankit K [this message]
2025-10-01  6:34 ` [PATCH 02/10] drm/i915/display: Introduce HAS_CASF for sharpness support Nemesa Garg
2025-10-01  6:34 ` [PATCH 03/10] drm/i915/display: Add CASF strength and winsize Nemesa Garg
2025-10-09 10:51   ` Nautiyal, Ankit K
2025-10-01  6:34 ` [PATCH 04/10] drm/i915/display: Add filter lut values Nemesa Garg
2025-10-09 10:51   ` Nautiyal, Ankit K
2025-10-01  6:34 ` [PATCH 05/10] drm/i915/display: Compute the scaler coefficients Nemesa Garg
2025-10-09 10:52   ` Nautiyal, Ankit K
2025-10-01  6:34 ` [PATCH 06/10] drm/i915/display: Add and compute scaler parameter Nemesa Garg
2025-10-01  6:34 ` [PATCH 07/10] drm/i915/display: Configure the second scaler Nemesa Garg
2025-10-01  6:34 ` [PATCH 08/10] drm/i915/display: Set and get the casf config Nemesa Garg
2025-10-01  6:34 ` [PATCH 09/10] drm/i915/display: Enable/disable casf Nemesa Garg
2025-10-01  6:35 ` [PATCH 10/10] drm/i915/display: Expose sharpness strength property Nemesa Garg
2025-10-01  7:30 ` ✗ CI.checkpatch: warning for Introduce drm sharpness property Patchwork
2025-10-01  7:31 ` ✓ CI.KUnit: success " Patchwork
2025-10-01  7:47 ` ✗ CI.checksparse: warning " Patchwork
2025-10-01  8:07 ` ✓ Xe.CI.BAT: success " Patchwork
2025-10-01  9:21 ` ✗ Xe.CI.Full: failure " Patchwork
2025-10-09 11:02 ` [PATCH 00/10] " Nautiyal, Ankit K
  -- strict thread matches above, loose matches on Subject: below --
2025-10-26 17:26 Nemesa Garg
2025-10-26 17:26 ` [PATCH 01/10] drm/drm_crtc: Introduce sharpness strength property Nemesa Garg
2025-09-26 11:37 [PATCH 00/10] Introduce drm sharpness property Nemesa Garg
2025-09-26 11:37 ` [PATCH 01/10] drm/drm_crtc: Introduce sharpness strength property Nemesa Garg
2025-08-07  9:28 [PATCH 00/10] Introduce drm sharpness property Nemesa Garg
2025-08-07  9:28 ` [PATCH 01/10] drm/drm_crtc: Introduce sharpness strength property Nemesa Garg
2025-08-18  6:06   ` G M, Adarsh

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=aa510447-53d5-4b27-aed1-03ecc6d36d32@intel.com \
    --to=ankit.k.nautiyal@intel.com \
    --cc=adarsh.g.m@intel.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=nemesa.garg@intel.com \
    --cc=simona.vetter@ffwll.ch \
    /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