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.
--- src/radeon_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
src/radeon_kms.c +2 -1
@@ -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;
Signature · 6 lines
2.11.0 _______________________________________________ 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): 20170622034055.3024-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org
Deucher, Alexander
Reviewed-by Alex DeucherQuoted 8 lines
-----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 calldrmmode_scanout_freefor non- GPU screens in LeaveVT
Quoted 6 lines
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]>
Quoted 19 lines
--- src/radeon_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)src/radeon_kms.c +2
-1@@ -2478,7 +2478,8 @@ voidRADEONLeaveVT_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;
Quoted 7 lines
--
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