summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-03-23 17:23:31 +0900
committerMichel Dänzer <michel@daenzer.net>2016-03-23 17:23:31 +0900
commiteb1a2c57e6c45d7ca57b2e2be643194243b7aae1 (patch)
treed611ef0d0c79732c8407d15d99a4829bdc3d1f6e /src/radeon_kms.c
parentd670c5c9851b4eff21c845d26c7d7e4eb5ee0fa9 (diff)
TearFree can only work with acceleration
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index d89c3760..27d9fed9 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1278,11 +1278,13 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
}
#endif
- info->tear_free = xf86ReturnOptValBool(info->Options, OPTION_TEAR_FREE,
- FALSE);
+ if (!info->r600_shadow_fb) {
+ info->tear_free = xf86ReturnOptValBool(info->Options, OPTION_TEAR_FREE,
+ FALSE);
- if (info->tear_free)
- xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "TearFree enabled\n");
+ if (info->tear_free)
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "TearFree enabled\n");
+ }
if (info->dri2.pKernelDRMVersion->version_minor >= 8) {
Bool sw_cursor = xf86ReturnOptValBool(info->Options, OPTION_SW_CURSOR, FALSE);