https://bugs.kde.org/show_bug.cgi?id=522988
Bug ID: 522988
Summary: EGL_BAD_MATCH error on EGLImageKHR creation with Intel
Arc dGPU + iGPU on Wayland causes silent software
rendering fallback
Classification: Plasma
Product: kwin
Version First 6.7.2
Reported In:
Platform: KDE Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: egl
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Flags: Intel+, Mesa+
DESCRIPTION
On a system with Intel UHD 770 (iGPU, i915) and Intel Arc A770 (dGPU, xe), KWin
produces EGL_BAD_MATCH errors when creating EGLImageKHR followed by immediate
loss of EGL context. This appears to be caused by a GPU mismatch — GBM buffers
allocated on Arc/xe being imported into an EGL context bound to a different
device.
Unlike bug #515309 (NVIDIA, EGL_BAD_DISPLAY, hard crash), this manifests as a
silent fallback to software rendering (swrast/llvmpipe) rather than a KWin
crash. The result is:
* PipeWire screen capture falls back to SHM CPU copies at full 4K resolution
(near 0 FPS in OBS)
* OBS reports "Unable to open DRM render node"
* Mesa EGL context initializes as swrast instead of hardware accelerated
* All dmabuf import paths fail silently
JOURNAL LOG:
```
kwin_wayland: Error creating EGLImageKHR: "EGL_BAD_MATCH"
kwin_wayland: Could not delete render time query because no context is current
kwin_wayland: Could not delete render time query because no context is current
kwin_wayland: Could not delete render time query because no context is current
kwin_wayland: Could not delete render time query because no context is current
```
STEPS TO REPRODUCE
1. Have Intel iGPU (i915) and Intel Arc dGPU (xe) in same system
2. Connect display to Arc dGPU output
3. Boot into KDE Wayland session
4. Attempt any dmabuf buffer sharing (PipeWire screen capture, VA-API texture
import)
OBSERVED RESULT
EGL_BAD_MATCH on EGLImageKHR creation, EGL context lost, silent fallback to
software rendering for all GPU-accelerated paths.
EXPECTED RESULT
EGL context remains valid, dmabuf buffers shared correctly between KWin and
consumers like PipeWire/OBS.
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.3-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i5-13600K
Memory: 32 GB of RAM (31.1 GB usable)
Graphics Processor 1: Intel® Arc A770 (xe driver)
Graphics Processor 2: Intel® UHD Graphics 770 (i915 driver)
Mesa Version: 26.1.3
ADDITIONAL INFORMATION
* No issues on X11 session
* Related to bug #515309 — different GPU vendor (Intel Arc vs NVIDIA),
different error (EGL_BAD_MATCH vs EGL_BAD_DISPLAY), same root cause pattern of
multi-GPU EGL context/buffer mismatch on Wayland
* Arc display output works correctly (4K, correct refresh rate, KWin
compositing functional) — only dmabuf sharing paths are affected
See Also
bug #515309
--
You are receiving this mail because:
You are watching all bug changes.