diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 143294a..b625250 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -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);