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

Joshi, Kunal1 kunal1.joshi at intel.com
Tue Feb 25 09:14:09 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_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++) {


More information about the igt-dev mailing list