[PATCH xf86-video-amdgpu] Do not try to enable already enabled CRTCs in DPMS hook

Michel Dänzer michel at daenzer.net
Wed Jul 8 23:22:32 PDT 2015


On 09.07.2015 03:59, Piotr Redlewski wrote:
> (Ported from radeon commit a8ed62010d5012dfb27773595c446b217f3c00c5)
> 
> Signed-off-by: Piotr Redlewski <predlewski at gmail.com>
> ---
>  src/drmmode_display.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index 0f23296..7e0af1a 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -307,7 +307,7 @@ drmmode_crtc_dpms(xf86CrtcPtr crtc, int mode)
>  	if (!crtc->enabled || mode != DPMSModeOn)
>  		drmModeSetCrtc(drmmode->fd, drmmode_crtc->mode_crtc->crtc_id,
>  			       0, 0, 0, NULL, 0, NULL);
> -	else
> +	else if (drmmode_crtc->dpms_mode != DPMSModeOn)
>  		crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation,
>  					    crtc->x, crtc->y);
>  }
> 

Reviewed and pushed, thanks!


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-driver-ati mailing list