From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: Do not use scaling on haswell.
Date: Thu, 24 May 2018 13:58:39 +0300 [thread overview]
Message-ID: <20180524105839.GT23723@intel.com> (raw)
In-Reply-To: <66e4d178-3250-4733-c88c-f710cefad041@linux.intel.com>
On Thu, May 24, 2018 at 12:50:27PM +0200, Maarten Lankhorst wrote:
> Op 24-05-18 om 12:40 schreef Ville Syrjälä:
> > On Thu, May 24, 2018 at 09:03:44AM +0200, Maarten Lankhorst wrote:
> >> Haswell doesn't support scaling the sprite planes,
> > HSW/BDW/VLV/CHV
> Oh right, read it wrong in intel_sprite.c
>
> Just blacklist gen7 != IVB && gen8?
Whatever works I guess.
> >> so we fail with
> >> -ERANGE. Do the same as we do for gen9 pipe C, and do not attempt
> >> to scale the sprite plane. It will fail, and the kernel will no
> >> hide the failure from us.
> >>
> >> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106606
> >> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> >> ---
> >> tests/kms_panel_fitting.c | 5 ++++-
> >> 1 file changed, 4 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> >> index 5dce101003c5..eacc6bc0bc11 100644
> >> --- a/tests/kms_panel_fitting.c
> >> +++ b/tests/kms_panel_fitting.c
> >> @@ -134,11 +134,14 @@ static void test_panel_fitting(data_t *d)
> >> igt_display_commit2(display, COMMIT_UNIVERSAL);
> >>
> >> /*
> >> + * haswell doesn't support scaling at all.
> >> + *
> >> * gen9 pipe C has only 1 scaler shared with the crtc, which
> >> * means pipe scaling can't work simultaneously with panel
> >> * fitting.
> >> */
> >> - if (intel_gen(intel_get_drm_devid(display->drm_fd)) == 9 && pipe == PIPE_C)
> >> + if (IS_HASWELL(intel_get_drm_devid(display->drm_fd)) ||
> >> + (intel_gen(intel_get_drm_devid(display->drm_fd)) == 9 && pipe == PIPE_C))
> >> igt_plane_set_size(d->plane2, d->fb2.width-200, d->fb2.height-200);
> >>
> >> /* enable panel fitting along with sprite scaling */
> >> --
> >> 2.17.0
> >>
> >> _______________________________________________
> >> igt-dev mailing list
> >> igt-dev@lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/igt-dev
>
--
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-05-24 10:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 7:03 [igt-dev] [PATCH i-g-t] tests/kms_panel_fitting: Do not use scaling on haswell Maarten Lankhorst
2018-05-24 7:52 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2018-05-24 9:59 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2018-05-24 10:40 ` [igt-dev] [PATCH i-g-t] " Ville Syrjälä
2018-05-24 10:50 ` Maarten Lankhorst
2018-05-24 10:58 ` Ville Syrjälä [this message]
2018-05-24 11:15 ` [igt-dev] ✓ Fi.CI.IGT: success for " 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=20180524105839.GT23723@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.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.