[PATCH i-g-t v1 2/5] tests/intel/kms_psr: update to FBC support check

Vinod Govindapillai vinod.govindapillai at intel.com
Thu Feb 20 12:21:28 UTC 2025


Utilize the library function to check if the FBC PSR combination
is supported in a platform and re-roder the condition check.

Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
---
 tests/intel/kms_psr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/intel/kms_psr.c b/tests/intel/kms_psr.c
index ad49c18f0..124d7be18 100644
--- a/tests/intel/kms_psr.c
+++ b/tests/intel/kms_psr.c
@@ -823,10 +823,9 @@ igt_main
 		data.bops = buf_ops_create(data.drm_fd);
 		igt_display_require(&data.display, data.drm_fd);
 		igt_require_f(output_supports_psr(&data), "Sink does not support PSR/PSR2/PR\n");
-		if ((intel_display_ver(intel_get_drm_devid(data.drm_fd)) >= 20) &&
-		    (intel_fbc_supported_on_chipset(data.drm_fd, pipe))) {
+		if (intel_fbc_supported_on_chipset(data.drm_fd, pipe) &&
+		    intel_fbc_psr_combo_supported(data.drm_fd))
 			data.fbc_flag = true;
-		}
 	}
 
 	for (y = 0; y < ARRAY_SIZE(fbc_status); y++) {
-- 
2.43.0



More information about the igt-dev mailing list