diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-05-01 19:02:36 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-06-11 18:55:35 +0900 |
commit | 49f5b0bc301414df049e00d226034e3d6e56421b (patch) | |
tree | 3f62962e2187fe2ffaf6fd5770731ba22999e4ca /src/drmmode_display.h | |
parent | afab7839fc15722dbaa7203d00fe7f6ce5336b9d (diff) |
Don't attempt a DRI2/Present page flip while the other one is flipping
Fixes corrupted display and hangs when switching between DRI2 and DRI3
fullscreen apps, e.g. a compositor using DRI3 and a fullscreen app using
DRI2 or vice versa.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r-- | src/drmmode_display.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h index 2fdd3e0d..ca42c7d8 100644 --- a/src/drmmode_display.h +++ b/src/drmmode_display.h @@ -54,6 +54,9 @@ typedef struct { int count_crtcs; Bool delete_dp_12_displays; + + Bool dri2_flipping; + Bool present_flipping; } drmmode_rec, *drmmode_ptr; typedef struct { |