Bug 476569 - kwin gles backend not working with ANGLE
Summary: kwin gles backend not working with ANGLE
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: egl (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-05 03:41 UTC by kde-yyds
Modified: 2023-11-06 16:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde-yyds 2023-11-05 03:41:16 UTC
I'm trying to run kwin using ANGLE. It provides libEGL that only supports gles. Compositing does not work. Please workaround it.
```
user@archlinux-114514 ~> export KWIN_COMPOSE=O2ES
user@archlinux-114514 ~> export QT_XCB_GL_INTEGRATION=xcb_egl
user@archlinux-114514 ~> export KWIN_OPENGL_INTERFACE=egl
user@archlinux-114514 ~> export LD_PRELOAD=/home/user/src/angle/out/Release/libEGL.so
user@archlinux-114514 ~> glmark2-es2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Google Inc. (AMD)
    GL_RENDERER:    ANGLE (AMD, Vulkan 1.3.246 (AMD Radeon Graphics (RADV RAPHAEL_MENDOCINO) (0x0000164E)), radv-23.1.6)
    GL_VERSION:     OpenGL ES 3.1.0 (ANGLE 2.1.1 git hash: 75c0b859a0ab)
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 10585 FrameTime: 0.094 ms
=======================================================
                                  glmark2 Score: 10584 
=======================================================
user@archlinux-114514 ~> kwin_x11 --replace
Cannot find EGLConfig, returning null config
Cannot find EGLConfig, returning null config
kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
kwin_scene_opengl: eglInitialize failed
kwin_scene_opengl: Error during eglInitialize  12296
kwin_core: choose config failed
kwin_core: Creating egl surface failed
kwin_scene_opengl: Creating the OpenGL rendering failed:  "Could not initialize rendering context"
```
Comment 1 Zamundaaa 2023-11-06 16:35:30 UTC
I'm quite certain that this is not possible. Angle almost certainly doesn't support running X11 compositors on it, and Qt needs to be specifically compiled for GLES support.