public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t v2 1/2] lib/intel_bufops: Introduce buffer operations
Date: Mon, 09 Dec 2019 16:07:37 -0800	[thread overview]
Message-ID: <87muc1kppy.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20191201190942.6077-1-zbigniew.kempczynski@intel.com>

On Sun, 01 Dec 2019 11:09:41 -0800, Zbigniew Kempczyński wrote:
>
> Different GENs supports different tile surfaces. Older GENs
> have HW fences to allow X / Y surface tiling / detiling.
> Newer GENs have to tile / detile such surface in software.
>
> To make test developer life easier this code adds buffer
> operations (short bufops) to use appropriate functions allowing
> copying linear buffer to BO and from BO to linear buffer
> regardless GPU generation and tiling within BO. For GENs having
> fences support preference is to use them if they are available
> (X / Y tiling is probed on bufops initalization).
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Imre Deak <imre.deak@intel.com>
> Cc: Katarzyna Dec <katarzyna.dec@intel.com>

[snip]

> +/* Generations 9 - 11 */
> +{
> +	.gen_start         = 9,
> +	.gen_end           = 11,
> +	.supported_tiles   = TILE_NONE | TILE_X | TILE_Y | TILE_Yf,
> +	.hw_tiles          = TILE_X | TILE_Y,
> +	.linear_to         = copy_linear_to_cpu,
> +	.linear_to_x       = copy_linear_to_gtt,
> +	.linear_to_y       = copy_linear_to_gtt,
> +	.linear_to_yf      = copy_linear_to_yf,
> +	.to_linear         = copy_cpu_to_linear,
> +	.x_to_linear       = copy_gtt_to_linear,
> +	.y_to_linear       = copy_gtt_to_linear,
> +	.yf_to_linear      = copy_yf_to_linear,
> +},
> +/* Generation 12 */
> +{
> +	.gen_start         = 12,
> +	.gen_end           = 12,
> +	.supported_tiles   = TILE_NONE | TILE_X | TILE_Y | TILE_Yf | TILE_Ys,
> +	.linear_to         = copy_linear_to_wc,
> +	.linear_to_x       = copy_linear_to_x,
> +	.linear_to_y       = copy_linear_to_y,
> +	.linear_to_yf      = copy_linear_to_yf,
> +	.linear_to_ys      = NULL,               /* to be implemented */
> +	.to_linear         = copy_wc_to_linear,
> +	.x_to_linear       = copy_x_to_linear,
> +	.y_to_linear       = copy_y_to_linear,

Isn't it true that TGL which is Gen12 does support HW fences in ggtt?
Maybe it is ok to leave the default functions as these but perhaps we
should set the ggtt versions of the functions (same ag Gen11 above) if HW
tiling support is detected in buf_ops_get()?
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

      parent reply	other threads:[~2019-12-10  0:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-01 19:09 [igt-dev] [PATCH i-g-t v2 1/2] lib/intel_bufops: Introduce buffer operations Zbigniew Kempczyński
2019-12-01 19:09 ` [igt-dev] [PATCH i-g-t v2 2/2] tests/gem_render_copy: Add software tiling / detiling support Zbigniew Kempczyński
2019-12-01 19:36 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,v2,1/2] lib/intel_bufops: Introduce buffer operations Patchwork
2019-12-03  9:25 ` [igt-dev] [PATCH i-g-t v2 1/2] " Katarzyna Dec
2019-12-03  9:41   ` Katarzyna Dec
2019-12-03 17:05   ` Zbigniew Kempczyński
2019-12-03 17:46     ` Ville Syrjälä
2019-12-10  0:07 ` Dixit, Ashutosh [this message]

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=87muc1kppy.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=zbigniew.kempczynski@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