2020-04-02 05:03 AM
Hello,
I use SDL with X11 for now but I want to use it directly with kms/drm kernel driver. I run basic_splash_drm and it works.
I don't know how to configure sdl to work together with kms/drm, somebody use it in this way ?
Regards,
Adrian
2020-05-19 02:22 AM
You need to configure libsdl2 with option
--enable-video-kmsdrm
because kmsdrm is not enabled by default. Then you also need to disable the unsupported OpenGL, otherwise libsdl2 fails to detect OpenGLES and OpenGLES2
--disable-video-opengl
With the two flags above, drmkms is already working, but libsdl2 detects the GPU of STM32MP1xx as Vivante, and try to use an internal driver that does not work with STM32MP1xx. To skip this auto-detection, you can either specify the preferred video driver in the libsdl2 specific global variable, before running your application:
export SDL_VIDEODRIVER=kmsdrm
or disable the Vivante driver at libsdl2 configuration time, adding:
--disable-video-vivante