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:
Dudemanguy 2022-06-19 16:34:53 -05:00
parent 230d490eca
commit d9f7dd7212
1 changed files with 3 additions and 1 deletions

View File

@ -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);