From: "Ser, Simon" <simon.ser@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Skip fp16 formats on pre-icl
Date: Wed, 12 Jun 2019 16:02:24 +0000 [thread overview]
Message-ID: <f337bd474afcc1222397abf8e174e78c028746d1.camel@intel.com> (raw)
In-Reply-To: <20190605171148.13024-1-ville.syrjala@linux.intel.com>
On Wed, 2019-06-05 at 20:11 +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Pre-icl can't scale fp16 formats so let's skip those. Since we
> already have the can_rotate() function let's add a similar one
> for scaling.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Also LGTM.
Reviewed-by: Simon Ser <simon.ser@intel.com>
> ---
> tests/kms_plane_scaling.c | 32 ++++++++++++++++++++++++++++----
> 1 file changed, 28 insertions(+), 4 deletions(-)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 3d24713045c0..0bd3690450b4 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -201,6 +201,26 @@ static bool can_rotate(data_t *d, unsigned format, uint64_t tiling,
> return true;
> }
>
> +static bool can_scale(data_t *d, unsigned format)
> +{
> + if (!is_i915_device(d->drm_fd))
> + return true;
> +
> + switch (format) {
> + case DRM_FORMAT_XRGB16161616F:
> + case DRM_FORMAT_XBGR16161616F:
> + case DRM_FORMAT_ARGB16161616F:
> + case DRM_FORMAT_ABGR16161616F:
> + if (intel_gen(d->devid) >= 11)
> + return true;
> + /* fall through */
> + case DRM_FORMAT_C8:
> + return false;
> + default:
> + return true;
> + }
> +}
> +
> static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
> igt_output_t *output)
> {
> @@ -221,7 +241,8 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
>
> if (igt_fb_supported_format(format) &&
> igt_plane_has_format_mod(plane, format, tiling) &&
> - can_rotate(d, format, tiling, rot))
> + can_rotate(d, format, tiling, rot) &&
> + can_scale(d, format))
> check_scaling_pipe_plane_rot(d, plane, format,
> tiling, pipe,
> output, rot);
> @@ -255,7 +276,8 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, enum pipe pipe, igt_ou
> uint32_t format = plane->drm_plane->formats[j];
>
> if (igt_fb_supported_format(format) &&
> - igt_plane_has_format_mod(plane, format, tiling))
> + igt_plane_has_format_mod(plane, format, tiling) &&
> + can_scale(d, format))
> check_scaling_pipe_plane_rot(d, plane,
> format, tiling,
> pipe, output, IGT_ROTATION_0);
> @@ -490,13 +512,15 @@ test_scaler_with_clipping_clamping_scenario(data_t *d, enum pipe pipe, igt_outpu
>
> for (int i = 0; i < d->plane1->drm_plane->count_formats; i++) {
> unsigned f1 = d->plane1->drm_plane->formats[i];
> - if (!igt_fb_supported_format(f1))
> + if (!igt_fb_supported_format(f1) ||
> + !can_scale(d, f1))
> continue;
>
> for (int j = 0; j < d->plane2->drm_plane->count_formats; j++) {
> unsigned f2 = d->plane2->drm_plane->formats[j];
>
> - if (!igt_fb_supported_format(f2))
> + if (!igt_fb_supported_format(f2) ||
> + !can_scale(d, f2))
> continue;
>
> __test_scaler_with_clipping_clamping_scenario(d, mode, f1, f2);
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
prev parent reply other threads:[~2019-06-12 16:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-05 17:11 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Skip fp16 formats on pre-icl Ville Syrjala
2019-06-05 18:06 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-06-07 10:48 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2019-06-12 15:20 ` Ville Syrjälä
2019-06-12 15:22 ` Chris Wilson
2019-06-12 16:02 ` Ser, Simon [this message]
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=f337bd474afcc1222397abf8e174e78c028746d1.camel@intel.com \
--to=simon.ser@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ville.syrjala@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox