diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-03-23 17:27:27 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-03-24 17:59:27 +0900 |
commit | d21ac4669a8b2cdd4eec5e5a94d1950b7423b8b5 (patch) | |
tree | a67fafe9ef9864fced0f1e6e29f85be18fa80ff1 | |
parent | eb1a2c57e6c45d7ca57b2e2be643194243b7aae1 (diff) |
DRI3 only works with acceleration
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94214
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | src/radeon_kms.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 27d9fed9..d6a9aa9c 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -1713,13 +1713,16 @@ Bool RADEONScreenInit_KMS(SCREEN_INIT_ARGS_DECL) value = FALSE; from = X_DEFAULT; - if (xf86GetOptValBool(info->Options, OPTION_DRI3, &value)) - from = X_CONFIG; - if (xf86GetOptValInteger(info->Options, OPTION_DRI, &driLevel) && - (driLevel == 2 || driLevel == 3)) { - from = X_CONFIG; - value = driLevel == 3; + if (!info->r600_shadow_fb) { + if (xf86GetOptValBool(info->Options, OPTION_DRI3, &value)) + from = X_CONFIG; + + if (xf86GetOptValInteger(info->Options, OPTION_DRI, &driLevel) && + (driLevel == 2 || driLevel == 3)) { + from = X_CONFIG; + value = driLevel == 3; + } } if (value) { |