From: Louis Chauvet <louis.chauvet@bootlin.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
igt-dev@lists.freedesktop.org
Cc: Renjun Wang <renjunw0@foxmail.com>,
Swati Sharma <swati2.sharma@intel.com>
Subject: Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
Date: Tue, 24 Mar 2026 10:44:03 +0100 [thread overview]
Message-ID: <3d23bd04-5f8b-4183-b173-d73196c48e9b@bootlin.com> (raw)
In-Reply-To: <20260320101606.22163-1-kamil.konieczny@linux.intel.com>
On 3/20/26 11:16, Kamil Konieczny wrote:
> From: Renjun Wang <renjunw0@foxmail.com>
>
> Enable planar-pixel-format-settings subtests when running on VKMS
> driver. VKMS currently accepts odd width|height for NV12, odd
> horizontal panning for NV12, and odd vertical panning for P016
> format.
>
> v2: remove is_intel var (Kamil), keep all comments (Swati)
>
> Cc: Swati Sharma <swati2.sharma@intel.com>
> Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
> Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Does it make sense to rename display_ver to intel_display_ver?
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
> ---
> tests/kms_plane.c | 35 +++++++++++++++++++++++------------
> 1 file changed, 23 insertions(+), 12 deletions(-)
>
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index d5bab62bb..7f7e2d9a6 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -1365,11 +1365,8 @@ static void test_planar_settings(data_t *data)
> int devid;
> int display_ver = -1;
> int rval;
> + bool is_vkms = false;
>
> - /*
> - * If here is added non-intel tests below require will need to be
> - * changed to if(..)
> - */
> igt_require_f(data->display.is_atomic, "Atomic mode-set not supported\n");
> if (is_intel_device(data->drm_fd)) {
> igt_require_intel(data->drm_fd);
> @@ -1377,6 +1374,8 @@ static void test_planar_settings(data_t *data)
> igt_require(intel_display_ver(devid) >= 9);
> display_ver = intel_display_ver(devid);
> igt_require(display_ver >= 9);
> + } else if (is_vkms_device(data->drm_fd)) {
> + is_vkms = true;
> }
>
> crtc = igt_first_crtc_with_single_output(display, &output);
> @@ -1387,13 +1386,15 @@ static void test_planar_settings(data_t *data)
> igt_display_commit_atomic(&data->display,
> DRM_MODE_ATOMIC_ALLOW_MODESET,
> NULL);
> -
> - /* test against intel_plane_check_src_coordinates() in i915 */
> + /*
> + * Test odd width for NV12 format.
> + * For Intel i915/xe test against intel_plane_check_src_coordinates()
> + */
> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> DRM_FORMAT_MOD_LINEAR)) {
> int expected_rval = -EINVAL;
>
> - if (display_ver >= 20)
> + if (display_ver >= 20 || is_vkms)
> expected_rval = 0;
>
> igt_create_fb(data->drm_fd, 257, 256,
> @@ -1409,12 +1410,15 @@ static void test_planar_settings(data_t *data)
> igt_debug("Odd width NV12 framebuffer test skipped\n");
> }
>
> - /* test against intel_plane_check_src_coordinates() in i915 */
> + /*
> + * Test odd height for NV12 format.
> + * For Intel i915/xe test against intel_plane_check_src_coordinates()
> + */
> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> DRM_FORMAT_MOD_LINEAR)) {
> int expected_rval = -EINVAL;
>
> - if (display_ver >= 20 && display_ver < 35)
> + if ((display_ver >= 20 && display_ver < 35) || is_vkms)
> expected_rval = 0;
>
> igt_create_fb(data->drm_fd, 256, 257,
> @@ -1430,12 +1434,15 @@ static void test_planar_settings(data_t *data)
> igt_debug("Odd height NV12 framebuffer test skipped\n");
> }
>
> - /* test against intel_plane_check_src_coordinates() in i915 */
> + /*
> + * Test odd horizontal panning for NV12 format.
> + * For Intel i915/xe test against intel_plane_check_src_coordinates()
> + */
> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> DRM_FORMAT_MOD_LINEAR)) {
> int expected_rval = -EINVAL;
>
> - if (display_ver >= 35)
> + if (display_ver >= 35 || is_vkms)
> expected_rval = 0;
>
> igt_create_fb(data->drm_fd, 810, 590,
> @@ -1452,11 +1459,15 @@ static void test_planar_settings(data_t *data)
> igt_debug("Odd horizontal pan NV12 framebuffer test skipped\n");
> }
>
> + /*
> + * Test odd vertical panning for P016 format.
> + * For Intel i915/xe test against intel_plane_check_src_coordinates()
> + */
> if (igt_plane_has_format_mod(primary, DRM_FORMAT_P016,
> DRM_FORMAT_MOD_LINEAR)) {
> int expected_rval = -EINVAL;
>
> - if (display_ver >= 20 && display_ver < 35)
> + if ((display_ver >= 20 && display_ver < 35) || is_vkms)
> expected_rval = 0;
>
> igt_create_color_fb(data->drm_fd, 256, 260,
next prev parent reply other threads:[~2026-03-24 9:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 10:16 [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS Kamil Konieczny
2026-03-20 13:31 ` ✓ Xe.CI.BAT: success for tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS (rev3) Patchwork
2026-03-20 13:33 ` ✓ i915.CI.BAT: " Patchwork
2026-03-21 4:36 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-23 19:21 ` Kamil Konieczny
2026-03-21 12:30 ` ✗ Xe.CI.FULL: " Patchwork
2026-03-23 19:22 ` Kamil Konieczny
2026-03-24 9:44 ` Louis Chauvet [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-02-16 18:52 [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS Kamil Konieczny
2026-02-01 6:11 Renjun Wang
2026-02-04 12:29 ` Kamil Konieczny
2026-02-20 12:09 ` Sharma, Swati2
2026-03-19 8:16 ` Renjun Wang
2026-03-19 18:11 ` Sharma, Swati2
2026-03-23 19:07 ` Kamil Konieczny
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=3d23bd04-5f8b-4183-b173-d73196c48e9b@bootlin.com \
--to=louis.chauvet@bootlin.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=renjunw0@foxmail.com \
--cc=swati2.sharma@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