Commit Graph

12289 Commits

Author SHA1 Message Date
Elad Lahav
4b17cc3a46 Add CMake toolchain files 2023-03-27 15:33:08 -07:00
Elad Lahav
49a8b16ffd Fix use of _LARGEFILE64_SOURCE 2023-03-27 15:33:08 -07:00
Elad Lahav
4374645738 Add QNX video and audio modules 2023-03-27 15:33:08 -07:00
Elad Lahav
292b80a13a Treat the QNX compiler as GCC for using atomics 2023-03-27 15:33:08 -07:00
Elad Lahav
b47eeb8488 Add QNX as a platform to the cmake build files 2023-03-27 15:33:08 -07:00
Sam Lantinga
8029a767ee Fixed the accelerometer sensitivity for the Armor-X Pro controller 2023-03-27 14:27:22 -07:00
Sam Lantinga
3340864786 Increased precision for PS4 sensor data conversion 2023-03-27 14:21:05 -07:00
Pierre Wendling
975039ce0d SDL_hidapi_steam.c: Fix compilation under c2x.
When N2935 is implemented, the enum breaks compilation. Use a #define of
the SDL booleans instead.
2023-03-27 09:02:14 -07:00
Pierre Wendling
ea093378a2 Fix clang-tidy error on LLVM 16.
Starting LLVM 16, clang-diagnostic-implicit-function-declaration is
treated as an error.
2023-03-27 12:50:00 +03:00
Sylvain
d3faec0b6e testcommon/automation: add [--audio driver] option
allow to use --audio --video --renderer for testautomation
2023-03-27 10:23:18 +02:00
Anonymous Maarten
9ada9daf51 SDL_blit_copy: Don't call potentially FPU using SDL_memcpy in SDL_memcpyMMX 2023-03-27 06:12:49 +00:00
Anonymous Maarten
37c9329db2 cmake: rename SDL_AVX512 -> SDL_AVX512F cmake option 2023-03-27 06:12:49 +00:00
Anonymous Maarten
8789729b4a cpuinfo: update \sa's of SDL_HasXXX functions 2023-03-27 06:12:49 +00:00
Anonymous Maarten
b0a5182e84 Sunset SDL_HasRDTSC 2023-03-27 06:12:49 +00:00
Anonymous Maarten
513025b182 Implement _intel_fast_(memcpy|memset)
The classic Intel compiler generates calls to these functions when
building the SDL library with SDL_LIBC=OFF.
2023-03-27 06:12:49 +00:00
Anonymous Maarten
99a799ad8b cmake: add /Q_no-use-libirc flag when building a no-libc library
The new Intel LLVM compiler needs this when building SDL3
in release mode.
2023-03-27 06:12:49 +00:00
Anonymous Maarten
46f5c1fe6a Move and rename SDL_rdtsc macro to testautomation 2023-03-27 06:12:49 +00:00
Anonymous Maarten
a06046c55c memset and memcpy are not intrinsic functions in new LLVM-based Intel compiler 2023-03-27 06:12:49 +00:00
Anonymous Maarten
4be82202de cmake: new LLVM based Intel compiler does not recognize MSVC's /MP 2023-03-27 06:12:49 +00:00
Anonymous Maarten
51d96a1680 cmake: increase threshold for stack probes
The /Gs argument controls the number of bytes that local variables
can occupy before a stack probe is initiated.
By setting it to a huge value, no calls to __chkstk are inserted.

This change is needed for the classic Intel C compiler to build SDL
with -DSDL_LIBC=OFF.
2023-03-27 06:12:49 +00:00
Anonymous Maarten
095d4b1ffc byteswap: Don't use intrinsic byteswap functions with Intel C compiler
It reroutes intrinsic _byteswap_u(short|long|int64) call to libc function.
2023-03-27 06:12:49 +00:00
Anonymous Maarten
09832c701c cpuinfo: use __cpuidex instead of __cpuid
The classic Intel Compiler does not clear the ecx register prior
to executing the cpuid opcode.
2023-03-27 06:12:49 +00:00
Anonymous Maarten
904e4a6e7c ci: reduce amount of data copied back from VM in FreeBSD action
By reducing the amount of data to be copied back from the VM to the host,
we hope that the chance on failure is reduced.
2023-03-27 06:12:49 +00:00
Anonymous Maarten
e66f4fa71c ci: test with (old) Intel compiler + (new) oneAPI compiler 2023-03-27 06:12:49 +00:00
Anonymous Maarten
d392ce516a testautomation_math: avoid equality tests with INFINITY
Fixes this warning:
 warning: comparison with infinity always evaluates to false in fast floating point modes [-Wtautological-constant-compare]
2023-03-27 06:12:49 +00:00
Anonymous Maarten
29e19bf829 cmake: disable warnings in libm + warning about EMMS instruction
SDL_BlitCopyMMX ends with _mm_empty(), so the MMX state should be emptied.

(_mm_empty is the intrinsic function for emms)
2023-03-27 06:12:49 +00:00
Anonymous Maarten
345d1cd355 cmake: add support for building with Intel C compiler 2023-03-27 06:12:49 +00:00
Anonymous Maarten
97c3077678 cmake: detect rdtsc in CMake 2023-03-27 06:12:49 +00:00
Anonymous Maarten
e2f51bf38e SDL_intrin.h: add SDL_rdtsc macro 2023-03-27 06:12:49 +00:00
capehill
b8c88cc584 testgles2_sdf: Call correct function to get shader info log 2023-03-26 22:29:49 +02:00
capehill
d5fac067cd testdisplayinfo: use correct index variable 2023-03-26 21:14:18 +02:00
Frank Praznik
203a2a76fc events: Increase the size of the name buffer when logging events
Event names have grown in length and are occasionally truncated when being logged (e.g. SDL_EVENT_WINDOW_PIXEL_SIZE_CHA). Increase the event name buffer size to handle the longer names.
2023-03-26 13:01:26 -04:00
Frank Praznik
5a0095d373 video: Try to match the requested video mode when moving fullscreen windows
Try to match the requested video mode when a fullscreen window is moved to a new display, or it may not be returned to the requested mode if it is moved to a display with no matching mode, then back to the original display.
2023-03-26 12:50:32 -04:00
SDL Wiki Bot
8c852f4dcf Sync SDL3 wiki -> header 2023-03-25 22:11:16 +00:00
Karl Hedberg
11142ec256
Made the Android documentation more clear and understandable (#7535) 2023-03-25 15:10:04 -07:00
Sam Lantinga
1f095b9ce6 Fixed wikiheaders.pl with perl-5.10.1 (thanks @sezero!) 2023-03-24 13:57:24 -07:00
Sylvain
f5dc1c0176 Add some color in testautomation logs! 2023-03-24 13:55:20 -07:00
Frank Praznik
11323abf57 wayland: Set the minimized flag on windows until cleared by a focus event
The behavior when minimizing a window on Wayland is compositor dependent and clients are not informed when windows enter or leave the minimized state, however we can assume that, when receiving a minimize request from the application, the minimized window should set and keep the minimized status flag until the window regains focus.

This is required when attaching a renderer context to a minimized window, as the renderer creation process destroys and recreates the target window, and without retaining the minimized flag, the recreated window will lose the minimized state.
2023-03-24 16:17:16 -04:00
Frank Praznik
6bb48b4fe9 wayland: Unref the libdecor window when hiding
Hiding the decorations while not unreferencing the frame was a workaround for an internal libdecor use-after-free bug that was fixed some time ago. Revert to unreferencing the window when hiding to ensure that it is properly destroyed.

Reverts dd2e318
2023-03-24 16:17:16 -04:00
Sam Lantinga
26f511a8f4 Add SWP_NOACTIVATE to SetWindowPos flags passed in WIN_SetWindowAlwaysOnTop 2023-03-24 10:39:56 -07:00
Sylvain
693558a894 testautomation_video: fix memory leak 2023-03-24 09:52:05 +01:00
Sylvain
8d3d4e523e Fix sdltest_randomAsciiStringWithMaximumLength() where it requests a string a size 0
seen with: ./testautomation --seed MILAFAP2AKVP3V4G --filter sdltest_randomAsciiStringWithMaximumLength
2023-03-24 09:52:05 +01:00
Sylvain
3ccfd361cb Fix video_getSetWindowPosition() that fail when checking events,
because testautomation_events.c() didn't finish to poll all events before
2023-03-24 09:52:05 +01:00
Sylvain
5976b79c1c testautomation: create no window, so that testautomation_mouse.c::mouse_getMouseFocus() pass
(more precisely, the last test,  when the window is destroyed, focus window should report null)
2023-03-24 09:52:05 +01:00
Sylvain
f30a182de2 Fix video_getSetWindowGrab(): need to raise the window, and wait for focus gained 2023-03-24 09:52:05 +01:00
Sylvain
d4d26e0ddb testautomation_video: if SDL_SetWindowSize/Position isn't honored, we should check there is an event
x11: send the events if various occasions
2023-03-24 09:52:05 +01:00
Sylvain
4b1378fe8e X11: fix size/position (test video_setWindowCenteredOnDisplay)
this fix x11 backend to correctly pass video_setWindowCenteredOnDisplay()
- get border values early  (eg status bar)
- wait for size/position change to get valid values

Fix set topleft is client rendering area
2023-03-24 09:52:05 +01:00
Anonymous Maarten
749f3ebd14 Fix arguments of SDL_BlitCopyMMX 2023-03-24 02:18:06 +01:00
Ryan C. Gordon
586004e52a
wikiheaders.pl: Manpages shouldn't use .BI sections, it looks bad.
Reference Issue #7514.
2023-03-21 22:23:06 -07:00
Ryan C. Gordon
1b81ececd3
wikiheaders.pl: Fixed uninitialized value warning when run without arguments. 2023-03-21 21:57:12 -07:00