Skip to content
Snippets Groups Projects
Commit ae2eb9e1 authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

tests/kms_big_fb: Check plane capabilities properly in async flip tests


Currently IVB only supports 64bpp formats on the sprite planes
but not on the primary plane. This means
igt_display_has_format_mod(64bpp)->true and thus we will try to
run the 64bpp async flip tests. But since that test uses the
primary plane we will fail to actually enable the plane. Fix
this by making sure the plane actually supports the format (and
let's also check the rotation for good measure).

Reviewed-by: default avatarJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
parent 2b30115e
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -489,7 +489,12 @@ max_hw_stride_async_flip_test(data_t *data)
primary = igt_output_get_plane_type(data->output, DRM_PLANE_TYPE_PRIMARY);
igt_require(igt_plane_has_rotation(primary, data->rotation));
if (!igt_plane_has_format_mod(primary, data->format, data->modifier))
return false;
if (!igt_plane_has_rotation(primary, data->rotation))
return false;
igt_plane_set_rotation(primary, data->rotation);
igt_require_f(igt_display_try_commit2(&data->display, COMMIT_ATOMIC) == 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment