Sfoglia il codice sorgente

drm/fb-helper: Set plane rotation directly

The point behind standardizing properties into core drm state
structures is also that internal code looks prettiers. Take advantage
of that and set rotation directly in the fbdev atomic code.

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1445012594-25988-1-git-send-email-daniel.vetter@ffwll.ch
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Daniel Vetter 10 anni fa
parent
commit
16e910df19
1 ha cambiato i file con 1 aggiunte e 5 eliminazioni
  1. 1 5
      drivers/gpu/drm/drm_fb_helper.c

+ 1 - 5
drivers/gpu/drm/drm_fb_helper.c

@@ -360,11 +360,7 @@ retry:
 			goto fail;
 			goto fail;
 		}
 		}
 
 
-		ret = drm_atomic_plane_set_property(plane, plane_state,
-				dev->mode_config.rotation_property,
-				BIT(DRM_ROTATE_0));
-		if (ret != 0)
-			goto fail;
+		plane_state->rotation = BIT(DRM_ROTATE_0);
 
 
 		/* disable non-primary: */
 		/* disable non-primary: */
 		if (plane->type == DRM_PLANE_TYPE_PRIMARY)
 		if (plane->type == DRM_PLANE_TYPE_PRIMARY)