mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
DRI3 only works with acceleration
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94214 (Ported from radeon commit d21ac4669a8b2cdd4eec5e5a94d1950b7423b8b5) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
3177fe817a
commit
3fb6280ab3
@@ -1221,13 +1221,16 @@ Bool AMDGPUScreenInit_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->use_glamor) {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user