From bc34dc9e24ff52389d89b6e31d15a27c21306bf3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 20 Oct 2021 11:28:29 +1100 Subject: [PATCH] [client] egl: blame NVIDIA if dmabuf fails on NVIDIA hardware NVIDIA still do not implement a complete/working DMABUF implementation yet advertise support. Best to tell the public to complain to NVIDIA instead of assuming it's a LG bug or an issue with their system. --- client/renderers/EGL/desktop.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index 26f68db3..3192d569 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -318,6 +318,14 @@ bool egl_desktopUpdate(EGL_Desktop * desktop, const FrameBuffer * frame, int dma } DEBUG_WARN("DMA update failed, disabling DMABUF imports"); + + const char * vendor = (const char *)glGetString(GL_VENDOR); + if (strstr(vendor, "NVIDIA")) + { + DEBUG_WARN("NVIDIA's DMABUF support is incomplete, please direct your complaints to NVIDIA"); + DEBUG_WARN("This is not a bug in Looking Glass"); + } + desktop->useDMA = false; egl_textureFree(&desktop->texture);