[PATCH i-g-t v1 4/5] tests/intel/kms_psr2_sf: update to FBC support check
Vinod Govindapillai
vinod.govindapillai at intel.com
Thu Feb 20 12:21:30 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_psr2_sf.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index cd4226070..16acff4cd 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -1225,10 +1225,9 @@ igt_main
display_init(&data);
- if ((intel_display_ver(intel_get_drm_devid(data.drm_fd)) >= 20) &&
- (intel_fbc_supported_on_chipset(data.drm_fd, data.pipe))) {
+ if (intel_fbc_supported_on_chipset(data.drm_fd, data.pipe) &&
+ intel_fbc_psr_combo_supported(data.drm_fd))
data.fbc_flag = true;
- }
data.damage_area_count = MAX_DAMAGE_AREAS;
data.primary_format = DRM_FORMAT_XRGB8888;
--
2.43.0
More information about the igt-dev
mailing list