Re: [PATCH v2 2/6] ui/sdl2: Implement dpy dmabuf functions

2024-10-20 Thread Dmitry Osipenko
On 10/18/24 08:22, Akihiko Odaki wrote: ... >> +    EGLDisplay egl_display; >> + >> +    if (!x_disp) { >> +    return; >> +    } >> + >> +    /* Prefer EGL over GLX to get dma-buf support. */ >> +    egl_display = eglGetDisplay((EGLNativeDisplayType)x_disp); >> +> +    if (egl_display != EGL_N

Re: [PATCH v2 2/6] ui/sdl2: Implement dpy dmabuf functions

2024-10-17 Thread Akihiko Odaki
On 2024/10/15 13:32, Dmitry Osipenko wrote: From: Pierre-Eric Pelloux-Prayer If EGL is used, we can rely on dmabuf to import textures without doing copies. To get this working on X11, we use the existing SDL hint: SDL_HINT_VIDEO_X11_FORCE_EGL (because dmabuf can't be used with GLX). Signed-of

[PATCH v2 2/6] ui/sdl2: Implement dpy dmabuf functions

2024-10-14 Thread Dmitry Osipenko
From: Pierre-Eric Pelloux-Prayer If EGL is used, we can rely on dmabuf to import textures without doing copies. To get this working on X11, we use the existing SDL hint: SDL_HINT_VIDEO_X11_FORCE_EGL (because dmabuf can't be used with GLX). Signed-off-by: Pierre-Eric Pelloux-Prayer Signed-off-b