Anonymous Maarten
0370b92d80
gpu: SDL_ClaimWindowForGPUDevice must set an error message on failure
2024-12-09 00:01:16 +01:00
cosmonaut
5c020b9930
GPU: Enable VK_ERROR_NATIVE_WINDOW_IN_USE_KHR to print
2024-12-08 11:20:06 -08:00
cosmonaut
279836d259
GPU: Swapchain image count respects number of allowed frames in flight
2024-12-08 09:07:50 -08:00
Evan Hemsley
fa5f84fb6e
GPU: Add SetGPUAllowedFramesInFlight ( #11599 )
2024-12-06 11:56:20 -08:00
Lucas Murray
9b82d46259
GPU: Use correct logging category
2024-12-06 07:53:37 -05:00
Lucas Murray
5229b520af
GPU: Log D3D12 driver version
2024-12-05 21:49:42 -08:00
Lucas Murray
dc5a2ddfd0
GPU: Forward D3D12 validation warnings to the SDL log
2024-12-04 14:34:43 -08:00
Lucas Murray
efb59bd0bf
GPU: Fix validation warning in D3D12 blit code
2024-12-04 12:35:36 -08:00
Caleb Cornett
45869d6177
GPU: Vulkan requires drawIndirectFirstInstance feature ( #11583 )
2024-12-04 15:05:35 -05:00
Caleb Cornett
d8eb68a6c5
GPU: Clean up D3D12 blit shader compilation
2024-12-04 14:56:36 -05:00
Caleb Cornett
5c8bed3780
GPU: Fix D3D12 tearing query
2024-11-25 22:33:48 -05:00
Sam Lantinga
c508396e33
Avoid usage of CreateEventEx in WASAPI code
...
This also uses FALSE as parameters consistently for CreateEvent()
2024-11-24 17:49:17 -08:00
Clownacy
79f6f766d4
Avoid usage of CreateEventEx
in D3D12 GPU backend
...
Unavailable in Windows XP.
2024-11-24 01:02:06 +00:00
cosmonaut
5a74aadac9
GPU: Null check shader inputs in CreateGPUGraphicsPipeline
2024-11-12 14:31:13 -08:00
Evan Hemsley
119b4fa5f5
GPU: Remove D3D11 backend and allow D3D12 to ingest DXBC ( #11456 )
2024-11-12 10:55:21 -08:00
Andrei Alexeyev
332fd824f0
GPU Vulkan: release submitted command buffer after defrag ( #11430 )
2024-11-08 09:40:26 -08:00
Maia
5699ba799e
Add return to CHECK_VULKAN_ERROR_AND_RETURN macro
2024-10-30 11:52:42 -07:00
Evan Hemsley
b4dff42dcd
GPU: Add SDL_CancelGPUCommandBuffer ( #11316 )
...
---------
Co-authored-by: Caleb Cornett <caleb.cornett@outlook.com >
2024-10-29 14:43:22 -07:00
cosmonaut
014b473bcc
GPU D3D12: Fix depth texture sampling
2024-10-29 12:05:35 -07:00
cosmonaut
ff14a1781f
GPU D3D12: Fix indirect buffers not being refcounted
2024-10-29 10:34:54 -07:00
d-musique
35e53f76a9
metal: check success of device creation ( #11367 )
...
When macOS runs under a virtual environment, it is possible that
MTLCreateSystemDefaultDevice() does not succeed.
Not checking this failure results in a crash down the road.
This change allows to skip GPU renderer and use an adequate fallback.
Co-authored-by: D.musique <d-musique@users.noreply.github.com >
2024-10-29 12:35:13 -04:00
Caleb Cornett
54836050c9
metal: Add availability checks
2024-10-29 08:13:51 -07:00
Evan Hemsley
423337796c
GPU Vulkan: Use dedicated allocation for download buffers ( #11298 )
2024-10-23 09:37:06 -07:00
Sam Lantinga
97f1da73da
Rename GPU properties for consistency
2024-10-15 15:36:26 -07:00
Caleb Cornett
cdaaabb978
GPU: Fix Metal sampler address mode order
2024-10-15 10:46:04 -04:00
cosmonaut
00bb81de76
GPU: Allow size queries on depth formats
2024-10-14 14:28:21 -07:00
cosmonaut
57f2577c65
GPU Vulkan: Fix depth-only framebuffer leak
2024-10-14 10:19:07 -07:00
Evan Hemsley
82598e5ca9
GPU Vulkan: Fix frame counter timing ( #11189 )
2024-10-12 22:02:22 -07:00
Sam Lantinga
25251a9405
Fixed warning C4723: potential divide by 0
2024-10-11 19:31:22 -07:00
Evan Hemsley
6ea4a66451
GPU: Add SDL_CalculateGPUTextureFormatSize ( #11146 )
...
---------
Co-authored-by: Sam Lantinga <slouken@libsdl.org >
2024-10-10 16:34:38 -07:00
Caleb Cornett
3db10a6b2c
GPU: ASTC block size fixes ( #11157 )
2024-10-10 15:40:21 -07:00
David Gow
9c322386bf
gpu: vulkan: Fix an uninitialised structure in SDL_BlitGPUTexture()
...
The SDL_GPUColorTargetInfo structure needs to be zeroed, as otherwise we
can end up trying to create a resolve_texture which doesn't exist,
causing a rather difficult-to-debug segfault when calling
SDL_BlitGPUTexture() with a load op of SDL_GPU_LOADOP_CLEAR.
2024-10-10 07:16:02 -07:00
Evan Hemsley
da5a1585cd
GPU: Avoid calling SDL_GetWindowSizeInPixels when possible ( #11139 )
2024-10-09 18:59:07 -07:00
Daniel Ludwig
acb18e05b5
GPU: fix swapchain buffer size not set on Xbox
2024-10-09 07:30:13 -07:00
Delta
8e6ead2f7b
[GPU] Added ASTC texture format support ( #11116 )
2024-10-08 18:45:04 -04:00
rabbit-ecl
6ae5666acf
Check for VK_SUBOPTIMAL_KHR also in vkQueuePresentKHR ( #11113 )
...
This is already handled for vkAcquireNextImageKHR.
2024-10-07 13:01:10 -07:00
Daniel Ludwig
69196ab30d
Change evasive library handle to SDL_SharedObject*
2024-10-04 05:18:40 -04:00
Ryan C. Gordon
3a6a3ab64f
gpu: Fix memory leak in Vulkan backend.
2024-10-04 04:46:28 -04:00
Ryan C. Gordon
0b5e01a305
loadso: library handles are now SDL_SharedObject*
instead of void*
.
...
Improved the SDL_loadso.h documentation a little, too.
Fixes #11009 .
2024-10-01 12:16:10 -04:00
Sam Lantinga
3234a3b902
Simplified internal SDL_Surface structure
2024-10-01 08:10:04 -07:00
cosmonaut
fa14b53273
GPU Vulkan: Clear up some swapchain edge cases
2024-09-30 15:10:27 -07:00
Evan Hemsley
afdf325fb4
GPU: Add swapchain dimension out params ( #11003 )
2024-09-30 10:23:19 -07:00
Evan Hemsley
fc242abbd2
GPU: recreate swapchain on window pixel size change event ( #10985 )
2024-09-28 18:09:56 -07:00
Ethan Lee
0852307b58
gpu: Check Vulkan device features for IsDeviceSuitable
2024-09-27 19:58:30 -04:00
cosmonaut
fb165a542b
GPU Vulkan: add resolve info to framebuffer and render pass lookups
2024-09-27 15:57:57 -07:00
Ozkan Sezer
1088ea55fa
SDL_gpu_d3d11.c: define D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD for old toolchains
2024-09-27 23:55:02 +03:00
cosmonaut
de40d6bae0
GPU Metal: Set texture to NULL even if AcquireSwapchainTexture fails
2024-09-27 13:49:26 -07:00
cosmonaut
eedd2039f9
GPU: 32-bit component texture formats
2024-09-27 16:26:43 -04:00
Evan Hemsley
05d0656bd6
GPU: Simultaneous compute pass read-write ( #10965 )
2024-09-27 12:49:37 -07:00
Sam Lantinga
d39acc6d1e
Fixed warning C4702: unreachable code
2024-09-27 11:19:54 -07:00