From d9f7dd7212b6306350c8b4c6e0b1959f384fb272 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sun, 19 Jun 2022 16:34:53 -0500 Subject: 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. --- video/out/x11_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 4ceb7ba3d1..f041d594ec 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -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); -- cgit v1.2.3