From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Kevin Strasser <kevin.strasser@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [RFC v2 5/5] tests/kms_plane_scaling: Skip testing unsupported fp16 features
Date: Fri, 5 Apr 2019 22:38:04 +0300 [thread overview]
Message-ID: <20190405193804.GU3888@intel.com> (raw)
In-Reply-To: <1551838717-5283-6-git-send-email-kevin.strasser@intel.com>
On Tue, Mar 05, 2019 at 06:18:37PM -0800, Kevin Strasser wrote:
> Disallow Yf tiling and Y-tiled 90/270 rotation for fp16 on Intel hardware.
>
> rfc2:
> - Move check into can_rotate (Maarten)
> - Use igt_plane_has_format_mod (Maarten)
>
> Signed-off-by: Kevin Strasser <kevin.strasser@intel.com>
> ---
> tests/kms_plane_scaling.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 1015c80..29b28cb 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -167,12 +167,19 @@ static const igt_rotation_t rotations[] = {
> IGT_ROTATION_270,
> };
>
> -static bool can_rotate(data_t *d, unsigned format)
> +static bool can_rotate(data_t *d, unsigned format, uint64_t tiling,
> + igt_rotation_t rot)
> {
> if (format == DRM_FORMAT_C8 ||
> (intel_gen(d->devid) < 11 && format == DRM_FORMAT_RGB565))
> return false;
>
> + // Y-tiled 90/270 rotation isn't supported for fp16 on Intel
> + if (is_i915_device(d->drm_fd) && igt_format_is_fp16(format) &&
> + tiling == LOCAL_I915_FORMAT_MOD_Y_TILED &&
We can drop the Y tile check here. No way to do 90/270 rotation
w/o Y tiling anyway.
With that
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> + (rot == IGT_ROTATION_90 || rot == IGT_ROTATION_270))
> + return false;
> +
> return true;
> }
>
> @@ -193,8 +200,9 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
> igt_rotation_t rot = rotations[i];
> for (int j = 0; j < plane->drm_plane->count_formats; j++) {
> unsigned format = plane->drm_plane->formats[j];
> +
> if (igt_fb_supported_format(format) &&
> - can_rotate(d, format))
> + can_rotate(d, format, tiling, rot))
> check_scaling_pipe_plane_rot(d, plane, format,
> tiling, pipe,
> output, rot);
> @@ -227,6 +235,9 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, enum pipe pipe, igt_ou
> for (int j = 0; j < plane->drm_plane->count_formats; j++) {
> uint32_t format = plane->drm_plane->formats[j];
>
> + if (!igt_plane_has_format_mod(plane, format, tiling))
> + continue;
> +
> if (igt_fb_supported_format(format))
> check_scaling_pipe_plane_rot(d, plane,
> format, tiling,
> --
> 2.7.4
--
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:[~2019-04-05 19:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-06 2:18 [igt-dev] [RFC v2 0/5] Add support for fp16 formats Kevin Strasser
2019-03-06 2:18 ` [igt-dev] [RFC v2 1/5] lib: Add halffloat implementation Kevin Strasser
2019-04-05 19:23 ` Ville Syrjälä
2019-04-05 19:29 ` Strasser, Kevin
2019-03-06 2:18 ` [igt-dev] [RFC v2 2/5] include: Add fp16 format defines Kevin Strasser
2019-03-06 2:18 ` [igt-dev] [RFC v2 3/5] tests/kms_available_modes_crc: Add cases for 64bit formats Kevin Strasser
2019-04-05 19:29 ` Ville Syrjälä
2019-04-05 19:43 ` Strasser, Kevin
2019-04-05 19:58 ` Ville Syrjälä
2019-03-06 2:18 ` [igt-dev] [RFC v2 4/5] lib/igt_fb: Add support for fp16 formats through conversion Kevin Strasser
2019-04-05 19:26 ` Ville Syrjälä
2019-03-06 2:18 ` [igt-dev] [RFC v2 5/5] tests/kms_plane_scaling: Skip testing unsupported fp16 features Kevin Strasser
2019-04-05 19:38 ` Ville Syrjälä [this message]
2019-03-06 3:19 ` [igt-dev] ✓ Fi.CI.BAT: success for Add support for fp16 formats (rev2) Patchwork
2019-03-06 9:31 ` [igt-dev] ✗ 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=20190405193804.GU3888@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kevin.strasser@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