[v3d][KMS/DRM][Raspberry Pi 4/5] drmModePageFlip() fails when DRM_MODE_PAGE_FLIP_ASYNC flag is set.
Calling drmModePageFlip()
with the DRM_MODE_PAGE_FLIP_ASYNC
flag fails on the Raspberry Pi 4/5.
This is a major problem since it breaks SDL2 on KMS/DRM on the platform.
We detect the DRM_CAP_ASYNC_PAGE_FLIP
cap here:
https://github.com/libsdl-org/SDL/blob/058213366bccf7f62d4c4c6061477d7a69ea336d/src/video/kmsdrm/SDL_kmsdrmvideo.c#L957
...where it's detected as available on both Pi 4 and Pi5...
And then we set the flag here:
https://github.com/libsdl-org/SDL/blob/058213366bccf7f62d4c4c6061477d7a69ea336d/src/video/kmsdrm/SDL_kmsdrmopengles.c#L176
And call drmModePageFlip
here with the DRM_CAP_ASYNC_PAGE_FLIP
flag here:
https://github.com/libsdl-org/SDL/blob/058213366bccf7f62d4c4c6061477d7a69ea336d/src/video/kmsdrm/SDL_kmsdrmopengles.c#L179
@apinheiro Can you please take a look? There are many projects using SDL2 on the Pi4/5.