[PATCH xf86-video-ati] Only call drmmode_scanout_free for non-GPU screens in LeaveVT
Michel Dänzer
michel at daenzer.net
Thu Jun 22 03:40:55 UTC 2017
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>
---
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
More information about the amd-gfx
mailing list