eade05ca03
kmsdrm: Finetune integer type usage. Add some comments.
Manuel Alfayate Corchete
2020-08-24 12:51:20 +02:00
a76f176361
kmsdrm: Move cursor plane setup and freeing to MouseInit() and MouseQuit(), for better consistency.
Manuel Alfayate Corchete
2020-08-24 01:10:11 +02:00
0d593d7ead
kmsdrm: Add error control to plane prop setting function. Do most plane prop setting with a single function.
Manuel Alfayate Corchete
2020-08-23 23:44:07 +02:00
e06e9c35c8
kmsdrm: move cursor-related atomic helper functions and related struct typedefs to the SDL_kmsdrmmouse unit.
Manuel Alfayate Corchete
2020-08-23 11:26:55 +02:00
0b7b7721b9
kmsdrm: remove redundant function, use drm_atomic_setbuffers() for disconnecting planes instead.
Manuel Alfayate Corchete
2020-08-23 03:13:50 +02:00
16c04f266a
kmsdrm: Init cursor surface on SetCursor() ONLY. Removal of dynamic modeset because it causes A LOT of problems with some kernel video drivers. Some refactoring and cleanups.
Manuel Alfayate Corchete
2020-08-23 02:58:57 +02:00
5d32eda956
kmsdrm: implement smarter surface recreation function to be used in videomode changes. Other minor arrangements.
Manuel Alfayate Corchete
2020-08-19 01:31:22 +02:00
f79da81721
kmsdrm: free all connector, crtc and plane memory on KMSDRM_VideoQuit().
Manuel Alfayate Corchete
2020-08-18 01:52:15 +02:00
92cb9192e3
kmsdrm: move hardware cursor functionality to the ATOMIC interface. Disconnect the display plane from the GBM surface buffers before destroying the GBM surface.
Manuel Alfayate Corchete
2020-08-17 18:35:04 +02:00
c3ecf18cc4
Linux: Add hint for disabling deadzones
Kai Krakow
2020-07-21 23:38:42 +02:00
a720d1a294
render: fixes to how we convert touch events for logical scaling.
Ryan C. Gordon
2020-08-09 00:55:39 -04:00
c437729b21
kmsdrm: separate requests in different functions so we only need one atomic commit for everything, as expected by atomic design.
Manuel Alfayate Corchete
2020-08-08 14:27:55 +02:00
3b9f1073c6
kmsdrm: wait for possible pending atomic commits before destroying surfaces, and before restoring video on quit. Move messages to the SDL_Log* functions.
Manuel Alfayate Corchete
2020-08-07 11:53:04 +02:00
96c99693a2
kmsdrm: wait for pending atomic commits before restoring videomode and crtc->buffer on VideoQuit, and simplify double-buffer SwapWindow() implementation.
Manuel Alfayate Corchete
2020-08-06 01:36:56 +02:00
09692b6170
kmsdrm: move videomode restoration on VideoQuit() to using the atomic interface instead of the legacy drmModeSetCrtc() function. Refactoring of get_plane_id().
Manuel Alfayate Corchete
2020-08-05 18:55:22 +02:00
fc722b2d21
kmsdrm: free memory for plane, crtc and connector property tables on VideoQuit.
Manuel Alfayate Corchete
2020-08-05 15:28:51 +02:00
2d69ce08ba
kmsdrm: double and triple buffered versions of SwapWindow() are now both reimplemented in atomic pageflipping versions, and can be selected via SDL_VIDEO_DOUBLE_BUFFER env variable.
Manuel Alfayate Corchete
2020-08-05 02:06:59 +02:00
8996ee1786
kmsdrm: update SwapWindow fn, moving it to triple-buffer.
Manuel Alfayate Corchete
2020-08-03 22:24:49 +02:00
ea171c0564
winrt: Another attempt at getting this to compile.
Ryan C. Gordon
2020-08-01 18:58:42 -04:00
b131661c6d
kmsdrm: rewrite the new SwapWindow() fn to avoid tearing. Double-buffer only for now.
Manuel Alfayate Corchete
2020-08-01 18:23:34 +02:00
282e4c65bf
winrt: Patched to compile...?
Ryan C. Gordon
2020-07-31 19:42:23 -04:00
1a5503ce9f
kmsdrm: Moved to the ATOMIC KMS/DRM interface for buffer swapping, leaving DRM-legacy behind.
Manuel Alfayate Corchete
2020-07-28 21:11:25 +02:00
e410b34f92
stdlib: Corrected implementation of SDL_wcsncmp.
Ryan C. Gordon
2020-07-24 22:24:03 -04:00
c7eb557d89
kmsdrm: do not leak drmModeConnector Previously conn was leaked on the success path (when available was set to SDL_TRUE).
RALOVICH, Kristof
2020-07-20 10:09:07 -07:00
412b21b0e8
Rename the gbm device struct from gbm to gbm_dev for better readabilty.
Manuel Alfayate Corchete
2020-07-20 11:42:23 +02:00
155fdc7ac0
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.
RALOVICH, Kristof
2020-07-19 21:48:17 -04:00
75fe4b14e3
Added comment about window creation behaviour in KMSDRM.
Manuel Alfayate Corchete
2020-07-19 19:53:57 +02:00
2f660c4fdd
Delete windata variable no longer needed in KMSDR_SetDisplayMode().
Manuel Alfayate Corchete
2020-07-19 19:11:02 +02:00
3a1d7d9c9a
Surfaces have to be recreated immediately from KMSDRM_SetDisplayMode().
Manuel Alfayate Corchete
2020-07-19 19:09:15 +02:00
b6a818b6a2
Fix SDL_Window recreation: drmModeSetCrtc() has to be called everytime the EGL and GBM surfaces are recreated.
Manuel Alfayate Corchete
2020-07-19 18:45:29 +02:00
71e9df99c7
Fixed bug 5231 - Fix for hardware cursor: size and alpha-premultiplication.
Sam Lantinga
2020-07-19 08:55:01 -07:00
b0ca8efd29
Re-add check for Metal on x86, where it's not supported.
Sam Lantinga
2020-07-17 22:21:37 -07:00
b7a4fdd318
metal: Make sure we have a command buffer available before trying to present.
Ryan C. Gordon
2020-07-17 11:16:35 -04:00
b5affd12e6
Patched to compile.
Ryan C. Gordon
2020-07-16 13:28:59 -04:00
3b38e61a7d
winrt: Fix casting a pointer to int.
Ryan C. Gordon
2020-07-16 13:25:50 -04:00
8babda2c20
egl: SDL_EGL_LoadLibaryOnly() shouldn't set _this->gl_config.driver_loaded = 1
Ryan C. Gordon
2020-07-16 13:18:19 -04:00
af71510cca
assert: Implement SDL_TriggerBreakpoint for Apple ARM hardware.
Ryan C. Gordon
2020-07-16 04:43:08 -04:00
45f5eb0615
configure: On Apple platforms, only exclude Vulkan on x86.
Ryan C. Gordon
2020-07-16 04:37:14 -04:00
968b830d14
Fixed bug 5232 - SDL2 configure script detects Apple Silicon Macs as iPhones; fails to build due to missing components
Sam Lantinga
2020-07-15 16:12:44 -07:00
cab1a715f5
Fixed bug 5233 - PS3 Gamepad Motion Control not correctly ignored on Linux
Sam Lantinga
2020-07-15 10:15:52 -07:00
a78b9763f1
Reuse Wayland connection from availability check
M Stoeckl
2020-07-14 19:18:16 -04:00
8669a87f05
Reuse X11 connection from availability check
M Stoeckl
2020-07-14 21:13:27 -04:00
052a13738d
Merge VideoBootStrap::available into VideoBootStrap::create
M Stoeckl
2020-07-12 19:11:15 -04:00
7c0986fba4
Fixed bug 4938 - Suggestion: rename SDL_PIXELFORMAT_BGR888 to SDL_PIXELFORMAT_XBGR8888
Sam Lantinga
2020-06-12 10:30:46 -07:00
2aa8974f97
Add SDL_SIMDRealloc
Ethan Lee
2020-06-11 12:03:33 -04:00
20aada0efc
Fixed bug 5170 - Build fails when using Visual Studio 2017 with Windows 10 SDK 10.0.19041.0 in uwp
Sam Lantinga
2020-06-10 09:38:43 -07:00
4d15b5b893
Fixed building with Visual Studio 2019
Sam Lantinga
2020-06-10 09:36:10 -07:00
44f50c647e
Fixed bug 5171 - PollEvent impacts performance in 2.0.12
Sam Lantinga
2020-06-09 21:47:41 -07:00
511a9702fc
Fixed whitespace
Sam Lantinga
2020-06-09 21:43:00 -07:00
aefe19ff08
Added support for the NACON Revolution Pro Controller 3 and the GameStop PS4 Fun Controller
Sam Lantinga
2020-06-09 11:31:39 -07:00
6f241bd520
Fixed build
Sam Lantinga
2020-06-09 10:47:29 -07:00
086be21e7a
ControllerList: add support for NACON asymetric controller and Revolution 3, Hori mini wireless ps4 controller, and 2 PDP switch controllers
Sam Lantinga
2020-06-09 10:47:27 -07:00
3b76109f64
ControllerList: remove giotek controller from list - vid/pid appears to be reused in bunch of devies including ones with different fw/protocol and treating as ps4 controller breaks them.
Sam Lantinga
2020-06-09 10:47:25 -07:00
a9cfac3835
Controller: Deadzone improvements
Sam Lantinga
2020-06-09 10:47:23 -07:00
9fa8d6d0be
Define constants not available on older kernels
Sam Lantinga
2020-06-08 17:07:55 -07:00
3ac24bfc1a
Fixed mouse drag with an external mouse on iOS
Sam Lantinga
2020-06-08 17:01:50 -07:00
d0947c1483
Fixed exception if getManifestEnvironmentVariables() is called without a current SDL activity
Sam Lantinga
2020-06-04 12:30:25 -07:00
ff53521bc6
Fixed Bluetooth audio output on Apple TV
Sam Lantinga
2020-06-04 12:26:57 -07:00
cced5eb937
Fixed bug 5169 - Can not build current sources because of recent thread management changes
Sam Lantinga
2020-06-04 09:23:18 -07:00
958c42827c
Fixed build warning
Sam Lantinga
2020-06-04 09:13:49 -07:00
49501a9860
Updated configure with changes from configure.ac
Sam Lantinga
2020-06-04 09:10:49 -07:00
22ce194b17
Make sure SDL_locale.h is included in the Xcode Framework for macOS
Sam Lantinga
2020-06-03 14:58:38 -07:00
b9d5aebb3a
Make sure SDL_locale.h is included in the Xcode Framework for tvOS
Sam Lantinga
2020-06-03 14:56:35 -07:00
550b209e90
Make sure SDL_locale.h is included in the Xcode Framework
Sam Lantinga
2020-06-03 14:26:37 -07:00
60435712f2
video: Set window->surface NULL after freeing it.
Ryan C. Gordon
2020-06-03 16:42:19 -04:00
eea0b0e088
Fixed bug 5168 - Memory leak in RAWINPUT_JoystickOpen
Sam Lantinga
2020-06-02 17:08:31 -07:00