public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Das, Nirmoy" <nirmoy.das@linux.intel.com>
To: Nirmoy Das <nirmoy.das@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/gem_blits: Don't test Y Tile for newer GPUs
Date: Wed, 18 Jan 2023 14:43:34 +0100	[thread overview]
Message-ID: <bcd3cc77-214e-9093-fc34-ee6aa401668e@linux.intel.com> (raw)
In-Reply-To: <20230118134205.4156-1-nirmoy.das@intel.com>

Once we have https://patchwork.freedesktop.org/series/113003/, I think 
this can be improved.


Nirmoy

On 1/18/2023 2:42 PM, Nirmoy Das wrote:
> From: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
>
> Legacy Y Tile is no longer supported on newer GPUs.
>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Co-developed-by: Nirmoy Das <nirmoy.das@intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
> Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
> ---
>   tests/i915/gem_blits.c | 17 +++++++++++++++++
>   1 file changed, 17 insertions(+)
>
> diff --git a/tests/i915/gem_blits.c b/tests/i915/gem_blits.c
> index d9296cf2d..577eb6bfc 100644
> --- a/tests/i915/gem_blits.c
> +++ b/tests/i915/gem_blits.c
> @@ -793,6 +793,7 @@ igt_main
>   	igt_subtest("basic") {
>   		struct buffer *src, *dst;
>   		unsigned int x, y;
> +		int devid = intel_get_drm_devid(device.fd);
>   
>   		for (unsigned int height = 1; height <= 16; height <<= 2) {
>   			for (unsigned int y0 = ZERO; y0 <= (height > 2 ? BELOW : ZERO); y0++) {
> @@ -808,12 +809,28 @@ igt_main
>   						for (unsigned int src_tiling = I915_TILING_NONE;
>   						     src_tiling <= (device.gen >= 6 ? I915_TILING_Y : I915_TILING_X);
>   						     src_tiling++) {
> +
> +							/*
> +							 * Legacy Y Tile is not supported on newer GPUs so skip that.
> +							 * Probably need more generic solution to detect and skip unsupported formats.
> +							 */
> +							if (intel_graphics_ver(devid) >= IP_VER(12, 60) && (src_tiling == I915_TILING_Y))
> +								continue;
> +
>   							buffer_set_tiling(&device, src, src_tiling);
>   
>   							x = start_at(width, x0);
>   							for (unsigned int dst_tiling = I915_TILING_NONE;
>   							     dst_tiling <= (device.gen >= 6 ? I915_TILING_Y : I915_TILING_X);
>   							     dst_tiling++) {
> +
> +								/*
> +								 * Legacy Y Tile is not supported on newer GPUs so skip that.
> +								 * Probably need more generic solution to detect and skip unsupported formats.
> +								 */
> +								if (intel_graphics_ver(devid) >= IP_VER(12, 60) && (dst_tiling == I915_TILING_Y))
> +									continue;
> +
>   								buffer_set_tiling(&device, dst, dst_tiling);
>   
>   								for (enum mode down = CPU; down <= WC; down++) {

  reply	other threads:[~2023-01-18 13:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 13:42 [igt-dev] [PATCH i-g-t] tests/gem_blits: Don't test Y Tile for newer GPUs Nirmoy Das
2023-01-18 13:43 ` Das, Nirmoy [this message]
2023-01-18 14:12 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-01-19 15:47 ` [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=bcd3cc77-214e-9093-fc34-ee6aa401668e@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=nirmoy.das@intel.com \
    /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