Fri, 24 Jul 2020 22:24:03 -0400stdlib: Corrected implementation of SDL_wcsncmp.
Ryan C. Gordon [Fri, 24 Jul 2020 22:24:03 -0400] rev 13969
stdlib: Corrected implementation of SDL_wcsncmp.

It was a copy/paste of SDL_strcmp, apparently, not SDL_strncmp, so it ignored
the maxlen parameter.

Thanks to Jack Powell for pointing this out!

Mon, 20 Jul 2020 10:09:07 -0700kmsdrm: do not leak drmModeConnector
RALOVICH, Kristof [Mon, 20 Jul 2020 10:09:07 -0700] rev 13968
kmsdrm: do not leak drmModeConnector
Previously conn was leaked on the success path (when available was
set to SDL_TRUE).

Mon, 20 Jul 2020 11:42:23 +0200Rename the gbm device struct from gbm to gbm_dev for better readabilty.
Manuel Alfayate Corchete [Mon, 20 Jul 2020 11:42:23 +0200] rev 13967
Rename the gbm device struct from gbm to gbm_dev for better readabilty.

Sun, 19 Jul 2020 21:48:17 -0400kmsdrm: settle with first card that has a connected connector
RALOVICH, Kristof [Sun, 19 Jul 2020 21:48:17 -0400] rev 13966
kmsdrm: settle with first card that has a connected connector
Previously the first card with non-empty connectors, encoders
and crtcs would be selected, however KMSDRM_VideoInit could still reject
it if the connector was not connected. This allow finding the first card
(in a multi GPU setup) that is actually connected to a display.

Sun, 19 Jul 2020 21:46:41 -0400kmsdrm: fix typo
RALOVICH, Kristof [Sun, 19 Jul 2020 21:46:41 -0400] rev 13965
kmsdrm: fix typo

Sun, 19 Jul 2020 19:53:57 +0200Added comment about window creation behaviour in KMSDRM.
Manuel Alfayate Corchete [Sun, 19 Jul 2020 19:53:57 +0200] rev 13964
Added comment about window creation behaviour in KMSDRM.

Sun, 19 Jul 2020 19:11:02 +0200Delete windata variable no longer needed in KMSDR_SetDisplayMode().
Manuel Alfayate Corchete [Sun, 19 Jul 2020 19:11:02 +0200] rev 13963
Delete windata variable no longer needed in KMSDR_SetDisplayMode().

Sun, 19 Jul 2020 19:09:15 +0200Surfaces have to be recreated immediately from KMSDRM_SetDisplayMode().
Manuel Alfayate Corchete [Sun, 19 Jul 2020 19:09:15 +0200] rev 13962
Surfaces have to be recreated immediately from KMSDRM_SetDisplayMode().

Sun, 19 Jul 2020 18:45:29 +0200Fix SDL_Window recreation: drmModeSetCrtc() has to be called everytime the EGL and GBM surfaces are recreated.
Manuel Alfayate Corchete [Sun, 19 Jul 2020 18:45:29 +0200] rev 13961
Fix SDL_Window recreation: drmModeSetCrtc() has to be called everytime the EGL and GBM surfaces are recreated.

Sun, 19 Jul 2020 08:55:01 -0700Fixed bug 5231 - Fix for hardware cursor: size and alpha-premultiplication.
Sam Lantinga [Sun, 19 Jul 2020 08:55:01 -0700] rev 13960
Fixed bug 5231 - Fix for hardware cursor: size and alpha-premultiplication.

Manuel Alfayate Corchete

I noticed pt2-clone had problems with it's optional hardware mouse on the KMSDRM backend: cursor had a transparent block around it.
So I was investigating and it seems that a GBM cursor needs it's pixels to be alpha-premultiplied instead of straight-alpha.
A
lso, I was previously relying on "manual testing" for the cursor size, but it's far better to use whatever the DRM driver recommends via drmGetCap(): any working driver should make a size recommendation via drmGetCap(), so that's what we use now. I took this decision because I found out that the AMDGPU driver reported working cursor sizes that would appear garbled on screen, and only the recommended cursor size works.