On Mon, May 11, 2015 at 04:24:40PM +0200, Maarten Lankhorst wrote:
> @@ -6079,26 +6059,29 @@ void intel_crtc_control(struct drm_crtc *crtc, bool 
> enable)
>       enum intel_display_power_domain domain;
>       unsigned long domains;
>  
> +     if (enable == intel_crtc->active)
> +             return;
> +
> +     if (enable && !crtc->state->enable)
> +             return;

I think we only need to check for !state->enable here. Changing dpms while
the crtc is fully of is totally legit. And at least -modesetting loves to
do just that iirc.

I'll will be caught by state->active implying state->enable, but that's
hard to read imo.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to