@@ -1316,6 +1316,14 @@ static int igt_drm_plane_commit(igt_plane_t *plane,
igt_assert(igt_plane_supports_rotation(plane) ||
!plane->rotation_changed);
+ if (plane->rotation_changed) {
+ ret = igt_plane_set_property(plane, plane->rotation_property,
+ plane->rotation);
+
+ plane->rotation_changed = false;
+ CHECK_RETURN(ret, fail_on_error);
+ }
+
fb_id = igt_plane_get_fb_id(plane);
crtc_id = output->config.crtc->crtc_id;
@@ -1377,14 +1385,6 @@ static int igt_drm_plane_commit(igt_plane_t *plane,
plane->position_changed = false;
plane->size_changed = false;
- if (plane->rotation_changed) {
- ret = igt_plane_set_property(plane, plane->rotation_property,
- plane->rotation);
-
- plane->rotation_changed = false;
- CHECK_RETURN(ret, fail_on_error);
- }
-
return 0;
}