drm/atomic-helper: Also update legacy dpms state
Subsystems (2)
PATCH 1/1 drm/atomic-helper: Also update legacy dpms state
Avoids legacy userspace/code getting confused when dpms doesn't reflect reality of what's going on.
Signed-off-by Daniel Vetter <[email protected]>
--- drivers/gpu/drm/drm_atomic_helper.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/drm_atomic_helper.c +5 -0
@@ -661,6 +661,11 @@ drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, connector->encoder = connector->state->best_encoder; connector->encoder->crtc = connector->state->crtc; + +if (connector->state->crtc->state->active) + connector->dpms =DRM_MODE_DPMS_ON ; +else + connector->dpms =DRM_MODE_DPMS_OFF ; }/* set legacy state in the crtc structure */
Signature · 6 lines
2.1.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Daniel Vetter
Avoids legacy userspace/code getting confused when dpms doesn't reflect reality of what's going on.
Signed-off-by Daniel Vetter <[email protected]>
Reviewed-by Daniel Stone <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 7 lines · Daniel Stone
Quoted 4 lines · Daniel Vetter
Avoids legacy userspace/code getting confused when dpms doesn't reflect reality of what's going on.
Signed-off-by Daniel Vetter <[email protected]>Reviewed-by Daniel Stone <[email protected]>
Applied to drm-misc, thanks for the review.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx