summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2017-03-02 17:24:03 +0900
committerMichel Dänzer <michel@daenzer.net>2017-03-03 16:12:26 +0900
commitaf0b24c1aca4cba2692d5aa410e63cb536478dbe (patch)
tree4fb901c4c419cb97dce9165bfe8092dc78ac53cc /src/drmmode_display.h
parent77853f02e5b879e7042f55c672cf2d8e6955309f (diff)
Allow toggling TearFree at runtime via output property
Option "TearFree" now sets the default value of the output property. See the manpage update for details. TearFree is now enabled by default for outputs using rotation or other RandR transforms, and for RandR 1.4 slave outputs. (Ported from radeon commit 58cd1600057e41aade0106d4acf78e23eac6e44f) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index e9967a2..fa15a4f 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -85,6 +85,7 @@ typedef struct {
RegionRec scanout_last_region;
unsigned scanout_id;
Bool scanout_update_pending;
+ Bool tear_free;
int dpms_mode;
/* For when a flip is pending when DPMS off requested */
int pending_dpms_mode;
@@ -117,6 +118,7 @@ typedef struct {
drmmode_prop_ptr props;
int enc_mask;
int enc_clone_mask;
+ int tear_free;
} drmmode_output_private_rec, *drmmode_output_private_ptr;