[igt-dev] [PATCH i-g-t 4/8] tools/intel_watermark: Reduce the number of planes for rkl/adls/adlp

Ville Syrjala ville.syrjala at linux.intel.com
Wed Apr 14 02:27:50 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Modern platforms have just 5 universal planes + cursor per pipe..

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tools/intel_watermark.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index 4a5764b59677..ff373fdb0c6d 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -135,7 +135,9 @@ static int skl_num_planes(uint32_t d, int pipe)
 {
 	int gen = intel_gen(d);
 
-	if (gen >= 11)
+	if (gen >= 13 || IS_ALDERLAKE_S(d) || IS_ROCKETLAKE(d))
+		return 6;
+	else if (gen >= 11)
 		return 8;
 	else if (gen == 10 || IS_GEMINILAKE(d))
 		return 5;
@@ -149,7 +151,9 @@ static int skl_max_planes(uint32_t d)
 {
 	int gen = intel_gen(d);
 
-	if (gen >= 11)
+	if (gen >= 13 || IS_ALDERLAKE_S(d) || IS_ROCKETLAKE(d))
+		return 6;
+	else if (gen >= 11)
 		return 8;
 	else if (gen == 10 || IS_GEMINILAKE(d) || IS_BROXTON(d))
 		return 5;
-- 
2.26.3



More information about the igt-dev mailing list