On 6/5/26 3:55 PM, Alexander Kanavin wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know
the content is safe.
On Fri, 5 Jun 2026 at 17:21, Quan Sun via lists.openembedded.org
<[email protected]> wrote:
I think I mentioned also in another email that this commit 52053b7e0a
("ui/sdl2: Implement dpy dmabuf functions") may have caused the issue,
which added the sdl2_set_hint_x11_force_egl() function:
static void sdl2_set_hint_x11_force_egl(void)
This is correct; I've confirmed it by adding a revert and re-running the test.
The above function probes whether EGL is available on the X display. If
eglGetDisplay() returns EGL_NO_DISPLAY (which can happen with llvmpipe on
certain VNC configurations, for example), the hint is never set, and SDL
falls back to GLX.
GLX then tries DRI3, finds only the vgem driver (no real GPU), and crashes.
In QEMU 10.2.0, this function didn't exist — SDL would use whatever GL
backend
was available (GLX with software rendering via llvmpipe worked fine because
it didn't attempt DRI3).
Possible Fixes could be: Setting the EGL hint unconditionally when on
X11 (remove the probe):
static void sdl2_set_hint_x11_force_egl(void)
{
#if defined(SDL_HINT_VIDEO_X11_FORCE_EGL) && defined(CONFIG_OPENGL) &&
defined(CONFIG_X11)
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
#endif
}
All of this is yet more AI-generated nonsense, and none of it is true.
Quan, I appreciate you want to help, but please do not copy paste AI
slop without carefully checking its claims first. And if you do, make
it clear that you are providing 'AI advice'.
Otherwise it only multiplies confusion, and damages your own reputation.
Alex
Hi Alex,
I think one of the purposes of this kind of email exchanges is for
technical discussions and exchanges of ideas to resolve any possible
technical issues in the communities, and there is no need to have any
bias on the way how other people work or dictate what tools they use.
Based on my past years of working experiences on virtio-gpu/mesa/drm,
I'm pointing out a possible scenario in the following call in the
function of "void sdl2_set_hint_x11_force_egl(void)":
egl_display = eglGetDisplay((EGLNativeDisplayType)x_disp);
It could occur that the above call returns EGL_NO_DISPLAY or it crashes
before it even returns for the specific setup.
Thanks,
Quan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238184):
https://lists.openembedded.org/g/openembedded-core/message/238184
Mute This Topic: https://lists.openembedded.org/mt/119658594/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-