From: "Naladala, Ramanaidu" <Ramanaidu.naladala@intel.com>
To: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t] tests/intel/kms_sharpness_filter: Restructure modifier validation into per-modifier subtests
Date: Thu, 26 Feb 2026 08:31:44 +0530 [thread overview]
Message-ID: <b404d769-698a-4aba-8e92-ddedfd602ff6@intel.com> (raw)
In-Reply-To: <20260217093048.1597495-1-pranay.samala@intel.com>
Hi Pranay,
On 2/17/2026 3:00 PM, Pranay Samala wrote:
> Previously, all modifiers were exercised within a single
> subtest, making failures/skips hard to isolate and debug.
> This new flow generates explicit subtest names (filter-modifier-%s)
> for each modifier, improving clarity and CI reporting.
>
> Each subtest now validates only the selected modifier, and
> unsupported format/modifier combinations are cleanly skipped.
>
> Signed-off-by: Pranay Samala <pranay.samala@intel.com>
> ---
> tests/intel/kms_sharpness_filter.c | 34 +++++++++++++++++++++---------
> 1 file changed, 24 insertions(+), 10 deletions(-)
>
> diff --git a/tests/intel/kms_sharpness_filter.c b/tests/intel/kms_sharpness_filter.c
> index eddfad6b9..0140363bc 100644
> --- a/tests/intel/kms_sharpness_filter.c
> +++ b/tests/intel/kms_sharpness_filter.c
> @@ -21,9 +21,6 @@
> * SUBTEST: filter-strength
> * Description: Verify that varying strength (0-255), affects the degree of sharpeness applied.
> *
> - * SUBTEST: filter-modifiers
> - * Description: Verify content adaptive sharpness filter with varying modifiers.
> - *
> * SUBTEST: filter-rotations
> * Description: Verify content adaptive sharpness filter with varying rotations.
> *
> @@ -70,6 +67,17 @@
> * sharpness filter.
> */
>
> +/**
> + * SUBTEST: filter-modifier-%s
> + * Description: Verify content adaptive sharpness filter with varying modifiers.
> + *
> + * arg[1]:
> + *
> + * @linear: linear
> + * @x-tiled: x-tiled
> + * @4-tiled: 4-tiled
> + */
> +
> IGT_TEST_DESCRIPTION("Test to validate content adaptive sharpness filter");
>
> /*
> @@ -596,16 +604,22 @@ int igt_main_args("l", NULL, help_str, opt_handler, &data)
> }
> }
>
> - igt_describe("Verify content adaptive sharpness filter with "
> - "varying modifiers.");
> - igt_subtest_with_dynamic("filter-modifiers") {
> + for (int i = 0; i < ARRAY_SIZE(modifiers); i++) {
> data.rotation = IGT_ROTATION_0;
> data.format = DRM_FORMAT_XRGB8888;
> data.filter_strength = MID_FILTER_STRENGTH;
> -
> - for (int i = 0; i < ARRAY_SIZE(modifiers); i++) {
> - data.modifier = modifiers[i].modifier;
> - data.modifier_name = modifiers[i].name;
> + data.modifier = modifiers[i].modifier;
> + data.modifier_name = modifiers[i].name;
> +
> + igt_describe("Verify content adaptive sharpness filter with "
> + "varying modifiers.");
> + igt_subtest_with_dynamic_f("filter-modifier-%s", data.modifier_name) {
> + igt_skip_on_f((!igt_display_has_format_mod(&data.display,
> + DRM_FORMAT_XBGR8888,
> + data.modifier)),
> + "Skipping: Modifier " IGT_MODIFIER_FMT
> + " is not supported on this platform\n",
> + IGT_MODIFIER_ARGS(data.modifier));
>
> run_sharpness_filter_test(&data, TEST_FILTER_MODIFIERS);
IMHO, I observed that kms_sharpness_filter.c contains two separate sets
of subtests for pixel formats and modifiers. Due to this separation,
coverage is missing for other pixel formats when combined with
modifiers. Currently, the test checks modifiers only with
DRM_FORMAT_XRGB8888.
Instead, we can create a combined subtest using
igt_subtest_with_dynamic_f("filter-pixel-format-%s-modifier-%s").
This would allow the sharpness filter to be tested across all pixel
formats with all modifiers.
> }
next prev parent reply other threads:[~2026-02-26 3:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-17 9:30 [PATCH i-g-t] tests/intel/kms_sharpness_filter: Restructure modifier validation into per-modifier subtests Pranay Samala
2026-02-17 20:30 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-02-17 21:01 ` ✓ i915.CI.BAT: " Patchwork
2026-02-17 23:38 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-18 3:11 ` ✗ i915.CI.Full: " Patchwork
2026-02-26 3:01 ` Naladala, Ramanaidu [this message]
2026-02-26 3:48 ` [PATCH i-g-t] " Samala, Pranay
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=b404d769-698a-4aba-8e92-ddedfd602ff6@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