From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Don't reject primayr plane windowing with color keying enabled on SKL+
Date: Mon, 18 Jan 2016 16:20:29 +0200 [thread overview]
Message-ID: <20160118142029.GL23290@intel.com> (raw)
In-Reply-To: <20160115232208.GC11055@intel.com>
On Fri, Jan 15, 2016 at 03:22:08PM -0800, Matt Roper wrote:
> On Fri, Jan 15, 2016 at 08:46:53PM +0200, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > On SKL+ plane scaling is mutually exclusive with color keying. The code
> > check for this, but during some refactoring the code got changed to
> > also reject primary plane windowing when color keying is used. There is
> > no such restriction in the hardware, so restore the original logic.
> >
> > Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Fixes: 061e4b8d650a ("drm/i915: clean up atomic plane check functions, v2.")
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> s/primayr/primary in your headline, but otherwise
>
> Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
>
> Still waiting for CI to run the BAT on this...
CI didn't scream. so pushed to dinq with the typo fixed.
Thanks for the reviews.
>
>
> Matt
>
> > ---
> > drivers/gpu/drm/i915/intel_display.c | 11 ++++++-----
> > 1 file changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index a726c5e91220..7bc56e217ecc 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -14019,11 +14019,12 @@ intel_check_primary_plane(struct drm_plane *plane,
> > int max_scale = DRM_PLANE_HELPER_NO_SCALING;
> > bool can_position = false;
> >
> > - /* use scaler when colorkey is not required */
> > - if (INTEL_INFO(plane->dev)->gen >= 9 &&
> > - state->ckey.flags == I915_SET_COLORKEY_NONE) {
> > - min_scale = 1;
> > - max_scale = skl_max_scale(to_intel_crtc(crtc), crtc_state);
> > + if (INTEL_INFO(plane->dev)->gen >= 9) {
> > + /* use scaler when colorkey is not required */
> > + if (state->ckey.flags == I915_SET_COLORKEY_NONE) {
> > + min_scale = 1;
> > + max_scale = skl_max_scale(to_intel_crtc(crtc), crtc_state);
> > + }
> > can_position = true;
> > }
> >
> > --
> > 2.4.10
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
>
> --
> Matt Roper
> Graphics Software Engineer
> IoTG Platform Enabling & Development
> Intel Corporation
> (916) 356-2795
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-01-18 14:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 18:46 [PATCH] drm/i915: Don't reject primayr plane windowing with color keying enabled on SKL+ ville.syrjala
2016-01-15 23:22 ` Matt Roper
2016-01-18 14:20 ` Ville Syrjälä [this message]
2016-01-18 14:23 ` Ville Syrjälä
2016-01-16 8:20 ` ✗ Fi.CI.BAT: warning for " Patchwork
2016-01-18 14:02 ` Ville Syrjälä
2016-01-18 10:21 ` [PATCH] " Maarten Lankhorst
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=20160118142029.GL23290@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.d.roper@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.