[PATCH i-g-t v2 05/12] lib/intel_bufops: Add Yf tiling

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Tue Jun 18 05:23:28 UTC 2024


Start supporting Yf tiling in xe as detection reveals it is Yf, not
Tile4.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 lib/intel_bufops.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
index 56e37d2da7..36b9aa2a8c 100644
--- a/lib/intel_bufops.c
+++ b/lib/intel_bufops.c
@@ -1697,8 +1697,6 @@ static struct buf_ops *__buf_ops_create(int fd, bool check_idempotency)
 		bops->y_to_linear = copy_y_to_linear;
 		bops->linear_to_tile4 = copy_linear_to_tile4;
 		bops->tile4_to_linear = copy_tile4_to_linear;
-		bops->linear_to_yf = NULL;
-		bops->yf_to_linear = NULL;
 		bops->linear_to_ys = NULL;
 		bops->ys_to_linear = NULL;
 
@@ -1954,6 +1952,10 @@ bool buf_ops_set_software_tiling(struct buf_ops *bops,
 		igt_debug("-> use SW on tiling 4\n");
 		break;
 
+	case I915_TILING_Yf:
+		igt_debug("-> use SW on tiling Yf\n");
+		break;
+
 	default:
 		igt_warn("Invalid tiling: %d\n", tiling);
 		was_changed = false;
-- 
2.34.1



More information about the igt-dev mailing list