[PATCH i-g-t 4/4] tests/kms_dirtyfb: ensure plane size is within fbc supported limit
Cavitt, Jonathan
jonathan.cavitt at intel.com
Fri Jun 7 20:44:19 UTC 2024
-----Original Message-----
From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Vinod Govindapillai
Sent: Friday, June 7, 2024 7:58 AM
To: igt-dev at lists.freedesktop.org
Cc: Govindapillai, Vinod <vinod.govindapillai at intel.com>; Heikkila, Juha-pekka <juha-pekka.heikkila at intel.com>; Hogander, Jouni <jouni.hogander at intel.com>
Subject: [PATCH i-g-t 4/4] tests/kms_dirtyfb: ensure plane size is within fbc supported limit
>
> When FBC tests are performed, ensure that plane size is within the
> FBC supported plane size limit. Skip the iteration if the plane
> size is bigger that FBC enforced restrictions.
>
> Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt
> ---
> tests/intel/kms_dirtyfb.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
> index 2a32fab56..83042e206 100644
> --- a/tests/intel/kms_dirtyfb.c
> +++ b/tests/intel/kms_dirtyfb.c
> @@ -102,7 +102,14 @@ static bool check_support(data_t *data)
> case FEATURE_NONE:
> return true;
> case FEATURE_FBC:
> - return intel_fbc_supported_on_chipset(data->drm_fd, data->pipe);
> + drmModeModeInfo *mode = igt_output_get_mode(data->output);
> +
> + if (!intel_fbc_supported_on_chipset(data->drm_fd, data->pipe))
> + return false;
> +
> + return intel_fbc_plane_size_supported(data->drm_fd,
> + mode->hdisplay,
> + mode->vdisplay);
> case FEATURE_PSR:
> if (data->output->config.connector->connector_type !=
> DRM_MODE_CONNECTOR_eDP)
> --
> 2.34.1
>
>
More information about the igt-dev
mailing list