[PATCH i-g-t 4/4] tests/kms_dirtyfb: ensure plane size is within fbc supported limit
Vinod Govindapillai
vinod.govindapillai at intel.com
Fri Jun 7 14:57:32 UTC 2024
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>
---
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