[patch] fix driver hang when vt switch with rotation

Keith Packard keithp at keithp.com
Tue Mar 11 11:34:09 PDT 2008


On Tue, 2008-03-11 at 16:56 +0800, Hong Liu wrote:

> diff --git a/src/i830_driver.c b/src/i830_driver.c
> index 854e377..5976ed8 100644
> --- a/src/i830_driver.c
> +++ b/src/i830_driver.c
> @@ -3205,6 +3205,17 @@ I830EnterVT(int scrnIndex, int flags)
>  	output->funcs->dpms(output, DPMSModeOff);
>     }
>  
> +   for (o = 0; o < config->num_crtc; o++) {
> +       xf86CrtcPtr crtc = config->crtc[o];
> +
> +       if (crtc->rotatedPixmap || crtc->rotatedData) {
> +	   crtc->funcs->shadow_destroy(crtc, crtc->rotatedPixmap,
> +		   			crtc->rotatedData);
> +	   crtc->rotatedPixmap = NULL;
> +	   crtc->rotatedData = NULL;
> +       }
> +   }
> +

Would it be better to free this on LeaveVT instead?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20080311/4c88f078/attachment.pgp>


More information about the xorg mailing list