From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Pekka Paalanen <ppaalanen@gmail.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm: Introduce scaling filter mode property
Date: Wed, 23 Oct 2019 15:41:54 +0300 [thread overview]
Message-ID: <20191023124154.GU1208@intel.com> (raw)
In-Reply-To: <20191023103405.3815a311@eldfell.localdomain>
On Wed, Oct 23, 2019 at 10:34:05AM +0300, Pekka Paalanen wrote:
> On Tue, 22 Oct 2019 20:48:02 +0530
> "Sharma, Shashank" <shashank.sharma@intel.com> wrote:
>
> > Hello Ville,
> >
> > Thanks for the comments, mine inline.
> >
> >
> > On 10/22/2019 5:50 PM, Ville Syrjälä wrote:
> > > On Tue, Oct 22, 2019 at 03:29:44PM +0530, Shashank Sharma wrote:
> > >> This patch adds a scaling filter mode porperty
> > >> to allow:
> > >> - A driver/HW to showcase it's scaling filter capabilities.
> > >> - A userspace to pick a desired effect while scaling.
> > >>
> > >> This option will be particularly useful in the scenarios where
> > >> Integer mode scaling is possible, and a UI client wants to pick
> > >> filters like Nearest-neighbor applied for non-blurry outputs.
> > >>
> > >> There was a RFC patch series published, to discus the request to enable
> > >> Integer mode scaling by some of the gaming communities, which can be
> > >> found here:
> > >> https://patchwork.freedesktop.org/series/66175/
> > >>
> > >> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
> > >> ---
> > >> drivers/gpu/drm/drm_atomic_uapi.c | 4 ++++
> > >> include/drm/drm_crtc.h | 26 ++++++++++++++++++++++++++
> > >> include/drm/drm_mode_config.h | 6 ++++++
> > >> 3 files changed, 36 insertions(+)
>
> ...
>
> > >> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> > >> index 5e9b15a0e8c5..94c5509474a8 100644
> > >> --- a/include/drm/drm_crtc.h
> > >> +++ b/include/drm/drm_crtc.h
> > >> @@ -58,6 +58,25 @@ struct device_node;
> > >> struct dma_fence;
> > >> struct edid;
> > >>
> > >> +enum drm_scaling_filters {
> > >> + DRM_SCALING_FILTER_DEFAULT,
> > >> + DRM_SCALING_FILTER_MEDIUM,
> > >> + DRM_SCALING_FILTER_BILINEAR,
> > >> + DRM_SCALING_FILTER_NN,
> > > Please use real words.
> > Yes, I saw that coming. It was getting difficult with the 80 char stuff,
> > it was even more difficult while using it :). But let me see how better
> > can I do here.
> > >> + DRM_SCALING_FILTER_NN_IS_ONLY,
> > > Not a big fan of this. I'd just add the explicit nearest filter
> > > and leave the decision whether to use it to userspace.
> > Agree, that's also one option. I was thinking to make it convenient for
> > userspace, For example if a compositor just want to checkout NN only
> > when its beneficial (like old gaming scenarios) but doesn't have enough
> > information (or intent), it can leave it to kernel too. But I agree,
> > this can cause corner cases. Let's discuss and see if we need it at all,
> > as you mentioned.
>
> Hi,
>
> how could the kernel have more information or knowledge of intent than
> a display server? I cannot see how, because everything the kernel gets
> comes through the display server.
The only exception is due to that annoying scaling mode property.
Currently userspace just tells the kernel "center vs. fullscreen vs.
aspect" so in theory only the kernel knows the actual output size
(though userspace should be able to calculate it as well).
But maybe we can just avoid that little issue by also exposing the
"TV" margin properties on local panels, at which point userspace
can be more explicit about what it wants.
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Pekka Paalanen <ppaalanen@gmail.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/3] drm: Introduce scaling filter mode property
Date: Wed, 23 Oct 2019 15:41:54 +0300 [thread overview]
Message-ID: <20191023124154.GU1208@intel.com> (raw)
Message-ID: <20191023124154.W1PuGdBNrJ9Pa4v-oLyeLMkFuuZlymdILBp9T47MqXY@z> (raw)
In-Reply-To: <20191023103405.3815a311@eldfell.localdomain>
On Wed, Oct 23, 2019 at 10:34:05AM +0300, Pekka Paalanen wrote:
> On Tue, 22 Oct 2019 20:48:02 +0530
> "Sharma, Shashank" <shashank.sharma@intel.com> wrote:
>
> > Hello Ville,
> >
> > Thanks for the comments, mine inline.
> >
> >
> > On 10/22/2019 5:50 PM, Ville Syrjälä wrote:
> > > On Tue, Oct 22, 2019 at 03:29:44PM +0530, Shashank Sharma wrote:
> > >> This patch adds a scaling filter mode porperty
> > >> to allow:
> > >> - A driver/HW to showcase it's scaling filter capabilities.
> > >> - A userspace to pick a desired effect while scaling.
> > >>
> > >> This option will be particularly useful in the scenarios where
> > >> Integer mode scaling is possible, and a UI client wants to pick
> > >> filters like Nearest-neighbor applied for non-blurry outputs.
> > >>
> > >> There was a RFC patch series published, to discus the request to enable
> > >> Integer mode scaling by some of the gaming communities, which can be
> > >> found here:
> > >> https://patchwork.freedesktop.org/series/66175/
> > >>
> > >> Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
> > >> ---
> > >> drivers/gpu/drm/drm_atomic_uapi.c | 4 ++++
> > >> include/drm/drm_crtc.h | 26 ++++++++++++++++++++++++++
> > >> include/drm/drm_mode_config.h | 6 ++++++
> > >> 3 files changed, 36 insertions(+)
>
> ...
>
> > >> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
> > >> index 5e9b15a0e8c5..94c5509474a8 100644
> > >> --- a/include/drm/drm_crtc.h
> > >> +++ b/include/drm/drm_crtc.h
> > >> @@ -58,6 +58,25 @@ struct device_node;
> > >> struct dma_fence;
> > >> struct edid;
> > >>
> > >> +enum drm_scaling_filters {
> > >> + DRM_SCALING_FILTER_DEFAULT,
> > >> + DRM_SCALING_FILTER_MEDIUM,
> > >> + DRM_SCALING_FILTER_BILINEAR,
> > >> + DRM_SCALING_FILTER_NN,
> > > Please use real words.
> > Yes, I saw that coming. It was getting difficult with the 80 char stuff,
> > it was even more difficult while using it :). But let me see how better
> > can I do here.
> > >> + DRM_SCALING_FILTER_NN_IS_ONLY,
> > > Not a big fan of this. I'd just add the explicit nearest filter
> > > and leave the decision whether to use it to userspace.
> > Agree, that's also one option. I was thinking to make it convenient for
> > userspace, For example if a compositor just want to checkout NN only
> > when its beneficial (like old gaming scenarios) but doesn't have enough
> > information (or intent), it can leave it to kernel too. But I agree,
> > this can cause corner cases. Let's discuss and see if we need it at all,
> > as you mentioned.
>
> Hi,
>
> how could the kernel have more information or knowledge of intent than
> a display server? I cannot see how, because everything the kernel gets
> comes through the display server.
The only exception is due to that annoying scaling mode property.
Currently userspace just tells the kernel "center vs. fullscreen vs.
aspect" so in theory only the kernel knows the actual output size
(though userspace should be able to calculate it as well).
But maybe we can just avoid that little issue by also exposing the
"TV" margin properties on local panels, at which point userspace
can be more explicit about what it wants.
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-10-23 12:41 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-22 9:59 [PATCH 0/3] Add scaling filters in DRM layer Shashank Sharma
2019-10-22 9:59 ` [PATCH 1/3] drm: Introduce scaling filter mode property Shashank Sharma
2019-10-22 10:08 ` [Intel-gfx] " Daniel Vetter
2019-10-22 10:12 ` Sharma, Shashank
2019-10-22 12:25 ` Ville Syrjälä
2019-10-23 12:44 ` Jani Nikula
2019-10-23 12:44 ` [Intel-gfx] " Jani Nikula
2019-10-24 12:06 ` Daniel Vetter
2019-10-24 12:06 ` Daniel Vetter
2019-10-24 12:12 ` Jani Nikula
2019-10-24 12:12 ` Jani Nikula
2019-10-24 12:14 ` Daniel Vetter
2019-10-24 12:14 ` Daniel Vetter
2019-10-24 12:23 ` Jani Nikula
2019-10-24 12:23 ` [Intel-gfx] " Jani Nikula
2019-10-22 12:20 ` Ville Syrjälä
2019-10-22 14:06 ` Harry Wentland
2019-10-22 15:28 ` Sharma, Shashank
2019-10-22 15:42 ` Ville Syrjälä
2019-10-22 15:18 ` Sharma, Shashank
2019-10-23 7:34 ` Pekka Paalanen
2019-10-23 12:41 ` Ville Syrjälä [this message]
2019-10-23 12:41 ` [Intel-gfx] " Ville Syrjälä
2019-10-22 12:26 ` Ville Syrjälä
2019-10-22 15:21 ` Sharma, Shashank
2019-10-22 15:38 ` Ville Syrjälä
2019-10-22 13:26 ` Mihail Atanassov
2019-10-22 13:32 ` Mihail Atanassov
2019-10-22 15:25 ` Sharma, Shashank
2019-10-22 9:59 ` [PATCH 2/3] drm/i915: Add support for scaling filters Shashank Sharma
2019-10-22 9:59 ` [PATCH 3/3] drm/i915: Handle nearest-neighbor scaling filter Shashank Sharma
2019-10-22 13:18 ` ✗ Fi.CI.CHECKPATCH: warning for Add scaling filters in DRM layer Patchwork
2019-10-22 13:21 ` ✗ Fi.CI.SPARSE: " Patchwork
2019-10-22 13:50 ` ✓ Fi.CI.BAT: success " Patchwork
2019-10-22 23:06 ` ✗ Fi.CI.IGT: failure " Patchwork
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=20191023124154.GU1208@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ppaalanen@gmail.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