Skip to content
Commit cc1d0824 authored by Jim Qu's avatar Jim Qu Committed by Michel Dänzer
Browse files

Wait for pending scanout update before calling drmmode_crtc_scanout_free



There is a case that when set screen from reverse to normal, the old
scanout damage is freed in modesetting before scanout update handler,
so it causes segment fault issue.

Signed-off-by: default avatarJim Qu <Jim.Qu@amd.com>

[ Michel Dänzer: Only call drmmode_crtc_wait_pending_event before
  drmmode_crtc_scanout_free is actually called, slightly tweak commit
  message ]
Signed-off-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
(Ported from amdgpu commit 9f6a8905611b5b1d8fcd31bebbc9af7ca1355cc3)
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 413622bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment