[igt-dev] [PATCH i-g-t 1/3] tools/intel_watermark: Deal with TGL planes

Ville Syrjala ville.syrjala at linux.intel.com
Wed Jul 15 15:05:40 UTC 2020


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

TGL has the same amount of planes as ICL. Make intel_watermark
aware of that fact.

TODO: RKL+ have less planes, but we have IS_RKL() atm...

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

diff --git a/tools/intel_watermark.c b/tools/intel_watermark.c
index 14d1ae0d80f7..0d4f655ca2a8 100644
--- a/tools/intel_watermark.c
+++ b/tools/intel_watermark.c
@@ -127,7 +127,7 @@ static char endis_ast(bool enabled)
 
 static int skl_num_planes(uint32_t d, int pipe)
 {
-	if (IS_GEN11(d))
+	if (IS_GEN12(d) || IS_GEN11(d))
 		return 8;
 	else if (IS_GEN10(d) || IS_GEMINILAKE(d))
 		return 5;
-- 
2.26.2



More information about the igt-dev mailing list