Only call drmmode_scanout_free for non-GPU screens in LeaveVT
PATCH 1/1 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.
scanout pixmaps")
(Ported from radeon commit c9dd28cb0c9c3de676eadac61e727732510f6b9b)
--- src/amdgpu_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
src/amdgpu_kms.c +2 -1
@@ -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);
Signature · 6 lines
2.13.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20170627091832.23018-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Alex Deucher
Reviewed-byQuoted 10 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
Destroying the scanout buffers of GPU screens resulted in a crash when switching back to the Xorg VT.
Fixes b10ecdbd89b0 ("Use drmmode_crtc_scanout_* helpers for RandR 1.4scanout pixmaps")
(Ported from radeon commitc9dd28cb0c9c3de676eadac61e727732510f6b9b)Signed-off-by Michel Dänzer <[email protected]>
Quoted 21 lines
--- src/amdgpu_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)src/amdgpu_kms.c +2
-2@@ -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); --2.13.1
Quoted 4 lines
_______________________________________________
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