Blame SOURCES/0025-xwayland-eglstream-Log-when-GL_OES_EGL_image-is-miss.patch

4c4b8b
From 0cb42b7de629e74afed9b19d47672cebfe08f12e Mon Sep 17 00:00:00 2001
4c4b8b
From: Olivier Fourdan <ofourdan@redhat.com>
4c4b8b
Date: Thu, 20 May 2021 16:46:33 +0200
4c4b8b
Subject: [PATCH xserver 25/27] xwayland/eglstream: Log when GL_OES_EGL_image
4c4b8b
 is missing
4c4b8b
MIME-Version: 1.0
4c4b8b
Content-Type: text/plain; charset=UTF-8
4c4b8b
Content-Transfer-Encoding: 8bit
4c4b8b
4c4b8b
That will dramatically affect performance, might as well log when we
4c4b8b
cannot use GL_OES_EGL_image with the NVIDIA closed-source driver.
4c4b8b
4c4b8b
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
4c4b8b
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
4c4b8b
(cherry picked from commit 34a58d7714025bc1043bf5282358406eb10e4b8e)
4c4b8b
---
4c4b8b
 hw/xwayland/xwayland-glamor-eglstream.c | 2 ++
4c4b8b
 1 file changed, 2 insertions(+)
4c4b8b
4c4b8b
diff --git a/hw/xwayland/xwayland-glamor-eglstream.c b/hw/xwayland/xwayland-glamor-eglstream.c
4c4b8b
index 5e89849ff..0affc954c 100644
4c4b8b
--- a/hw/xwayland/xwayland-glamor-eglstream.c
4c4b8b
+++ b/hw/xwayland/xwayland-glamor-eglstream.c
4c4b8b
@@ -1200,6 +1200,8 @@ xwl_glamor_eglstream_init_egl(struct xwl_screen *xwl_screen)
4c4b8b
             xwl_screen->glvnd_vendor = "nvidia";
4c4b8b
         else
4c4b8b
             ErrorF("DRI3 initialization failed. Performance will be affected.\n");
4c4b8b
+    } else {
4c4b8b
+        ErrorF("Driver lacks GL_OES_EGL_image, performance will be affected.\n");
4c4b8b
     }
4c4b8b
 
4c4b8b
     return TRUE;
4c4b8b
-- 
4c4b8b
2.31.1
4c4b8b