* [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
@ 2026-02-01 6:11 Renjun Wang
2026-02-03 12:39 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2026-02-04 12:29 ` [PATCH i-g-t] " Kamil Konieczny
0 siblings, 2 replies; 10+ messages in thread
From: Renjun Wang @ 2026-02-01 6:11 UTC (permalink / raw)
To: igt-dev; +Cc: Renjun Wang
Set expected_rval to 0 for planar-pixel-format-settings tests when
running on VKMS driver. VKMS currently accepts odd width/height for
NV12, odd horizontal panning for NV12, and odd vertical panning for
P016 formats.
Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
---
tests/kms_plane.c | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 21d80847c..57adfe199 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -1313,11 +1313,9 @@ static void test_planar_settings(data_t *data)
int devid;
int display_ver = -1;
int rval;
+ bool is_intel = false;
+ 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);
@@ -1325,6 +1323,9 @@ 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);
+ is_intel = true;
+ } else if (is_vkms_device(data->drm_fd)) {
+ is_vkms = true;
}
output = igt_get_single_output_for_pipe(&data->display, pipe);
@@ -1337,12 +1338,12 @@ static void test_planar_settings(data_t *data)
DRM_MODE_ATOMIC_ALLOW_MODESET,
NULL);
- /* test against intel_plane_check_src_coordinates() in i915 */
+ /* Test odd width for NV12 format */
if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
DRM_FORMAT_MOD_LINEAR)) {
int expected_rval = -EINVAL;
- if (display_ver >= 20)
+ if ((is_intel && display_ver >= 20) || is_vkms)
expected_rval = 0;
igt_create_fb(data->drm_fd, 257, 256,
@@ -1358,12 +1359,12 @@ 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 */
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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
expected_rval = 0;
igt_create_fb(data->drm_fd, 256, 257,
@@ -1378,13 +1379,12 @@ static void test_planar_settings(data_t *data)
} else {
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 */
if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
DRM_FORMAT_MOD_LINEAR)) {
int expected_rval = -EINVAL;
- if (display_ver >= 35)
+ if ((is_intel && display_ver >= 35) || is_vkms)
expected_rval = 0;
igt_create_fb(data->drm_fd, 810, 590,
@@ -1401,11 +1401,12 @@ 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 */
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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
expected_rval = 0;
igt_create_color_fb(data->drm_fd, 256, 260,
--
2.47.3
^ permalink raw reply related [flat|nested] 10+ messages in thread* ✗ LGCI.VerificationFailed: failure for tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-02-01 6:11 [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS Renjun Wang
@ 2026-02-03 12:39 ` Patchwork
2026-02-04 12:29 ` [PATCH i-g-t] " Kamil Konieczny
1 sibling, 0 replies; 10+ messages in thread
From: Patchwork @ 2026-02-03 12:39 UTC (permalink / raw)
To: Renjun Wang; +Cc: igt-dev
== Series Details ==
Series: tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
URL : https://patchwork.freedesktop.org/series/161064/
State : failure
== Summary ==
Address 'renjunw0@foxmail.com' is not on the allowlist, which prevents CI from being triggered for this patch.
If you want Intel GFX CI to accept this address, please contact the script maintainers at i915-ci-infra@lists.freedesktop.org.
Exception occurred during validation, bailing out!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-02-01 6:11 [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS Renjun Wang
2026-02-03 12:39 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
@ 2026-02-04 12:29 ` Kamil Konieczny
2026-02-20 12:09 ` Sharma, Swati2
1 sibling, 1 reply; 10+ messages in thread
From: Kamil Konieczny @ 2026-02-04 12:29 UTC (permalink / raw)
To: Renjun Wang; +Cc: igt-dev, Karthik B S, Swati Sharma
Hi Renjun,
On 2026-02-01 at 14:11:43 +0800, Renjun Wang wrote:
> Set expected_rval to 0 for planar-pixel-format-settings tests when
> running on VKMS driver. VKMS currently accepts odd width/height for
> NV12, odd horizontal panning for NV12, and odd vertical panning for
> P016 formats.
>
> Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
> ---
> tests/kms_plane.c | 25 +++++++++++++------------
> 1 file changed, 13 insertions(+), 12 deletions(-)
>
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 21d80847c..57adfe199 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -1313,11 +1313,9 @@ static void test_planar_settings(data_t *data)
> int devid;
> int display_ver = -1;
> int rval;
> + bool is_intel = false;
> + 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);
> @@ -1325,6 +1323,9 @@ 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);
> + is_intel = true;
> + } else if (is_vkms_device(data->drm_fd)) {
> + is_vkms = true;
> }
>
> output = igt_get_single_output_for_pipe(&data->display, pipe);
> @@ -1337,12 +1338,12 @@ static void test_planar_settings(data_t *data)
> DRM_MODE_ATOMIC_ALLOW_MODESET,
> NULL);
>
> - /* test against intel_plane_check_src_coordinates() in i915 */
I am not sure if removing this is proper, maybe move it just below
before 'if((is_intel...'
Same concern below, when you remove other i915 comments.
+cc Karthik and Swati
Cc: Karthik B S <karthik.b.s@intel.com>
Cc: Swati Sharma <swati2.sharma@intel.com>
> + /* Test odd width for NV12 format */
Do we need it here, when just below is DRM_FORMAT_NV12?
Or is it 'odd width' that is worth pointing out?
Same concern below.
Overall looks good. Btw Karthik or Swati, please find someone
from KMS team and send this for testing, I will ack it then.
Regards,
Kamil
> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> DRM_FORMAT_MOD_LINEAR)) {
> int expected_rval = -EINVAL;
>
> - if (display_ver >= 20)
> + if ((is_intel && display_ver >= 20) || is_vkms)
> expected_rval = 0;
>
> igt_create_fb(data->drm_fd, 257, 256,
> @@ -1358,12 +1359,12 @@ 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 */
> 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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
> expected_rval = 0;
>
> igt_create_fb(data->drm_fd, 256, 257,
> @@ -1378,13 +1379,12 @@ static void test_planar_settings(data_t *data)
> } else {
> 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 */
> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> DRM_FORMAT_MOD_LINEAR)) {
> int expected_rval = -EINVAL;
>
> - if (display_ver >= 35)
> + if ((is_intel && display_ver >= 35) || is_vkms)
> expected_rval = 0;
>
> igt_create_fb(data->drm_fd, 810, 590,
> @@ -1401,11 +1401,12 @@ 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 */
> 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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
> expected_rval = 0;
>
> igt_create_color_fb(data->drm_fd, 256, 260,
> --
> 2.47.3
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-02-04 12:29 ` [PATCH i-g-t] " Kamil Konieczny
@ 2026-02-20 12:09 ` Sharma, Swati2
2026-03-19 8:16 ` Renjun Wang
0 siblings, 1 reply; 10+ messages in thread
From: Sharma, Swati2 @ 2026-02-20 12:09 UTC (permalink / raw)
To: Kamil Konieczny, Renjun Wang, igt-dev, Karthik B S
Hi Renjun,
On 04-02-2026 05:59 pm, Kamil Konieczny wrote:
> Hi Renjun,
> On 2026-02-01 at 14:11:43 +0800, Renjun Wang wrote:
>> Set expected_rval to 0 for planar-pixel-format-settings tests when
>> running on VKMS driver. VKMS currently accepts odd width/height for
>> NV12, odd horizontal panning for NV12, and odd vertical panning for
>> P016 formats.
>>
>> Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
>> ---
>> tests/kms_plane.c | 25 +++++++++++++------------
>> 1 file changed, 13 insertions(+), 12 deletions(-)
>>
>> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
>> index 21d80847c..57adfe199 100644
>> --- a/tests/kms_plane.c
>> +++ b/tests/kms_plane.c
>> @@ -1313,11 +1313,9 @@ static void test_planar_settings(data_t *data)
>> int devid;
>> int display_ver = -1;
>> int rval;
>> + bool is_intel = false;
>> + 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);
>> @@ -1325,6 +1323,9 @@ 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);
>> + is_intel = true;
>> + } else if (is_vkms_device(data->drm_fd)) {
>> + is_vkms = true;
>> }
>>
>> output = igt_get_single_output_for_pipe(&data->display, pipe);
>> @@ -1337,12 +1338,12 @@ static void test_planar_settings(data_t *data)
>> DRM_MODE_ATOMIC_ALLOW_MODESET,
>> NULL);
>>
>> - /* test against intel_plane_check_src_coordinates() in i915 */
> I am not sure if removing this is proper, maybe move it just below
> before 'if((is_intel...'
> Same concern below, when you remove other i915 comments.
>
> +cc Karthik and Swati
> Cc: Karthik B S <karthik.b.s@intel.com>
> Cc: Swati Sharma <swati2.sharma@intel.com>
>
>> + /* Test odd width for NV12 format */
> Do we need it here, when just below is DRM_FORMAT_NV12?
> Or is it 'odd width' that is worth pointing out?
> Same concern below.
>
> Overall looks good. Btw Karthik or Swati, please find someone
> from KMS team and send this for testing, I will ack it then.
>
> Regards,
> Kamil
Agree with Kamil, lets keep existing comments as it is. Please add your
changes on top of those.
https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
There isn't any regression on CI results, results are okay.
>
>> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
>> DRM_FORMAT_MOD_LINEAR)) {
>> int expected_rval = -EINVAL;
>>
>> - if (display_ver >= 20)
>> + if ((is_intel && display_ver >= 20) || is_vkms)
>> expected_rval = 0;
>>
>> igt_create_fb(data->drm_fd, 257, 256,
>> @@ -1358,12 +1359,12 @@ 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 */
>> 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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
>> expected_rval = 0;
>>
>> igt_create_fb(data->drm_fd, 256, 257,
>> @@ -1378,13 +1379,12 @@ static void test_planar_settings(data_t *data)
>> } else {
>> 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 */
>> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
>> DRM_FORMAT_MOD_LINEAR)) {
>> int expected_rval = -EINVAL;
>>
>> - if (display_ver >= 35)
>> + if ((is_intel && display_ver >= 35) || is_vkms)
>> expected_rval = 0;
>>
>> igt_create_fb(data->drm_fd, 810, 590,
>> @@ -1401,11 +1401,12 @@ 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 */
>> 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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
>> expected_rval = 0;
>>
>> igt_create_color_fb(data->drm_fd, 256, 260,
>> --
>> 2.47.3
>>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-02-20 12:09 ` Sharma, Swati2
@ 2026-03-19 8:16 ` Renjun Wang
2026-03-19 18:11 ` Sharma, Swati2
0 siblings, 1 reply; 10+ messages in thread
From: Renjun Wang @ 2026-03-19 8:16 UTC (permalink / raw)
To: Sharma, Swati2, Kamil Konieczny, igt-dev, Karthik B S; +Cc: renjunw0
Hi Sharma,
The version 2 for this patch is send by Kamil Koneczny[1], and have CI
results. Do I need to send version 2 patch again?
[1]
https://lore.kernel.org/igt-dev/20260216185231.164130-1-kamil.konieczny@linux.intel.com/
Best Regards,
On 2/20/26 04:09, Sharma, Swati2 wrote:
> Hi Renjun,
>
> On 04-02-2026 05:59 pm, Kamil Konieczny wrote:
>> Hi Renjun,
>> On 2026-02-01 at 14:11:43 +0800, Renjun Wang wrote:
>>> Set expected_rval to 0 for planar-pixel-format-settings tests when
>>> running on VKMS driver. VKMS currently accepts odd width/height for
>>> NV12, odd horizontal panning for NV12, and odd vertical panning for
>>> P016 formats.
>>>
>>> Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
>>> ---
>>> tests/kms_plane.c | 25 +++++++++++++------------
>>> 1 file changed, 13 insertions(+), 12 deletions(-)
>>>
>>> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
>>> index 21d80847c..57adfe199 100644
>>> --- a/tests/kms_plane.c
>>> +++ b/tests/kms_plane.c
>>> @@ -1313,11 +1313,9 @@ static void test_planar_settings(data_t *data)
>>> int devid;
>>> int display_ver = -1;
>>> int rval;
>>> + bool is_intel = false;
>>> + 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);
>>> @@ -1325,6 +1323,9 @@ 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);
>>> + is_intel = true;
>>> + } else if (is_vkms_device(data->drm_fd)) {
>>> + is_vkms = true;
>>> }
>>> output = igt_get_single_output_for_pipe(&data->display, pipe);
>>> @@ -1337,12 +1338,12 @@ static void test_planar_settings(data_t *data)
>>> DRM_MODE_ATOMIC_ALLOW_MODESET,
>>> NULL);
>>> - /* test against intel_plane_check_src_coordinates() in i915 */
>> I am not sure if removing this is proper, maybe move it just below
>> before 'if((is_intel...'
>> Same concern below, when you remove other i915 comments.
>>
>> +cc Karthik and Swati
>> Cc: Karthik B S <karthik.b.s@intel.com>
>> Cc: Swati Sharma <swati2.sharma@intel.com>
>>
>>> + /* Test odd width for NV12 format */
>> Do we need it here, when just below is DRM_FORMAT_NV12?
>> Or is it 'odd width' that is worth pointing out?
>> Same concern below.
>>
>> Overall looks good. Btw Karthik or Swati, please find someone
>> from KMS team and send this for testing, I will ack it then.
>>
>> Regards,
>> Kamil
>
> Agree with Kamil, lets keep existing comments as it is. Please add
> your changes on top of those.
>
> https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
>
>
> https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
>
>
> There isn't any regression on CI results, results are okay.
>
>>
>>> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
>>> DRM_FORMAT_MOD_LINEAR)) {
>>> int expected_rval = -EINVAL;
>>> - if (display_ver >= 20)
>>> + if ((is_intel && display_ver >= 20) || is_vkms)
>>> expected_rval = 0;
>>> igt_create_fb(data->drm_fd, 257, 256,
>>> @@ -1358,12 +1359,12 @@ 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 */
>>> 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 ((is_intel && display_ver >= 20 && display_ver < 35) ||
>>> is_vkms)
>>> expected_rval = 0;
>>> igt_create_fb(data->drm_fd, 256, 257,
>>> @@ -1378,13 +1379,12 @@ static void test_planar_settings(data_t *data)
>>> } else {
>>> 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 */
>>> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
>>> DRM_FORMAT_MOD_LINEAR)) {
>>> int expected_rval = -EINVAL;
>>> - if (display_ver >= 35)
>>> + if ((is_intel && display_ver >= 35) || is_vkms)
>>> expected_rval = 0;
>>> igt_create_fb(data->drm_fd, 810, 590,
>>> @@ -1401,11 +1401,12 @@ 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 */
>>> 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 ((is_intel && display_ver >= 20 && display_ver < 35) ||
>>> is_vkms)
>>> expected_rval = 0;
>>> igt_create_color_fb(data->drm_fd, 256, 260,
>>> --
>>> 2.47.3
>>>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-03-19 8:16 ` Renjun Wang
@ 2026-03-19 18:11 ` Sharma, Swati2
2026-03-23 19:07 ` Kamil Konieczny
0 siblings, 1 reply; 10+ messages in thread
From: Sharma, Swati2 @ 2026-03-19 18:11 UTC (permalink / raw)
To: Renjun Wang, Kamil Konieczny, igt-dev, Karthik B S
Hi Wang
No, patch LGTM
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
On 19-03-2026 01:46 pm, Renjun Wang wrote:
> Hi Sharma,
>
> The version 2 for this patch is send by Kamil Koneczny[1], and have CI
> results. Do I need to send version 2 patch again?
>
>
> [1]
> https://lore.kernel.org/igt-dev/20260216185231.164130-1-kamil.konieczny@linux.intel.com/
>
>
> Best Regards,
>
> On 2/20/26 04:09, Sharma, Swati2 wrote:
>> Hi Renjun,
>>
>> On 04-02-2026 05:59 pm, Kamil Konieczny wrote:
>>> Hi Renjun,
>>> On 2026-02-01 at 14:11:43 +0800, Renjun Wang wrote:
>>>> Set expected_rval to 0 for planar-pixel-format-settings tests when
>>>> running on VKMS driver. VKMS currently accepts odd width/height for
>>>> NV12, odd horizontal panning for NV12, and odd vertical panning for
>>>> P016 formats.
>>>>
>>>> Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
>>>> ---
>>>> tests/kms_plane.c | 25 +++++++++++++------------
>>>> 1 file changed, 13 insertions(+), 12 deletions(-)
>>>>
>>>> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
>>>> index 21d80847c..57adfe199 100644
>>>> --- a/tests/kms_plane.c
>>>> +++ b/tests/kms_plane.c
>>>> @@ -1313,11 +1313,9 @@ static void test_planar_settings(data_t *data)
>>>> int devid;
>>>> int display_ver = -1;
>>>> int rval;
>>>> + bool is_intel = false;
>>>> + 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);
>>>> @@ -1325,6 +1323,9 @@ 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);
>>>> + is_intel = true;
>>>> + } else if (is_vkms_device(data->drm_fd)) {
>>>> + is_vkms = true;
>>>> }
>>>> output = igt_get_single_output_for_pipe(&data->display, pipe);
>>>> @@ -1337,12 +1338,12 @@ static void test_planar_settings(data_t *data)
>>>> DRM_MODE_ATOMIC_ALLOW_MODESET,
>>>> NULL);
>>>> - /* test against intel_plane_check_src_coordinates() in i915 */
>>> I am not sure if removing this is proper, maybe move it just below
>>> before 'if((is_intel...'
>>> Same concern below, when you remove other i915 comments.
>>>
>>> +cc Karthik and Swati
>>> Cc: Karthik B S <karthik.b.s@intel.com>
>>> Cc: Swati Sharma <swati2.sharma@intel.com>
>>>
>>>> + /* Test odd width for NV12 format */
>>> Do we need it here, when just below is DRM_FORMAT_NV12?
>>> Or is it 'odd width' that is worth pointing out?
>>> Same concern below.
>>>
>>> Overall looks good. Btw Karthik or Swati, please find someone
>>> from KMS team and send this for testing, I will ack it then.
>>>
>>> Regards,
>>> Kamil
>>
>> Agree with Kamil, lets keep existing comments as it is. Please add
>> your changes on top of those.
>>
>> https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
>>
>>
>> https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
>>
>>
>> There isn't any regression on CI results, results are okay.
>>
>>>
>>>> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
>>>> DRM_FORMAT_MOD_LINEAR)) {
>>>> int expected_rval = -EINVAL;
>>>> - if (display_ver >= 20)
>>>> + if ((is_intel && display_ver >= 20) || is_vkms)
>>>> expected_rval = 0;
>>>> igt_create_fb(data->drm_fd, 257, 256,
>>>> @@ -1358,12 +1359,12 @@ 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 */
>>>> 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 ((is_intel && display_ver >= 20 && display_ver < 35) ||
>>>> is_vkms)
>>>> expected_rval = 0;
>>>> igt_create_fb(data->drm_fd, 256, 257,
>>>> @@ -1378,13 +1379,12 @@ static void test_planar_settings(data_t *data)
>>>> } else {
>>>> 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 */
>>>> if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
>>>> DRM_FORMAT_MOD_LINEAR)) {
>>>> int expected_rval = -EINVAL;
>>>> - if (display_ver >= 35)
>>>> + if ((is_intel && display_ver >= 35) || is_vkms)
>>>> expected_rval = 0;
>>>> igt_create_fb(data->drm_fd, 810, 590,
>>>> @@ -1401,11 +1401,12 @@ 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 */
>>>> 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 ((is_intel && display_ver >= 20 && display_ver < 35) ||
>>>> is_vkms)
>>>> expected_rval = 0;
>>>> igt_create_color_fb(data->drm_fd, 256, 260,
>>>> --
>>>> 2.47.3
>>>>
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-03-19 18:11 ` Sharma, Swati2
@ 2026-03-23 19:07 ` Kamil Konieczny
0 siblings, 0 replies; 10+ messages in thread
From: Kamil Konieczny @ 2026-03-23 19:07 UTC (permalink / raw)
To: Sharma, Swati2; +Cc: Renjun Wang, igt-dev, Karthik B S
Hi Sharma,,
On 2026-03-19 at 23:41:25 +0530, Sharma, Swati2 wrote:
> Hi Wang
>
> No, patch LGTM
>
> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
>
> On 19-03-2026 01:46 pm, Renjun Wang wrote:
> > Hi Sharma,
> >
> > The version 2 for this patch is send by Kamil Koneczny[1], and have CI
> > results. Do I need to send version 2 patch again?
> >
> >
> > [1] https://lore.kernel.org/igt-dev/20260216185231.164130-1-kamil.konieczny@linux.intel.com/
> >
Thank you all, I removed all changes from comments and also
improved a little checks for Intel and now merged it.
Regards,
Kamil
> >
> > Best Regards,
> >
> > On 2/20/26 04:09, Sharma, Swati2 wrote:
> > > Hi Renjun,
> > >
> > > On 04-02-2026 05:59 pm, Kamil Konieczny wrote:
> > > > Hi Renjun,
> > > > On 2026-02-01 at 14:11:43 +0800, Renjun Wang wrote:
> > > > > Set expected_rval to 0 for planar-pixel-format-settings tests when
> > > > > running on VKMS driver. VKMS currently accepts odd width/height for
> > > > > NV12, odd horizontal panning for NV12, and odd vertical panning for
> > > > > P016 formats.
> > > > >
> > > > > Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
> > > > > ---
> > > > > tests/kms_plane.c | 25 +++++++++++++------------
> > > > > 1 file changed, 13 insertions(+), 12 deletions(-)
> > > > >
> > > > > diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> > > > > index 21d80847c..57adfe199 100644
> > > > > --- a/tests/kms_plane.c
> > > > > +++ b/tests/kms_plane.c
> > > > > @@ -1313,11 +1313,9 @@ static void test_planar_settings(data_t *data)
> > > > > int devid;
> > > > > int display_ver = -1;
> > > > > int rval;
> > > > > + bool is_intel = false;
> > > > > + 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);
> > > > > @@ -1325,6 +1323,9 @@ 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);
> > > > > + is_intel = true;
> > > > > + } else if (is_vkms_device(data->drm_fd)) {
> > > > > + is_vkms = true;
> > > > > }
> > > > > output = igt_get_single_output_for_pipe(&data->display, pipe);
> > > > > @@ -1337,12 +1338,12 @@ static void test_planar_settings(data_t *data)
> > > > > DRM_MODE_ATOMIC_ALLOW_MODESET,
> > > > > NULL);
> > > > > - /* test against intel_plane_check_src_coordinates() in i915 */
> > > > I am not sure if removing this is proper, maybe move it just below
> > > > before 'if((is_intel...'
> > > > Same concern below, when you remove other i915 comments.
> > > >
> > > > +cc Karthik and Swati
> > > > Cc: Karthik B S <karthik.b.s@intel.com>
> > > > Cc: Swati Sharma <swati2.sharma@intel.com>
> > > >
> > > > > + /* Test odd width for NV12 format */
> > > > Do we need it here, when just below is DRM_FORMAT_NV12?
> > > > Or is it 'odd width' that is worth pointing out?
> > > > Same concern below.
> > > >
> > > > Overall looks good. Btw Karthik or Swati, please find someone
> > > > from KMS team and send this for testing, I will ack it then.
> > > >
> > > > Regards,
> > > > Kamil
> > >
> > > Agree with Kamil, lets keep existing comments as it is. Please add
> > > your changes on top of those.
> > >
> > > https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
> > >
> > >
> > > https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_14559/shards-all.html?testfilter=planar-pixel-format-settings
> > >
> > >
> > > There isn't any regression on CI results, results are okay.
> > >
> > > >
> > > > > if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> > > > > DRM_FORMAT_MOD_LINEAR)) {
> > > > > int expected_rval = -EINVAL;
> > > > > - if (display_ver >= 20)
> > > > > + if ((is_intel && display_ver >= 20) || is_vkms)
> > > > > expected_rval = 0;
> > > > > igt_create_fb(data->drm_fd, 257, 256,
> > > > > @@ -1358,12 +1359,12 @@ 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 */
> > > > > 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 ((is_intel && display_ver >= 20 && display_ver <
> > > > > 35) || is_vkms)
> > > > > expected_rval = 0;
> > > > > igt_create_fb(data->drm_fd, 256, 257,
> > > > > @@ -1378,13 +1379,12 @@ static void test_planar_settings(data_t *data)
> > > > > } else {
> > > > > 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 */
> > > > > if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
> > > > > DRM_FORMAT_MOD_LINEAR)) {
> > > > > int expected_rval = -EINVAL;
> > > > > - if (display_ver >= 35)
> > > > > + if ((is_intel && display_ver >= 35) || is_vkms)
> > > > > expected_rval = 0;
> > > > > igt_create_fb(data->drm_fd, 810, 590,
> > > > > @@ -1401,11 +1401,12 @@ 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 */
> > > > > 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 ((is_intel && display_ver >= 20 && display_ver <
> > > > > 35) || is_vkms)
> > > > > expected_rval = 0;
> > > > > igt_create_color_fb(data->drm_fd, 256, 260,
> > > > > --
> > > > > 2.47.3
> > > > >
> >
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
@ 2026-02-16 18:52 Kamil Konieczny
0 siblings, 0 replies; 10+ messages in thread
From: Kamil Konieczny @ 2026-02-16 18:52 UTC (permalink / raw)
To: igt-dev
Cc: Renjun Wang, Karthik B S, Swati Sharma, Louis Chauvet, Leo Li,
Kamil Konieczny
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
formats.
Cc: Karthik B S <karthik.b.s@intel.com>
Cc: Swati Sharma <swati2.sharma@intel.com>
Cc: Louis Chauvet <louis.chauvet@bootlin.com>
Cc: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Renjun Wang <renjunw0@foxmail.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
Reformatted descriptions, also left one comment for Intel. Kamil
tests/kms_plane.c | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 362748cdb..a6dcb5585 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -1331,11 +1331,9 @@ static void test_planar_settings(data_t *data)
int devid;
int display_ver = -1;
int rval;
+ bool is_intel = false;
+ 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);
@@ -1343,6 +1341,9 @@ 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);
+ is_intel = true;
+ } else if (is_vkms_device(data->drm_fd)) {
+ is_vkms = true;
}
output = igt_get_single_output_for_pipe(&data->display, pipe);
@@ -1354,13 +1355,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 ((is_intel && display_ver >= 20) || is_vkms)
expected_rval = 0;
igt_create_fb(data->drm_fd, 257, 256,
@@ -1376,12 +1379,12 @@ 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. */
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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
expected_rval = 0;
igt_create_fb(data->drm_fd, 256, 257,
@@ -1397,12 +1400,12 @@ 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. */
if (igt_plane_has_format_mod(primary, DRM_FORMAT_NV12,
DRM_FORMAT_MOD_LINEAR)) {
int expected_rval = -EINVAL;
- if (display_ver >= 35)
+ if ((is_intel && display_ver >= 35) || is_vkms)
expected_rval = 0;
igt_create_fb(data->drm_fd, 810, 590,
@@ -1419,11 +1422,12 @@ 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. */
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 ((is_intel && display_ver >= 20 && display_ver < 35) || is_vkms)
expected_rval = 0;
igt_create_color_fb(data->drm_fd, 256, 260,
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
@ 2026-03-20 10:16 Kamil Konieczny
2026-03-24 9:44 ` Louis Chauvet
0 siblings, 1 reply; 10+ messages in thread
From: Kamil Konieczny @ 2026-03-20 10:16 UTC (permalink / raw)
To: igt-dev; +Cc: Renjun Wang, Swati Sharma, Kamil Konieczny
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>
---
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,
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS
2026-03-20 10:16 Kamil Konieczny
@ 2026-03-24 9:44 ` Louis Chauvet
0 siblings, 0 replies; 10+ messages in thread
From: Louis Chauvet @ 2026-03-24 9:44 UTC (permalink / raw)
To: Kamil Konieczny, igt-dev; +Cc: Renjun Wang, Swati Sharma
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,
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-03-24 9:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01 6:11 [PATCH i-g-t] tests/kms_plane: Allow planar-pixel-format-settings to pass on VKMS Renjun Wang
2026-02-03 12:39 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2026-02-04 12:29 ` [PATCH i-g-t] " 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
-- strict thread matches above, loose matches on Subject: below --
2026-02-16 18:52 Kamil Konieczny
2026-03-20 10:16 Kamil Konieczny
2026-03-24 9:44 ` Louis Chauvet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox