diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2021-11-16 20:23:42 +0200 |
---|---|---|
committer | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2021-12-23 10:09:06 +0200 |
commit | 8d1a587be11fb62e32fad1d29346fb78f4d9e499 (patch) | |
tree | 5dfebb79a848ccdb5e86c8de747ad9d1bdfe2f34 /tests/kms_plane_multiple.c | |
parent | 704a1a42db2fad72c382e95c9da200b5bde5e5fc (diff) |
tests/kms_plane_multiple: Use same modifier for reference crc as for test crc
Create reference crc with same modifier as is used for testing. This
will reduce non test related anomalies.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_plane_multiple.c')
-rw-r--r-- | tests/kms_plane_multiple.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/kms_plane_multiple.c b/tests/kms_plane_multiple.c index 95e0d72a..ebadc14b 100644 --- a/tests/kms_plane_multiple.c +++ b/tests/kms_plane_multiple.c @@ -109,9 +109,12 @@ get_reference_crc(data_t *data, igt_output_t *output, enum pipe pipe, mode = igt_output_get_mode(output); + igt_skip_on(!igt_plane_has_format_mod(data->plane[primary->index], + DRM_FORMAT_XRGB8888, modifier)); + igt_create_color_fb(data->drm_fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, - DRM_FORMAT_MOD_LINEAR, + modifier, color->red, color->green, color->blue, &data->fb[primary->index]); |