summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index bfc13010..f5659664 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -71,6 +71,12 @@ struct drmmode_fb {
uint32_t handle;
};
+enum drmmode_scanout_status {
+ DRMMODE_SCANOUT_OK,
+ DRMMODE_SCANOUT_FLIP_FAILED = 1u << 0,
+ DRMMODE_SCANOUT_VBLANK_FAILED = 1u << 1,
+};
+
struct drmmode_scanout {
struct radeon_buffer *bo;
PixmapPtr pixmap;
@@ -90,6 +96,7 @@ typedef struct {
unsigned scanout_id;
uintptr_t scanout_update_pending;
Bool tear_free;
+ enum drmmode_scanout_status scanout_status;
PixmapPtr prime_scanout_pixmap;