[PATCH i-g-t v2 5/5] tests/kms_dirtyfb: ensure plane size is within fbc supported limit
Vinod Govindapillai
vinod.govindapillai at intel.com
Mon Jun 10 11:59:41 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.
v2: update the usage of drmmmodeinfo
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com> #v1
Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
---
tests/intel/kms_dirtyfb.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
index c0eacda9b..75047ec63 100644
--- a/tests/intel/kms_dirtyfb.c
+++ b/tests/intel/kms_dirtyfb.c
@@ -102,7 +102,12 @@ 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);
+ if (!intel_fbc_supported_on_chipset(data->drm_fd, data->pipe))
+ return false;
+
+ return intel_fbc_plane_size_supported(data->drm_fd,
+ data->mode->hdisplay,
+ data->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