Sam Lantinga
ccd309c433
Added a mapping for the Sanwa Supply JY-P76USV controller
...
Fixes https://github.com/libsdl-org/SDL/issues/8644
2024-03-03 12:23:00 -08:00
Sam Lantinga
8d8076263e
Removed the mapping for the G-Shark GS-GP702
...
This uses the same chipset as the DragonRise Inc. Generic USB Joystick, which many manufacturers use for different products with different mappings.
In order to add a mapping for a controller using this chipset, we need a unique crc for the device name.
2024-03-03 12:18:57 -08:00
Sam Lantinga
1b86a1c684
SDL_GetGamepadAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found
2024-03-03 11:55:40 -08:00
Sam Lantinga
5f37242607
Don't clear the clipboard on quit
...
Fixes https://github.com/libsdl-org/SDL/issues/8830
2024-03-03 11:48:08 -08:00
Sam Lantinga
6e03914375
Fixed signed/unsigned comparison warning
2024-03-03 11:36:23 -08:00
Sam Lantinga
2c85052966
Removed unused headers from SDL_rect.h
...
Fixes https://github.com/libsdl-org/SDL/issues/8966
2024-03-03 11:33:59 -08:00
Sam Lantinga
e54001b028
Updating the mouse capture should use the mouse focus window
...
Fixes https://github.com/libsdl-org/SDL/issues/8974
2024-03-03 11:32:17 -08:00
Sam Lantinga
c1da39a245
SDL_GetGamepadAppleSFSymbolsNameForButton() returns NULL if the symbol isn't found
...
Fixes https://github.com/libsdl-org/SDL/issues/9071
2024-03-03 11:07:39 -08:00
Sam Lantinga
74f4614289
Save the native texture parent and return that in SDL_GetRenderTarget()
...
Fixes https://github.com/libsdl-org/SDL/issues/9176
2024-03-03 09:47:40 -08:00
Susko3
86d36a2dc2
Add missing include
2024-03-03 09:37:59 -08:00
Sam Lantinga
eb5a2e7e7f
Fixed building with SDL_LEAN_AND_MEAN
...
Fixes https://github.com/libsdl-org/SDL/issues/9173
2024-03-03 09:25:02 -08:00
Sam Lantinga
107e06a92a
Use a valid finger ID when generating touch events from mouse events
...
Fixes https://github.com/libsdl-org/SDL/issues/9185
2024-03-03 09:15:07 -08:00
meyraud705
c6ec999869
Set udev class for accelerometer
2024-03-03 08:40:24 -08:00
Nour Fouad
e524e545f2
Add vulkan to SDL_HINT_RENDER_DRIVER
2024-03-02 15:17:09 -08:00
Sam Lantinga
88dcf74588
testyuv: we no longer need to override the HDR headroom for the BT.2020 test
2024-03-02 15:06:28 -08:00
SDL Wiki Bot
27389716ac
Sync SDL3 wiki -> header
2024-03-02 23:05:24 +00:00
Sam Lantinga
7f9ff6277c
Don't assume HDR headroom for HDR10 surfaces
...
Applications that support HDR will set the correct values for their content.
2024-03-02 15:02:17 -08:00
Jade Macho
c74f273848
d3d12: Move root sigs to D3D12_Shader_Common.hlsli, fix mismatch
2024-03-02 10:30:29 -08:00
Jade Macho
e2a8209263
GDK: Use WIN_IsRectEmpty (IsRectEmpty is desktop-only)
2024-03-02 10:30:29 -08:00
Jade Macho
290f64b86c
GDK: Windows shape is desktop-only
2024-03-02 10:30:29 -08:00
Jade Macho
794f0f1b42
GDK: Fix SDL_pixels.c/_c.h linking error caused by C / C++ mismatch
2024-03-02 10:30:29 -08:00
Jade Macho
23ace600fc
GDK: Remove old shader sources, unify shader compilation .bats
2024-03-02 10:30:29 -08:00
Jade Macho
bcbede31ce
GDK: SDL_video_capture.c is now SDL_camera.c, thus remove from proj
2024-03-02 10:30:29 -08:00
Jade Macho
e1e5d33420
GDK: Partially revert 2670eb44af
...
MsgWaitForMultipleObjects is desktop-only.
2024-03-02 10:30:29 -08:00
SDL Wiki Bot
8c015cd3b6
Sync SDL3 wiki -> header
2024-03-02 18:02:26 +00:00
Sam Lantinga
8d023f9869
Updated documentation for new property parameters
2024-03-02 09:56:29 -08:00
Sam Lantinga
2bc2840de5
vulkan: VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16 is a 2-plane format
2024-03-01 20:26:52 -08:00
Sam Lantinga
2bedd7f02e
Fixed pitch alignment when updating SDL_PIXELFORMAT_P010 textures
2024-03-01 20:26:52 -08:00
Sam Lantinga
f2cd361e25
testyuv: added validation of P010 YUV format
...
Also added conversion between RGB and P010, using XRGB2101010 as a bridging format in PQ space
2024-03-01 20:26:52 -08:00
Sam Lantinga
47be24d225
testyuv: added --monochrome and --luminance options for interactive mode
2024-03-01 07:42:34 -08:00
Sam Lantinga
991ad27de8
testyuv: added GetColorspaceForYUVConversionMode()
2024-03-01 07:42:34 -08:00
danginsburg
812e04fb11
Vulkan Renderer - fix validation error with VkSemaphore reused before signaling. Have one semaphore per-submit rather than using the same one.
2024-03-01 06:09:22 -08:00
Ryan C. Gordon
1e8b006d43
stdlib: qsort and bsearch changes.
...
- Always use internal qsort and bsearch implementation.
- add "_r" reentrant versions.
The reasons for always using the internal versions is that the C runtime
versions' callbacks are not mark STDCALL, so we would have add bridge
functions for them anyhow, The C runtime qsort_r/qsort_s have different
orders of arguments on different platforms, and most importantly: qsort()
isn't a stable sort, and isn't guaranteed to give the same ordering for
two objects marked as equal by the callback...as such, Visual Studio and
glibc can give different sort results for the same data set...in this
sense, having one piece of code shared on all platforms makes sense here,
for reliabillity.
bsearch does not have a standard _r version at all, and suffers from the
same SDLCALL concern. Since the code is simple and we would have to work
around the C runtime, it's easier to just go with the built-in function
and remove all the CMake C runtime tests.
Fixes #9159 .
2024-03-01 08:28:12 -05:00
Sam Lantinga
af58ed978e
Fixed the documentation for SDL_GetGamepadMappings()
2024-03-01 01:55:56 -08:00
SDL Wiki Bot
7ff9be7398
Sync SDL3 wiki -> header
2024-03-01 01:39:28 +00:00
Sam Lantinga
0454e1fdb4
Vulkan: added support for wrapping existing textures
2024-02-29 17:38:10 -08:00
Sam Lantinga
2adbcce864
Vulkan: wait for all queues to be idle before destroying the device
2024-02-29 14:12:09 -08:00
danginsburg
0115027116
Vulkan Renderer - fix validation errors:
...
* Make sure to always write pointSize in VS (fixes validation error in testsprite)
* Fix validation error from acquiring swapchain semaphore more than once
* Fix validation error from using incorrect framebuffer size in testautomation
Now passes testautomation with validation.
2024-02-29 10:59:47 -08:00
Sam Lantinga
0c6a1b636e
Vulkan: added handling for SDL_MATRIX_COEFFICIENTS_UNSPECIFIED
2024-02-28 19:18:37 -08:00
Sam Lantinga
4017e1370d
Vulkan: cleaned up error handling
2024-02-28 19:11:33 -08:00
Sam Lantinga
59bbfc1fdd
Vulkan: only advertise YUV formats if the VK_KHR_sampler_ycbcr_conversion extension is available
...
Also check to see if it's available when given an external Vulkan device
2024-02-28 19:04:00 -08:00
Sam Lantinga
bf853823a2
Removed unused YCbCr_matrix from Vulkan shaders
2024-02-28 18:38:06 -08:00
Sam Lantinga
039144350c
Be more precise about what we're testing in testyuv
2024-02-28 17:15:47 -08:00
Sam Lantinga
b30ba1c5d4
Updated RGBtoYUV() to use the full YCbCr conversion formula
2024-02-28 16:58:39 -08:00
Sam Lantinga
4513c32bb3
The ycbcrModel should be based on the transfer matrix, not the color primaries
2024-02-28 16:58:39 -08:00
Sam Lantinga
a241cca9e6
Fixed warning C4090: 'function': different 'const' qualifiers
2024-02-28 11:45:24 -08:00
Sam Lantinga
7117d545a3
Fixed crash if the controller product name is NULL
...
This happens when the Razer Synapse software emulates a controller with a keyboard
2024-02-28 11:43:22 -08:00
Sam Lantinga
353e76b40b
Use the correct colorspace for yuv conversion tests
2024-02-28 10:03:18 -08:00
Sam Lantinga
fc94c3634e
Fixed signed/unsigned comparison warning
2024-02-28 09:06:21 -08:00
Sam Lantinga
ba34025423
Use direct3d11 as the default renderer on Windows
...
The D3D12 renderer initializes but has poor performance or graphical issues on older Intel hardware.
Fixes https://github.com/libsdl-org/SDL/issues/7634
Fixes https://github.com/libsdl-org/SDL/issues/9093
2024-02-28 09:00:36 -08:00