[igt-dev] [PATCH i-g-t v7 2/9] lib/i915_blt: Add T_YFMAJOR tiling type

Karolina Stolarek karolina.stolarek at intel.com
Fri Jan 20 10:14:02 UTC 2023


Introduce a tiling type used by older generation in fast copy command.
Update functions that use blt_tiling_type to handle this type.

Signed-off-by: Karolina Stolarek <karolina.stolarek at intel.com>
---
 lib/i915/i915_blt.c | 10 ++++++++++
 lib/i915/i915_blt.h |  1 +
 2 files changed, 11 insertions(+)

diff --git a/lib/i915/i915_blt.c b/lib/i915/i915_blt.c
index 694c818c..a1abc2eb 100644
--- a/lib/i915/i915_blt.c
+++ b/lib/i915/i915_blt.c
@@ -253,6 +253,9 @@ const char *blt_tiling_name(enum blt_tiling_type tiling)
 	case T_YMAJOR: return "ymajor";
 	case T_TILE4:  return "tile4";
 	case T_TILE64: return "tile64";
+	case T_YFMAJOR: return "yfmajor";
+	default:
+		break;
 	}
 
 	igt_warn("invalid tiling passed: %d\n", tiling);
@@ -267,6 +270,8 @@ static int __block_tiling(enum blt_tiling_type tiling)
 	case T_YMAJOR: return 1;
 	case T_TILE4:  return 2;
 	case T_TILE64: return 3;
+	default:
+		break;
 	}
 
 	igt_warn("invalid tiling passed: %d\n", tiling);
@@ -898,8 +903,13 @@ static int __fast_tiling(enum blt_tiling_type tiling)
 	case T_XMAJOR: return 1;
 	case T_YMAJOR: return 2;
 	case T_TILE4:  return 2;
+	case T_YFMAJOR: return 2;
 	case T_TILE64: return 3;
+	default:
+		break;
 	}
+
+	igt_warn("invalid tiling passed: %d\n", tiling);
 	return 0;
 }
 
diff --git a/lib/i915/i915_blt.h b/lib/i915/i915_blt.h
index 747eb093..bc375aba 100644
--- a/lib/i915/i915_blt.h
+++ b/lib/i915/i915_blt.h
@@ -65,6 +65,7 @@ enum blt_tiling_type {
 	T_YMAJOR,
 	T_TILE4,
 	T_TILE64,
+	T_YFMAJOR,
 };
 
 enum blt_compression {
-- 
2.25.1



More information about the igt-dev mailing list