summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-05-01 18:54:16 +0900
committerMichel Dänzer <michel@daenzer.net>2015-07-08 17:26:29 +0900
commit802d33e474a82262d9cdf11b03568b0c4929cd0d (patch)
tree6569ee17840a6c16c37783c1f66615785415a4c6 /src/drmmode_display.h
parenta8ed62010d5012dfb27773595c446b217f3c00c5 (diff)
present: Fall back to modeset for unflip operation
It's not always possible to use the page flip ioctl for this, e.g. during DPMS off. We were previously just skipping the unflip in that case, which could result in hangs when setting DPMS off while a fullscreen Present app is running, e.g. at the GNOME3 lock screen. 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 ca42c7d8..ab6c5908 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -99,6 +99,9 @@ typedef struct {
uint32_t interpolated_vblanks;
uint16_t lut_r[256], lut_g[256], lut_b[256];
int prime_pixmap_x;
+
+ /* Modeset needed for DPMS on */
+ Bool need_modeset;
} drmmode_crtc_private_rec, *drmmode_crtc_private_ptr;
typedef struct {