Fri, 01 Sep 2017 12:54:38 -0700Fixed bug 3792 - [KMS/DRM] Wrong GBM format
Sam Lantinga <slouken@libsdl.org> [Fri, 01 Sep 2017 12:54:38 -0700] rev 11442
Fixed bug 3792 - [KMS/DRM] Wrong GBM format

Romain Tisserand

Using KMS/DRM driver from WIP SDL2.0.6 on Linux/ARM SoC RockChip RK3328 (ARM Mali 450 MP2 GPU).

The current code is using GBM_BO_FORMAT_XRGB8888 as GBM buffer format specifier.

The Mali driver (it has been confirmed some other vendor implementations too) expects GBM_FORMAT_XRGB8888.

The Mesa implementation is actually handling both values as the same, but it's not implemented like this into every gbm.h vendor header.

https://github.com/ideak/mesa/blob/master/src/gbm/backends/dri/gbm_dri.c

So with stock SDL2 on my card (Mali vendor implementation), it does not work, eglCreateWindowSurface fails, and gbm_is_format_supported fails too (with the BO variant).
It runs fine with GBM_FORMAT_XRGB8888.

Here is a link of the gbm.h from Mali user-space driver :

https://github.com/rockchip-linux/libmali/blob/rockchip/include/gbm.h

Fri, 01 Sep 2017 14:08:09 -0400x11: Correctly restore previous GL context after sacrificial context is done.
Ryan C. Gordon <icculus@icculus.org> [Fri, 01 Sep 2017 14:08:09 -0400] rev 11441
x11: Correctly restore previous GL context after sacrificial context is done.

Fri, 01 Sep 2017 14:00:11 -0400x11: don't try to make a NULL GL context current when we already did that.
Ryan C. Gordon <icculus@icculus.org> [Fri, 01 Sep 2017 14:00:11 -0400] rev 11440
x11: don't try to make a NULL GL context current when we already did that.

Fri, 01 Sep 2017 13:57:40 -0400x11: Clean up sacrificial GL context code.
Ryan C. Gordon <icculus@icculus.org> [Fri, 01 Sep 2017 13:57:40 -0400] rev 11439
x11: Clean up sacrificial GL context code.

Check for failures, restore any previously-current context.

Fri, 01 Sep 2017 13:27:53 -0400x11: Make a sacrificial glX context to check for extensions during init.
Ryan C. Gordon <icculus@icculus.org> [Fri, 01 Sep 2017 13:27:53 -0400] rev 11438
x11: Make a sacrificial glX context to check for extensions during init.

This is necessary because we need to see if GLES compat extensions exist.

All of this code (including ShouldUseTextureFramebuffer()) should be
revisited after 2.0.6 ships; ideally we don't make throwaway contexts if
we can avoid it...but maybe we can't. I hear Vulkan is pretty cool.

Fixes Bugzilla #3725.

Thu, 31 Aug 2017 22:07:28 -0300macOS: Update controller mapping of Steelseries Stratus XL to account for reversed thumbstick y-axis values (bug #3483).
Alex Szpakowski <slime73@gmail.com> [Thu, 31 Aug 2017 22:07:28 -0300] rev 11437
macOS: Update controller mapping of Steelseries Stratus XL to account for reversed thumbstick y-axis values (bug #3483).

Thu, 31 Aug 2017 21:34:29 -0300macOS: Fix menubar items being enabled when they shouldn't be.
Alex Szpakowski <slime73@gmail.com> [Thu, 31 Aug 2017 21:34:29 -0300] rev 11436
macOS: Fix menubar items being enabled when they shouldn't be.

Thu, 31 Aug 2017 21:26:13 -0300Code style cleanup in the Cocoa and UIKit vulkan files.
Alex Szpakowski <slime73@gmail.com> [Thu, 31 Aug 2017 21:26:13 -0300] rev 11435
Code style cleanup in the Cocoa and UIKit vulkan files.

Thu, 31 Aug 2017 21:13:32 -0300macOS: Prevent unwanted native fullscreen (Spaces) toggles when the window is in fullscreen or isn't resizable. Fixes bug #3691.
Alex Szpakowski <slime73@gmail.com> [Thu, 31 Aug 2017 21:13:32 -0300] rev 11434
macOS: Prevent unwanted native fullscreen (Spaces) toggles when the window is in fullscreen or isn't resizable. Fixes bug #3691.

Thu, 31 Aug 2017 15:17:59 -0700Fixed bug 3791 - SDL_bits.h: __builtin_clz is supported in gcc >= 3.4
Sam Lantinga <slouken@libsdl.org> [Thu, 31 Aug 2017 15:17:59 -0700] rev 11433
Fixed bug 3791 - SDL_bits.h: __builtin_clz is supported in gcc >= 3.4

Ozkan Sezer

__builtin_clz is supported in gcc >= 3.4. The following patchlet adjusts
SDL_bits.h for it.