[PATCH i-g-t v3 4/5] tests/kms_dirtyfb: populate modeinfo before feature support check
Vinod Govindapillai
vinod.govindapillai at intel.com
Tue Jun 11 08:04:15 UTC 2024
Drmmmodeinfo is required to identify if there are any FBC size
restrictions applicable to identify FBC is supported for the
required test. So update drmmodeinfo early for each valid output.
v2: Fix patch description (Jonathan Cavitt)
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
---
tests/intel/kms_dirtyfb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/intel/kms_dirtyfb.c b/tests/intel/kms_dirtyfb.c
index 2a32fab56..c0eacda9b 100644
--- a/tests/intel/kms_dirtyfb.c
+++ b/tests/intel/kms_dirtyfb.c
@@ -180,8 +180,6 @@ static void prepare(data_t *data)
{
igt_plane_t *primary;
- data->mode = igt_output_get_mode(data->output);
-
igt_output_set_pipe(data->output, data->pipe);
data->pipe_crc = igt_pipe_crc_new(data->drm_fd, data->pipe,
@@ -328,6 +326,8 @@ igt_main
for_each_valid_output_on_pipe(&data.display,
data.pipe,
data.output) {
+ data.mode = igt_output_get_mode(data.output);
+
if (!check_support(&data))
continue;
--
2.34.1
More information about the igt-dev
mailing list