From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Pranay Samala <pranay.samala@intel.com>
Cc: igt-dev@lists.freedesktop.org, karthik.b.s@intel.com,
sameer.lattannavar@intel.com
Subject: Re: [PATCH i-g-t] tests/intel/kms_big_fb: Skip 90/270 rotation on Display Ver >= 13
Date: Fri, 27 Feb 2026 09:09:22 +0200 [thread overview]
Message-ID: <aaFDIopUYrpOWgXl@intel.com> (raw)
In-Reply-To: <20260227063333.2044616-1-pranay.samala@intel.com>
On Fri, Feb 27, 2026 at 12:03:33PM +0530, Pranay Samala wrote:
> >From Display Ver 13, 90/270 hardware rotation no longer
> supported. Skip these tests on affected platforms. Also move
> plane capability checks to the outer loop to continue testing
> other planes.
That's two different things -> should be two patches
>
> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
> ---
> tests/intel/kms_big_fb.c | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/tests/intel/kms_big_fb.c b/tests/intel/kms_big_fb.c
> index 66d7c5428..171b38602 100644
> --- a/tests/intel/kms_big_fb.c
> +++ b/tests/intel/kms_big_fb.c
> @@ -172,6 +172,7 @@ typedef struct {
> int hw_stride;
> int max_hw_fb_width;
> double planeclearrgb[3];
> + int disp_ver;
> } data_t;
>
> static struct intel_buf *init_buf(data_t *data,
> @@ -422,12 +423,6 @@ static bool test_plane(data_t *data)
> { w, h, },
> };
>
> - if (!igt_plane_has_format_mod(plane, data->format, data->modifier))
> - return false;
> -
> - if (!igt_plane_has_rotation(plane, data->rotation))
> - return false;
> -
> if (igt_plane_has_prop(plane, IGT_PLANE_ROTATION))
> igt_plane_set_rotation(plane, data->rotation);
> igt_plane_set_position(plane, 0, 0);
> @@ -570,6 +565,10 @@ static bool test_pipe(data_t *data)
> IGT_PIPE_CRC_SOURCE_AUTO);
>
> for_each_plane_on_pipe(&data->display, data->crtc->pipe, data->plane) {
> + if (!igt_plane_has_rotation(data->plane, data->rotation))
> + continue;
> + if (!igt_plane_has_format_mod(data->plane, data->format, data->modifier))
> + continue;
> ret = test_plane(data);
> if (ret || run_in_simulation)
That whole run_in_simulation nonsense seems to be the reason why
you need to change something here. Just remove the nonsense and
this should work fine.
> break;
> @@ -688,6 +687,9 @@ static void test_scanout(data_t *data)
> igt_crtc_t *crtc;
> igt_output_t *output;
>
> + if (igt_rotation_90_or_270(data->rotation))
> + igt_require_f(data->disp_ver < 13, "90/270 rotation not supported by platform\n");
Please don't add yet more platform checks when the test already has
the hardware agnostic logic to skip everything when the thing isn't
supported.
> +
> igt_require(data->format == DRM_FORMAT_C8 ||
> igt_fb_supported_format(data->format));
>
> @@ -983,6 +985,7 @@ int igt_main()
> igt_require(is_intel_device(data.drm_fd));
>
> data.devid = intel_get_drm_devid(data.drm_fd);
> + data.disp_ver = intel_display_ver(data.devid);
>
> kmstest_set_vt_graphics_mode();
>
> --
> 2.34.1
--
Ville Syrjälä
Intel
next prev parent reply other threads:[~2026-02-27 7:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-27 6:33 [PATCH i-g-t] tests/intel/kms_big_fb: Skip 90/270 rotation on Display Ver >= 13 Pranay Samala
2026-02-27 7:09 ` Ville Syrjälä [this message]
2026-02-27 13:18 ` ✗ Fi.CI.BUILD: failure 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=aaFDIopUYrpOWgXl@intel.com \
--to=ville.syrjala@linux.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 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.