[PATCH i-g-t 09/12] lib/intel_bufops: Preparation for adding software tiling for Tile64
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Mon May 27 07:33:42 UTC 2024
Preliminary patch which adds necessary definitions for Tile64 in
bufops.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
lib/intel_bufops.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c
index 70f70bfa9e..eb367be2f3 100644
--- a/lib/intel_bufops.c
+++ b/lib/intel_bufops.c
@@ -93,6 +93,7 @@
#undef TILE_Yf
#undef TILE_Ys
#undef TILE_4
+#undef TILE_64
#define TILE_DEF(x) (1 << (x))
#define TILE_NONE TILE_DEF(I915_TILING_NONE)
@@ -101,6 +102,7 @@
#define TILE_Yf TILE_DEF(I915_TILING_Yf)
#define TILE_Ys TILE_DEF(I915_TILING_Ys)
#define TILE_4 TILE_DEF(I915_TILING_4)
+#define TILE_64 TILE_DEF(I915_TILING_64)
#define CCS_OFFSET(buf) (buf->ccs[0].offset)
#define CCS_SIZE(gen, buf) \
@@ -143,6 +145,7 @@ static const char *tiling_str(uint32_t tiling)
case I915_TILING_Yf: return "Yf";
case I915_TILING_Ys: return "Ys";
case I915_TILING_4: return "4";
+ case I915_TILING_64: return "64";
default: return "UNKNOWN";
}
}
--
2.34.1
More information about the igt-dev
mailing list