backend: glx: tentatively enable glFinish for NVIDIA

We use the __GL_YIELD=usleep workaround when we detect the NVIDIA
driver, so we could use glFinish without the NVIDIA driver taking all
the CPU.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2020-04-22 18:05:04 +01:00
parent 7043b2da5e
commit 0efdb6c2d9
4 changed files with 13 additions and 4 deletions

View File

@@ -1224,6 +1224,7 @@ static bool redirect_start(session_t *ps) {
// Re-detect driver since we now have a backend
ps->drivers = detect_driver(ps->c, ps->backend_data, ps->root);
apply_driver_workarounds(ps->drivers);
root_damaged(ps);
@@ -1965,6 +1966,7 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
// window; non experimental backends always need a target window
ps->drivers = detect_driver(ps->c, ps->backend_data, ps->root);
apply_driver_workarounds(ps->drivers);
// Initialize filters, must be preceded by OpenGL context creation
if (!ps->o.experimental_backends && !init_render(ps)) {