summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-09-20 17:35:40 +0200
committerMichel Dänzer <michel@daenzer.net>2018-09-26 12:32:14 +0200
commit0cd2c337d2c02b8ec2bd994d6124b4aaaad10741 (patch)
tree88d4bab0b14668082a76df76bcc14d21658d2fe2 /src/drmmode_display.h
parentac5b6f96e97aaf95f4e668b4057006b221cffaec (diff)
Handle pending scanout update in drmmode_crtc_scanout_free
We have to wait for a pending scanout flip or abort a pending scanout update, otherwise the corresponding event handler will likely crash after drmmode_crtc_scanout_free cleaned up the data structures. Fixes crash after VT switch while dedicated scanout pixmaps are enabled for any CRTC. Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index c245ae8..3988631 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -234,7 +234,7 @@ extern Bool drmmode_setup_colormap(ScreenPtr pScreen, ScrnInfoPtr pScrn);
extern void drmmode_crtc_scanout_destroy(drmmode_ptr drmmode,
struct drmmode_scanout *scanout);
-void drmmode_crtc_scanout_free(drmmode_crtc_private_ptr drmmode_crtc);
+void drmmode_crtc_scanout_free(xf86CrtcPtr crtc);
PixmapPtr drmmode_crtc_scanout_create(xf86CrtcPtr crtc,
struct drmmode_scanout *scanout,
int width, int height);