mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Only call drmmode_scanout_free for non-GPU screens in LeaveVT
Destroying the scanout buffers of GPU screens resulted in a crash when
switching back to the Xorg VT.
Fixes: b10ecdbd89 ("Use drmmode_crtc_scanout_* helpers for RandR 1.4
scanout pixmaps")
(Ported from radeon commit c9dd28cb0c9c3de676eadac61e727732510f6b9b)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1975,7 +1975,8 @@ void AMDGPULeaveVT_KMS(VT_FUNC_ARGS_DECL)
|
||||
amdgpu_drop_drm_master(pScrn);
|
||||
|
||||
xf86RotateFreeShadow(pScrn);
|
||||
drmmode_scanout_free(pScrn);
|
||||
if (!pScrn->is_gpu)
|
||||
drmmode_scanout_free(pScrn);
|
||||
|
||||
xf86_hide_cursors(pScrn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user