[PATCH xf86-video-ati] Only call drmmode_scanout_free for non-GPU screens in LeaveVT
Deucher, Alexander
Alexander.Deucher at amd.com
Thu Jun 22 12:22:55 UTC 2017
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Michel Dänzer
> Sent: Wednesday, June 21, 2017 11:41 PM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH xf86-video-ati] Only call drmmode_scanout_free for non-
> GPU screens in LeaveVT
>
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Destroying the scanout buffers of GPU screens resulted in a crash when
> switching back to the Xorg VT.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> 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
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list