public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Naladala, Ramanaidu" <Ramanaidu.naladala@intel.com>
To: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t 2/2] tests/kms_plane: Skip unsupported modifiers
Date: Wed, 4 Feb 2026 23:34:40 +0530	[thread overview]
Message-ID: <a622d980-e485-49c8-b5fe-d3d89bd147ec@intel.com> (raw)
In-Reply-To: <3d6f8947-4066-4734-9cb8-b4173e72d5db@intel.com>

[-- Attachment #1: Type: text/plain, Size: 2663 bytes --]

Hi Santhosh,

On 2/4/2026 4:10 PM, Reddy Guddati, Santhosh wrote:
> Hi Pranay,
>
> On 04-02-2026 14:09, Pranay Samala wrote:
>> Skip modifier subtests that are not supported.
>>
>> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
>> ---
>>   tests/kms_plane.c | 8 ++++++++
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
>> index a7b1bf25d..69d06d627 100644
>> --- a/tests/kms_plane.c
>> +++ b/tests/kms_plane.c
>> @@ -1495,6 +1495,10 @@ run_tests_for_pipe_plane(data_t *data)
>>       for (int i = 0; i < ARRAY_SIZE(modifiers); i++) {
>>           igt_describe("verify the pixel formats for given plane and 
>> pipe");
>>           igt_subtest_with_dynamic_f("pixel-format-%s-modifier", 
>> modifiers[i].str) {
>> + igt_require_f(igt_display_has_format_mod(&data->display,
>> +                                 DRM_FORMAT_XRGB8888,
>> +                                 modifiers[i].modifier),
>> +                                 "Modifier not supported\n");
>
> This looks to be a redundant check here , as the same is handled in 
> test_format_plane.
Both checks must stay. The cursor plane only supports linear formats, so 
without the modifier check, |test_format_plane()| would incorrectly pass 
non‑linear modifiers, causing false positives.
>
> igt_skip_on_f(!found,
>               "Modifier " IGT_MODIFIER_FMT " not supported on plane 
> %d\n",
>               IGT_MODIFIER_ARGS(data->mod), plane->index);
>
> Thanks,
> Santhosh
>
>>               data->mod = modifiers[i].modifier;
>>               run_test(data, test_pixel_formats);
>>           }
>> @@ -1504,6 +1508,10 @@ run_tests_for_pipe_plane(data_t *data)
>>           igt_describe("verify the pixel formats for given plane and 
>> pipe with source clamping");
>> igt_subtest_with_dynamic_f("pixel-format-%s-modifier-source-clamping",
>>                          modifiers[i].str) {
>> + igt_require_f(igt_display_has_format_mod(&data->display,
>> +                                 DRM_FORMAT_XRGB8888,
>> +                                 modifiers[i].modifier),
>> +                                 "Modifier not supported\n");
>>               data->mod = modifiers[i].modifier;
>>               data->crop = 4;
>>               run_test(data, test_pixel_formats);
>
Thanks,
Ramanaidu N.

[-- Attachment #2: Type: text/html, Size: 6052 bytes --]

  reply	other threads:[~2026-02-04 18:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-04  8:39 [PATCH i-g-t 0/2] tests/kms_plane: Refine clamping and modifier skips Pranay Samala
2026-02-04  8:39 ` [PATCH i-g-t 1/2] tests/kms_plane: Skip cursor plane for source clamping Pranay Samala
2026-02-09  5:19   ` B, Jeevan
2026-02-04  8:39 ` [PATCH i-g-t 2/2] tests/kms_plane: Skip unsupported modifiers Pranay Samala
2026-02-04 10:40   ` Reddy Guddati, Santhosh
2026-02-04 18:04     ` Naladala, Ramanaidu [this message]
2026-02-05  1:15   ` Naladala, Ramanaidu
2026-02-04  9:34 ` ✓ Xe.CI.BAT: success for tests/kms_plane: Refine clamping and modifier skips Patchwork
2026-02-04  9:46 ` ✓ i915.CI.BAT: " Patchwork
2026-02-04 20:16 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-04 21:44 ` ✗ i915.CI.Full: " 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=a622d980-e485-49c8-b5fe-d3d89bd147ec@intel.com \
    --to=ramanaidu.naladala@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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