mirror of https://github.com/mpv-player/mpv
x11: add nouveau to the xpresent whitelist
A user noted that this worked correctly (i.e. vsync jitter of 0) so go ahead and add it here as a safe driver for xpresent to use.
This commit is contained in:
parent
230d490eca
commit
d9f7dd7212
|
@ -420,9 +420,11 @@ static void xrandr_read(struct vo_x11_state *x11)
|
|||
bstr_lower(provider_name);
|
||||
int amd = bstr_find0(provider_name, "amd");
|
||||
int intel = bstr_find0(provider_name, "intel");
|
||||
int nouveau = bstr_find0(provider_name, "nouveau");
|
||||
int nvidia = bstr_find0(provider_name, "nvidia");
|
||||
int radeon = bstr_find0(provider_name, "radeon");
|
||||
x11->has_mesa = x11->has_mesa || amd >= 0 || intel >= 0 || radeon >= 0;
|
||||
x11->has_mesa = x11->has_mesa || amd >= 0 || intel >= 0 ||
|
||||
nouveau >= 0 || radeon >= 0;
|
||||
x11->has_nvidia = x11->has_nvidia || nvidia >= 0;
|
||||
}
|
||||
XRRFreeProviderResources(pr);
|
||||
|
|
Loading…
Reference in New Issue