I think it does support them, but there was a bug where the width has to be a power of two. Iirc Raspivid rendering to 3d used raster order buffers, or certainly the isp isn't producing t-format.

I think it does support them, but there was a bug where the width has to be a power of two. Iirc Raspivid rendering to 3d used raster order buffers, or certainly the isp isn't producing t-format.
Thank you! I came here to ask this very question as I'm migrating a project from Pi 2 to Pi 4 and I'm using my own SDL2 installation.Solskogen wrote: ↑Thu Jul 11, 2019 12:59 pmI would suggest you configure SDL2 with --disable-video-rpi --enable-video-kmsdrm as options. Unless you do, SDL2 gets configured with the old rpi driver in /opt/vc. And with --enable-video-kmsdrm you can use SDL2 in console, without X11. kmsdrm needs a couple of packages installed: libgdm-dev and libdrm-dev.
If you don't want to parse the revision code (which is the best way IMO)techyian wrote: ↑Thu Jul 11, 2019 4:50 pmThanks Solskogen, will try this out! Is anyone aware of anyway to check the host is a Pi 4? /proc/cpuinfo states an incorrect model number for the Broadcom CPU (I've read the thread explaining why) - I've been told you can do bitwise operations on the revision number to get out the correct info, is this the only solution? I have a CMake script which is currently checking for the "bcm_host.h" header and if that exists, the host is a Pi and that works well. However due to the differences in a Pi 4 for GLES and SDL I will need some way of detecting specifically for a Pi 4. Any ideas?
Code: Select all
INFO: GL SwapInterval (vsync) : 1
INFO: Window: 1920, 1200
INFO: Renderer: 1920, 1200
INFO: Logical: 0, 0
INFO: Using GL Renderer: V3D 4.2
INFO: Using OpenGL version: OpenGL ES 3.0 Mesa 19.1.0-devel
INFO: Using Vendor: Broadcom
INFO: Using GLSL version: OpenGL ES GLSL ES 3.00
INFO: ------------> 8192, 8192
INFO: MAX TEXTURE SIZE: 8192
Code: Select all
../configure --disable-video-rpi --enable-video-kmsdrm --enable-video-x11 --disable-video-opengl
Code: Select all
SDL_VIDEODRIVER=kmsdrm ./etlCode: Select all
checking for LIBDRM... yes
checking for LIBGBM... yes
checking for kmsdrm dynamic loading support... yes
Video drivers : dummy x11(dynamic) kmsdrm(dynamic) opengl_es2 vulkan