Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Karthik B S <karthik.b.s@intel.com>
To: Bhanuprakash Modem <bhanuprakash.modem@intel.com>,
	<igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [i-g-t] tests/i915/kms_draw_crc: Create separate subtest for each draw method
Date: Fri, 10 Feb 2023 08:53:47 +0530	[thread overview]
Message-ID: <604912f3-68c3-f36b-f1ec-fe2ec9e86639@intel.com> (raw)
In-Reply-To: <20230209104422.1645753-1-bhanuprakash.modem@intel.com>


On 2/9/2023 4:14 PM, Bhanuprakash Modem wrote:
> Instead of clubbing all draw methods, have a separate subtest for
> each draw method.
>
> Fixes: 9e71c27c6 (tests/i915/kms_draw_crc: Convert tests to dynamic)
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>

LGTM,

Reviewed-by: Karthik B S <karthik.b.s@intel.com>

> ---
>   tests/i915/kms_draw_crc.c | 29 ++++++++++-------------------
>   1 file changed, 10 insertions(+), 19 deletions(-)
>
> diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c
> index 64d3b937e..701de8ecb 100644
> --- a/tests/i915/kms_draw_crc.c
> +++ b/tests/i915/kms_draw_crc.c
> @@ -286,32 +286,23 @@ igt_main
>   	igt_fixture
>   		setup_environment();
>   
> -	igt_describe("This subtest verfies igt_draw library works "
> -		     "with different modifiers, DRM_FORMATS, DRAW_METHODS.");
> -	igt_subtest_with_dynamic("draw-method") {
> -		for (format_idx = 0; format_idx < ARRAY_SIZE(formats); format_idx++) {
> -			/* 10-bit & 16-bit formats are bit slow, ignore in pre-si. */
> -			if (igt_run_in_simulation() &&
> -			    formats[format_idx] != DRM_FORMAT_XRGB8888)
> -				continue;
> -
> -			for (method = 0; method < IGT_DRAW_METHOD_COUNT; method++) {
> +	for (method = 0; method < IGT_DRAW_METHOD_COUNT; method++) {
> +		igt_describe_f("Verify that igt draw library works for the draw "
> +			       "method (%s) with different modifiers & DRM formats.",
> +			       igt_draw_get_method_name(method));
> +		igt_subtest_with_dynamic_f("draw-method-%s", igt_draw_get_method_name(method)) {
> +			igt_skip_on(method == IGT_DRAW_MMAP_WC && !gem_mmap__has_wc(drm_fd));
> +			igt_skip_on(method == IGT_DRAW_MMAP_GTT && !gem_has_mappable_ggtt(drm_fd));
> +
> +			for (format_idx = 0; format_idx < ARRAY_SIZE(formats); format_idx++) {
>   				for (modifier_idx = 0; modifier_idx < ARRAY_SIZE(modifiers); modifier_idx++) {
>   					modifier = modifiers[modifier_idx];
>   
>   					if (!igt_display_has_format_mod(&display, formats[format_idx], modifier))
>   						continue;
>   
> -					if (method == IGT_DRAW_MMAP_WC && !gem_mmap__has_wc(drm_fd))
> -						continue;
> -
> -					if (method == IGT_DRAW_MMAP_GTT &&
> -					    !gem_has_mappable_ggtt(drm_fd))
> -						continue;
> -
> -					igt_dynamic_f("%s-%s-%s",
> +					igt_dynamic_f("%s-%s",
>   						      format_str(format_idx),
> -						      igt_draw_get_method_name(method),
>   						      modifier_str(modifier_idx))
>   						draw_method_subtest(method, format_idx,
>   								    modifier);

  parent reply	other threads:[~2023-02-10  3:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09 10:44 [igt-dev] [i-g-t] tests/i915/kms_draw_crc: Create separate subtest for each draw method Bhanuprakash Modem
2023-02-09 11:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-02-10  3:23 ` Karthik B S [this message]
2023-02-10  8:38 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=604912f3-68c3-f36b-f1ec-fe2ec9e86639@intel.com \
    --to=karthik.b.s@intel.com \
    --cc=bhanuprakash.modem@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