Tue, 02 Oct 2018 13:17:31 -0700The Amlogic X96 is a set-top box
Sam Lantinga <slouken@libsdl.org> [Tue, 02 Oct 2018 13:17:31 -0700] rev 12276
The Amlogic X96 is a set-top box

Mon, 01 Oct 2018 14:52:28 -0700Fixed UnsatisfiedLinkError when initializing the HIDDeviceManager in some cases
Sam Lantinga <slouken@libsdl.org> [Mon, 01 Oct 2018 14:52:28 -0700] rev 12275
Fixed UnsatisfiedLinkError when initializing the HIDDeviceManager in some cases

Mon, 01 Oct 2018 14:43:03 -0700Working on bug 3921 - Add some Fastpath to BlitNtoNKey and BlitNtoNKeyCopyAlpha
Sam Lantinga <slouken@libsdl.org> [Mon, 01 Oct 2018 14:43:03 -0700] rev 12274
Working on bug 3921 - Add some Fastpath to BlitNtoNKey and BlitNtoNKeyCopyAlpha

Sylvain

I did various benches. with clang 6.0.0 on linux, and ndk-r16b on android (NDK_TOOLCHAIN_VERSION=clang).

- still see a x10 speed factor.
- with duff_loops, it does not use vectorisation (but doesn't seem to be a problem).

on linux my patch is already at full speed on -O2, whereas the duff_loops need -O3 (200 ms at -03, and 300ms at -02).

I realized that on Android, I had a slight variation which fits best.
both on linux with -O2 and -O3, and on android with 02/03 and armeabi-v7a/arm64.

Here's the patch.

Mon, 01 Oct 2018 21:29:11 +0300SDL_blit_N.c (BlitNtoNKeyCopyAlpha): fix -Wshadow warnings by adding _
Ozkan Sezer <sezeroz@gmail.com> [Mon, 01 Oct 2018 21:29:11 +0300] rev 12273
SDL_blit_N.c (BlitNtoNKeyCopyAlpha): fix -Wshadow warnings by adding _
suffix to the temp Pixel local in the DUFFS_LOOP.
SDL_blit.h (ASSEMBLE_RGB): add _ prefix to temp Pixel locals to avoid
any possible shadowings.


The warnings were like the following:

In file included from src/video/SDL_blit_N.c:26:0:
src/video/SDL_blit_N.c: In function 'BlitNtoNKeyCopyAlpha':
src/video/SDL_blit_N.c:2421:24: warning: declaration of 'Pixel' shadows a previous local [-Wshadow]
Uint32 Pixel = ((*src32 & rgbmask) == ckey) ? *dst32 : *src32;
^
src/video/SDL_blit.h:475:21: note: in definition of macro 'DUFFS_LOOP8'
case 0: do { pixel_copy_increment; /* fallthrough */ \
^
src/video/SDL_blit_N.c:2419:13: note: in expansion of macro 'DUFFS_LOOP'
DUFFS_LOOP(
^
src/video/SDL_blit_N.c:2399:12: warning: shadowed declaration is here [-Wshadow]
Uint32 Pixel;
^

Mon, 01 Oct 2018 09:47:10 -0700commit c6b28f46b8116552ec2b38d1d3c8535df28ba7a1
Sam Lantinga <slouken@libsdl.org> [Mon, 01 Oct 2018 09:47:10 -0700] rev 12272
commit c6b28f46b8116552ec2b38d1d3c8535df28ba7a1
Author: Anthony Pesch <inolen@gmail.com>
Date: Fri May 4 20:21:21 2018 -0400

Added SDL_AUDIO_ALLOW_SAMPLES_CHANGE flag enabling users of SDL_OpenAudioDevice to get
the sample size of the actual hardware buffer vs having a stream created to handle the
delta

Fri, 04 May 2018 21:58:39 -0400Fix Linux haptic scaling, add 2.1 FIXME
Ethan Lee <flibitijibibo@flibitijibibo.com> [Fri, 04 May 2018 21:58:39 -0400] rev 12271
Fix Linux haptic scaling, add 2.1 FIXME

Mon, 13 Aug 2018 12:52:52 -0400Filter both SIZE_CHANGED and RESIZED on any SIZE_CHANGED
Ethan Lee <flibitijibibo@flibitijibibo.com> [Mon, 13 Aug 2018 12:52:52 -0400] rev 12270
Filter both SIZE_CHANGED and RESIZED on any SIZE_CHANGED

Mon, 01 Oct 2018 09:40:58 -0700Fixed bug 4220 - SDL_GL_CONTEXT_DEBUG_FLAG can fail silently on some Android devices
Sam Lantinga <slouken@libsdl.org> [Mon, 01 Oct 2018 09:40:58 -0700] rev 12269
Fixed bug 4220 - SDL_GL_CONTEXT_DEBUG_FLAG can fail silently on some Android devices

Sun, 30 Sep 2018 22:43:12 -0700Corrected PS4 controller entry
Sam Lantinga <slouken@libsdl.org> [Sun, 30 Sep 2018 22:43:12 -0700] rev 12268
Corrected PS4 controller entry

Sun, 30 Sep 2018 19:53:26 -0700Re-enable drag-and-drop events by default
Sam Lantinga <slouken@libsdl.org> [Sun, 30 Sep 2018 19:53:26 -0700] rev 12267
Re-enable drag-and-drop events by default