All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Ashutosh Dixit <ashutosh.dixit@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] tests/i915_fb_tiling: Check if device supports tiling
Date: Tue, 19 May 2020 20:37:22 +0100	[thread overview]
Message-ID: <158991704240.8153.9723756282504960235@build.alporthouse.com> (raw)
In-Reply-To: <20200519191346.17210-1-ashutosh.dixit@intel.com>

Quoting Ashutosh Dixit (2020-05-19 20:13:45)
> From: Vanshidhar Konda <vanshidhar.r.konda@intel.com>
> 
> Skip this test if the platform does not support setting tiling for frame
> buffer object.

This skips if there are no fences, but the frame buffer may still be
tiled, and preferentially will be. You are not describing the intent of
the test, nor how this change impacts it, very well.
 
> Cc: Imre Deak <imre.deak@intel.com>
> Cc: Uma Shankar <uma.shankar@intel.com>
> Signed-off-by: Vanshidhar Konda <vanshidhar.r.konda@intel.com>
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
>  tests/i915/i915_fb_tiling.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/i915/i915_fb_tiling.c b/tests/i915/i915_fb_tiling.c
> index 7d5c3f1fa..02b3f4c4b 100644
> --- a/tests/i915/i915_fb_tiling.c
> +++ b/tests/i915/i915_fb_tiling.c
> @@ -32,6 +32,8 @@ igt_simple_main
>         struct igt_fb fb;
>         int ret;
>  
> +       igt_require(gem_available_fences(drm_fd) > 0);
> +
>         igt_create_fb(drm_fd, 512, 512, DRM_FORMAT_XRGB8888,
>                       LOCAL_I915_FORMAT_MOD_X_TILED, &fb);

A better patch would be to require instead of assert in the first check,
since that is the essence of what the test entails.
-Chris
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2020-05-19 19:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19 19:13 [igt-dev] [PATCH i-g-t 1/2] tests/i915_fb_tiling: Check if device supports tiling Ashutosh Dixit
2020-05-19 19:13 ` [igt-dev] [PATCH i-g-t 2/2] tests/kms_addfb_basic: Skip tiling subtests on device without fences Ashutosh Dixit
2020-05-19 19:42   ` Chris Wilson
2020-05-19 19:37 ` Chris Wilson [this message]
2020-05-19 20:25 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tests/i915_fb_tiling: Check if device supports tiling Patchwork
2020-05-20  7:06 ` [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=158991704240.8153.9723756282504960235@build.alporthouse.com \
    --to=chris@chris-wilson.co.uk \
    --cc=ashutosh.dixit@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.