[i-g-t,v1,4/5] tests/intel/kms_psr2_sf: update to FBC support check

Joshi, Kunal1 kunal1.joshi at intel.com
Tue Feb 25 09:17:15 UTC 2025


On 20-02-2025 17:51, Vinod Govindapillai wrote:
> 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>
Reviewed-by: Kunal Joshi <kunal1.joshi 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;


More information about the igt-dev mailing list