[i-g-t 1/4] lib/i915/intel_drrs: Fix igt helper to get drrs status

Bhanuprakash Modem bhanuprakash.modem at intel.com
Wed Dec 27 13:30:17 UTC 2023


intel_is_drrs_supported() helper is giving False if DRRS
supports on selected pipe which is not correct. Fix the
helper to give True if DRRS supports on selected pipe.

Fixes: c6f857e46 lib/i915/drrs: Add drrs helpers
Cc: Jouni Högander <jouni.hogander at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 lib/i915/intel_drrs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/i915/intel_drrs.c b/lib/i915/intel_drrs.c
index deaec90d3..25c15fc0f 100644
--- a/lib/i915/intel_drrs.c
+++ b/lib/i915/intel_drrs.c
@@ -32,7 +32,7 @@ bool intel_is_drrs_supported(int device, enum pipe pipe)
 	if (*buf == '\0')
 		return false;
 
-	return !strcasestr(buf, "DRRS enabled:");
+	return strcasestr(buf, "DRRS enabled:");
 }
 
 /**
-- 
2.40.0



More information about the igt-dev mailing list