[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 03/12] ui/console: egl-headless is compatible with non-gl liste
From: |
marcandre . lureau |
Subject: |
[PULL v2 03/12] ui/console: egl-headless is compatible with non-gl listeners |
Date: |
Tue, 15 Mar 2022 15:07:30 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Fix a regression introduced by commit 5e79d516e ("ui: split the GL
context in a different object").
Reported-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/egl-headless.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ui/egl-headless.c b/ui/egl-headless.c
index 9aff115280bc..7a30fd977765 100644
--- a/ui/egl-headless.c
+++ b/ui/egl-headless.c
@@ -170,6 +170,14 @@ static bool
egl_is_compatible_dcl(DisplayGLCtx *dgc,
DisplayChangeListener *dcl)
{
+ if (!dcl->ops->dpy_gl_update) {
+ /*
+ * egl-headless is compatible with all 2d listeners, as it blits the GL
+ * updates on the 2d console surface.
+ */
+ return true;
+ }
+
return dcl->ops == &egl_ops;
}
--
2.35.1.273.ge6ebfd0e8cbb
- [PULL v2 00/12] dbus console fixes, marcandre . lureau, 2022/03/15
- [PULL v2 01/12] ui/console: move check for compatible GL context, marcandre . lureau, 2022/03/15
- [PULL v2 02/12] ui/console: move dcl compatiblity check to a callback, marcandre . lureau, 2022/03/15
- [PULL v2 03/12] ui/console: egl-headless is compatible with non-gl listeners,
marcandre . lureau <=
- [PULL v2 04/12] ui/dbus: associate the DBusDisplayConsole listener with the given console, marcandre . lureau, 2022/03/15
- [PULL v2 05/12] ui/console: move console compatibility check to dcl_display_console(), marcandre . lureau, 2022/03/15
- [PULL v2 06/12] ui/shader: fix potential leak of shader on error, marcandre . lureau, 2022/03/15
- [PULL v2 07/12] ui/shader: free associated programs, marcandre . lureau, 2022/03/15
- [PULL v2 08/12] ui/console: add a dpy_gfx_switch callback helper, marcandre . lureau, 2022/03/15
- [PULL v2 09/12] ui/console: optionally update after gfx switch, marcandre . lureau, 2022/03/15
- [PULL v2 10/12] ui/dbus: fix texture sharing, marcandre . lureau, 2022/03/15
- [PULL v2 11/12] ui/dbus: do not send 2d scanout until gfx_update, marcandre . lureau, 2022/03/15
- [PULL v2 12/12] ui/console: call gfx_switch() even if the current scanout is GL, marcandre . lureau, 2022/03/15
- Re: [PULL v2 00/12] dbus console fixes, Peter Maydell, 2022/03/15