Commit 76a8f9cf authored by Juha-Pekka Heikkilä's avatar Juha-Pekka Heikkilä

lib/igt_kms: reset plane alpha and blend in igt_plane_reset()

plane alpha and blend would affect other tests if left
in unexpected states

v2 (ville syrjälä): use "Pre-multiplied" as default for
Signed-off-by: Juha-Pekka Heikkilä's avatarJuha-Pekka Heikkila <>
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <>
parent 6d4d6949
Pipeline #25005 passed with stages
in 4 minutes and 21 seconds
......@@ -1781,6 +1781,13 @@ static void igt_plane_reset(igt_plane_t *plane)
if (igt_plane_has_prop(plane, IGT_PLANE_ROTATION))
igt_plane_set_prop_value(plane, IGT_PLANE_ROTATION, IGT_ROTATION_0);
if (igt_plane_has_prop(plane, IGT_PLANE_PIXEL_BLEND_MODE))
igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Pre-multiplied");
if (igt_plane_has_prop(plane, IGT_PLANE_ALPHA))
igt_plane_set_prop_value(plane, IGT_PLANE_ALPHA, 0xffff);
igt_plane_clear_prop_changed(plane, IGT_PLANE_IN_FENCE_FD);
plane->values[IGT_PLANE_IN_FENCE_FD] = ~0ULL;
plane->gem_handle = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment