mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
native/gpu: Handle drmModeSetCrtc() failing gracefully
If drmModeSetCrtc() is called with no fb, mode or connectors for some
CRTC it may still fail, and we should handle that gracefully instead of
assuming it failed to set a non-disabled state.
Closes https://gitlab.gnome.org/GNOME/mutter/issues/70
(cherry picked from commit 6e953e2725
)
This commit is contained in:
parent
71cfb52ece
commit
a54976da15
@ -143,7 +143,10 @@ meta_gpu_kms_apply_crtc_mode (MetaGpuKms *gpu_kms,
|
|||||||
connectors, n_connectors,
|
connectors, n_connectors,
|
||||||
mode) != 0)
|
mode) != 0)
|
||||||
{
|
{
|
||||||
|
if (mode)
|
||||||
g_warning ("Failed to set CRTC mode %s: %m", crtc->current_mode->name);
|
g_warning ("Failed to set CRTC mode %s: %m", crtc->current_mode->name);
|
||||||
|
else
|
||||||
|
g_warning ("Failed to disable CRTC");
|
||||||
g_free (connectors);
|
g_free (connectors);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user