mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 18:20:05 +01:00
xf86: fix compat output selection for no output GPUs
This should work properly with dynamic outputs.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 37d956e3ac)
This commit is contained in:
parent
a2748aa6bd
commit
72ef659874
1 changed files with 2 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ xf86CrtcConfigInit(ScrnInfoPtr scrn, const xf86CrtcConfigFuncsRec * funcs)
|
|||
config = xnfcalloc(1, sizeof(xf86CrtcConfigRec));
|
||||
|
||||
config->funcs = funcs;
|
||||
config->compat_output = -1;
|
||||
|
||||
scrn->privates[xf86CrtcConfigPrivateIndex].ptr = config;
|
||||
}
|
||||
|
|
@ -1841,7 +1842,7 @@ SetCompatOutput(xf86CrtcConfigPtr config)
|
|||
if (compat >= 0) {
|
||||
config->compat_output = compat;
|
||||
}
|
||||
else {
|
||||
else if (config->compat_output >= 0 && config->compat_output < config->num_output) {
|
||||
/* Don't change the compat output when no valid outputs found */
|
||||
output = config->output[config->compat_output];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue