From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>,
igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 10/12] lib/intel_bufops: Drop Tile4 swizzling
Date: Mon, 17 Jun 2024 14:17:40 +0300 [thread overview]
Message-ID: <b7216612-506d-4bdc-b7b9-bd57b86b6303@gmail.com> (raw)
In-Reply-To: <20240527073345.54729-11-zbigniew.kempczynski@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
On 27.5.2024 10.33, Zbigniew Kempczyński wrote:
> Swizzling is used only on older platforms and for X and Y tilings.
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> lib/intel_bufops.c | 38 +++++++-------------------------------
> 1 file changed, 7 insertions(+), 31 deletions(-)
>
> diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
> index eb367be2f3..d0f6ab481f 100644
> --- a/lib/intel_bufops.c
> +++ b/lib/intel_bufops.c
> @@ -121,7 +121,6 @@ struct buf_ops {
> uint32_t supported_hw_tiles;
> uint32_t swizzle_x;
> uint32_t swizzle_y;
> - uint32_t swizzle_tile4;
> bo_copy linear_to;
> bo_copy linear_to_x;
> bo_copy linear_to_y;
> @@ -654,7 +653,7 @@ static void copy_linear_to_tile4(struct buf_ops *bops, struct intel_buf *buf,
> uint32_t *linear)
> {
> DEBUGFN();
> - __copy_linear_to(bops->fd, buf, linear, I915_TILING_4, bops->swizzle_tile4);
> + __copy_linear_to(bops->fd, buf, linear, I915_TILING_4, 0);
> }
>
> static void __copy_to_linear(int fd, struct intel_buf *buf,
> @@ -1531,7 +1530,7 @@ void intel_buf_draw_pattern(struct buf_ops *bops, struct intel_buf *buf,
> #define DEFAULT_BUFOPS(__gen_start, __gen_end) \
> .gen_start = __gen_start, \
> .gen_end = __gen_end, \
> - .supported_hw_tiles = TILE_X | TILE_Y | TILE_4, \
> + .supported_hw_tiles = TILE_X | TILE_Y, \
> .linear_to = copy_linear_to_wc, \
> .linear_to_x = copy_linear_to_gtt, \
> .linear_to_y = copy_linear_to_gtt, \
> @@ -1586,8 +1585,6 @@ static bool probe_hw_tiling(struct buf_ops *bops, uint32_t tiling,
> bops->swizzle_x = buf_swizzle;
> else if (tiling == I915_TILING_Y)
> bops->swizzle_y = buf_swizzle;
> - else if (tiling == I915_TILING_4)
> - bops->swizzle_tile4 = buf_swizzle;
>
> *swizzling_supported = buf_swizzle == phys_swizzle;
> }
> @@ -1754,36 +1751,15 @@ static struct buf_ops *__buf_ops_create(int fd, bool check_idempotency)
> }
> }
>
> - if (is_hw_tiling_supported(bops, I915_TILING_4)) {
> - bool swizzling_supported;
> - bool supported = probe_hw_tiling(bops, I915_TILING_4,
> - &swizzling_supported);
> -
> - if (!swizzling_supported) {
> - igt_debug("Swizzling for 4 is not supported\n");
> - bops->supported_tiles &= ~TILE_4;
> - }
> -
> - igt_debug("4 fence support: %s\n", bool_str(supported));
> - if (!supported) {
> - bops->supported_hw_tiles &= ~TILE_4;
> - bops->linear_to_tile4 = copy_linear_to_tile4;
> - bops->tile4_to_linear = copy_tile4_to_linear;
> - }
> - }
> -
> /* Disable other tiling format functions if not supported */
> - if (!is_tiling_supported(bops, I915_TILING_Yf)) {
> + if (!is_tiling_supported(bops, I915_TILING_Yf))
> igt_debug("Yf format not supported\n");
> - bops->linear_to_yf = NULL;
> - bops->yf_to_linear = NULL;
> - }
>
> - if (!is_tiling_supported(bops, I915_TILING_Ys)) {
> + if (!is_tiling_supported(bops, I915_TILING_Ys))
> igt_debug("Ys format not supported\n");
> - bops->linear_to_ys = NULL;
> - bops->ys_to_linear = NULL;
> - }
> +
> + if (!is_tiling_supported(bops, I915_TILING_4))
> + igt_debug("Tile4 format not supported\n");
>
> if (check_idempotency) {
> idempotency_selftest(bops, I915_TILING_X);
next prev parent reply other threads:[~2024-06-17 11:17 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-27 7:33 [PATCH i-g-t 00/12] Introduce intel_tiling_detect tool Zbigniew Kempczyński
2024-05-27 7:33 ` [PATCH i-g-t 01/12] lib/intel_bufops: Fix offset returned for Tile4 Zbigniew Kempczyński
2024-06-03 7:26 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 02/12] lib/intel_bufops: Fix mapping/unmapping for i915 and xe Zbigniew Kempczyński
2024-06-03 7:31 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 03/12] lib/intel_bufops: Add linear-to-none copy path Zbigniew Kempczyński
2024-06-17 11:16 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 04/12] lib/intel_bufops: Add Tile4 in linear_to and to_linear helpers Zbigniew Kempczyński
2024-06-17 11:16 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 05/12] lib/intel_bufops: Add Yf tiling Zbigniew Kempczyński
2024-06-17 11:16 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 06/12] lib/intel_blt: Add Yf tiling in block-copy Zbigniew Kempczyński
2024-06-17 11:16 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 07/12] lib/intel_bufops: Add Ys tiling in linear_to and to_linear path Zbigniew Kempczyński
2024-06-17 11:16 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 08/12] lib/intel_bufops: Drop unnecessary Tile4 function assignment Zbigniew Kempczyński
2024-06-17 11:16 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 09/12] lib/intel_bufops: Preparation for adding software tiling for Tile64 Zbigniew Kempczyński
2024-06-17 11:17 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 10/12] lib/intel_bufops: Drop Tile4 swizzling Zbigniew Kempczyński
2024-06-17 11:17 ` Juha-Pekka Heikkila [this message]
2024-05-27 7:33 ` [PATCH i-g-t 11/12] lib/intel_bufops: Don't disable x and y on platforms without swizzling Zbigniew Kempczyński
2024-06-17 16:43 ` Juha-Pekka Heikkila
2024-05-27 7:33 ` [PATCH i-g-t 12/12] tools/intel_tiling_detect: Introduce tiling detection tool Zbigniew Kempczyński
2024-06-17 19:21 ` Juha-Pekka Heikkila
2024-06-18 4:51 ` Zbigniew Kempczyński
2024-06-17 19:46 ` Kamil Konieczny
2024-06-18 5:15 ` Zbigniew Kempczyński
2024-05-27 18:40 ` ✓ Fi.CI.BAT: success for Introduce intel_tiling_detect tool Patchwork
2024-05-27 18:45 ` ✓ CI.xeBAT: " Patchwork
2024-05-28 7:29 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-05-28 7:46 ` Zbigniew Kempczyński
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=b7216612-506d-4bdc-b7b9-bd57b86b6303@gmail.com \
--to=juhapekka.heikkila@gmail.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