summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-05-02 11:47:58 +0900
committerMichel Dänzer <michel@daenzer.net>2017-05-11 18:52:43 +0900
commit7dc68e26755466f9056f8c72195ab8690660693d (patch)
tree63b603b5d280784d5fdc024bb525a51d428afdd7 /src/drmmode_display.h
parent55e513b978b2afc52b7cafc5bfcb0d1dc78d75f6 (diff)
Simplify tracking of PRIME scanout pixmap
Remember the shared pixmap passed to drmmode_set_scanout_pixmap for each CRTC, and just compare against that. Fixes leaving stale entries in ScreenRec::pixmap_dirty_list under some circumstances, which would usually result in use-after-free and a crash down the line. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index 14d1cb03..df2c4b7b 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -92,6 +92,9 @@ typedef struct {
unsigned scanout_id;
Bool scanout_update_pending;
Bool tear_free;
+
+ PixmapPtr prime_scanout_pixmap;
+
int dpms_mode;
/* For when a flip is pending when DPMS off requested */
int pending_dpms_mode;