> -----Original Message-----
> From: amd-gfx [mailto:[email protected]] On Behalf
> Of Michel Dänzer
> Sent: Wednesday, June 21, 2017 11:41 PM
> To: [email protected]
> Subject: [PATCH xf86-video-ati] Only call drmmode_scanout_free for non-
> GPU screens in LeaveVT
> 
> From: Michel Dänzer <[email protected]>
> 
> Destroying the scanout buffers of GPU screens resulted in a crash when
> switching back to the Xorg VT.
> 
> Signed-off-by: Michel Dänzer <[email protected]>

Reviewed-by: Alex Deucher <[email protected]>

> ---
>  src/radeon_kms.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index c4bdfcfac..5637e7f8a 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -2478,7 +2478,8 @@ void
> RADEONLeaveVT_KMS(VT_FUNC_ARGS_DECL)
>      radeon_drop_drm_master(pScrn);
> 
>      xf86RotateFreeShadow(pScrn);
> -    drmmode_scanout_free(pScrn);
> +    if (!pScrn->is_gpu)
> +     drmmode_scanout_free(pScrn);
> 
>      xf86_hide_cursors (pScrn);
>      info->accel_state->XInited3D = FALSE;
> --
> 2.11.0
> 
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to