summaryrefslogtreecommitdiff
path: root/src/amdgpu_drv.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-06-09 12:39:21 +0900
committerMichel Dänzer <michel@daenzer.net>2015-06-15 17:25:24 +0900
commitc57da33308a81fa575179238a0415abcb8b34908 (patch)
treea1f7d7c794c5c03af079952fd59d766393a97294 /src/amdgpu_drv.h
parentbd0aca09770543fa77b934e1728a832c9c2dc90c (diff)
Add Option "TearFree"
Avoids tearing by flipping between two scanout BOs per (non-rotated) CRTC (Cherry picked from radeon commit 43159ef400c3b18b9f4d3e6fa1c4aef2d60d38fe) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_drv.h')
-rw-r--r--src/amdgpu_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amdgpu_drv.h b/src/amdgpu_drv.h
index 55be626..e7bdf7f 100644
--- a/src/amdgpu_drv.h
+++ b/src/amdgpu_drv.h
@@ -143,6 +143,7 @@ typedef enum {
OPTION_ACCEL_METHOD,
OPTION_DRI3,
OPTION_SHADOW_PRIMARY,
+ OPTION_TEAR_FREE,
} AMDGPUOpts;
#define AMDGPU_VSYNC_TIMEOUT 20000 /* Maximum wait for VSYNC (in usecs) */
@@ -205,6 +206,7 @@ typedef struct {
uint_fast32_t gpu_synced;
Bool use_glamor;
Bool shadow_primary;
+ Bool tear_free;
/* general */
OptionInfoPtr Options;