Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Sharma, Swati2" <swati2.sharma@intel.com>
To: Pranay Samala <pranay.samala@intel.com>, <igt-dev@lists.freedesktop.org>
Cc: <karthik.b.s@intel.com>, <sameer.lattannavar@intel.com>
Subject: Re: [PATCH i-g-t 1/2] tests/intel/kms_big_fb: Intel display version 20 onwards doesn't do hflip with tile4
Date: Fri, 22 Nov 2024 00:49:34 +0530	[thread overview]
Message-ID: <531da1ed-5f7c-4275-8bc9-661fee94c9f8@intel.com> (raw)
In-Reply-To: <20241118081828.1895925-2-pranay.samala@intel.com>

LGTM

Reviewed-by: Swati Sharma <swati2.sharma@intel.com>

On 18-11-2024 01:48 pm, Pranay Samala wrote:
> Intel display version 20 onwards, Tile4 no longer can be used with
> horizontal flip.
>
> Bspec: 69853
>
> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
> ---
>   tests/intel/kms_big_fb.c | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
>
> diff --git a/tests/intel/kms_big_fb.c b/tests/intel/kms_big_fb.c
> index 7da3d12d4..ab44a9a42 100644
> --- a/tests/intel/kms_big_fb.c
> +++ b/tests/intel/kms_big_fb.c
> @@ -965,6 +965,19 @@ static const struct {
>   	{ 0, "" },
>   	{ IGT_REFLECT_X, "-hflip" },
>   };
> +
> +static bool test_requirements(data_t *data, int l)
> +{
> +	/* Intel display version 20 onwards cannot do reflect-x with tile4 */
> +	if (!(!is_intel_device(data->drm_fd) ||
> +	      intel_display_ver(intel_get_drm_devid(data->drm_fd)) < 20 ||
> +	      !(fliptab[l].flip == IGT_REFLECT_X &&
> +	      data->modifier == I915_FORMAT_MOD_4_TILED)))
> +		return false;
> +
> +	return true;
> +}
> +
>   igt_main
>   {
>   	igt_fixture {
> @@ -1123,6 +1136,8 @@ igt_main
>   					igt_describe("test async flip on maximum hardware supported stride length for given bpp and modifiers.");
>   					igt_subtest_f("%s-max-hw-stride-%dbpp-rotate-%d%s-async-flip", modifiers[i].name,
>   						formats[j].bpp, rotations[k].angle, fliptab[l].flipname) {
> +							igt_require_f(test_requirements(&data, l),
> +								      "Can't use reflect-x with Tile4 on intel display version 20+\n");
>   							igt_require(igt_has_drm_cap(data.drm_fd, DRM_CAP_ASYNC_PAGE_FLIP));
>   							data.max_hw_fb_width = min(data.hw_stride / (formats[j].bpp >> 3), data.max_fb_width);
>   							test_scanout(&data);

  reply	other threads:[~2024-11-21 19:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18  8:18 [PATCH i-g-t 0/2] tests/intel/kms_big_fb: Intel display version 20 onwards doesn't do hflip with tile4 Pranay Samala
2024-11-18  8:18 ` [PATCH i-g-t 1/2] " Pranay Samala
2024-11-21 19:19   ` Sharma, Swati2 [this message]
2024-11-22  5:12     ` B, Jeevan
2024-11-18  8:18 ` [PATCH i-g-t 2/2] HAX: Do not merge Pranay Samala
2024-11-18 20:16 ` ✗ CI.xeBAT: failure for tests/intel/kms_big_fb: Intel display version 20 onwards doesn't do hflip with tile4 Patchwork
2024-11-18 20:25 ` ✗ Fi.CI.BAT: " Patchwork
2024-11-19  3:52 ` ✗ CI.xeFULL: " 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=531da1ed-5f7c-4275-8bc9-661fee94c9f8@intel.com \
    --to=swati2.sharma@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=karthik.b.s@intel.com \
    --cc=pranay.samala@intel.com \
    --cc=sameer.lattannavar@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