summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-06-19 16:34:53 -0500
committerDudemanguy <random342@airmail.cc>2022-06-22 03:55:49 +0000
commitd9f7dd7212b6306350c8b4c6e0b1959f384fb272 (patch)
treeddcd9ad158d8bfffeca7b2f8eabaa0740d541dc7
parent230d490ecade2a7151a31973c13abaafdaba826f (diff)
downloadmpv-d9f7dd7212b6306350c8b4c6e0b1959f384fb272.tar.bz2
mpv-d9f7dd7212b6306350c8b4c6e0b1959f384fb272.tar.xz
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.
-rw-r--r--video/out/x11_common.c4
1 files changed, 3 insertions, 1 deletions
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);