Commit Graph

  • 0454e1fdb4 Vulkan: added support for wrapping existing textures Sam Lantinga 2024-02-28 21:18:17 -0800
  • 8024b88da9 Vulkan: added support for wrapping existing textures Sam Lantinga 2024-02-28 21:18:17 -0800
  • 2adbcce864 Vulkan: wait for all queues to be idle before destroying the device Sam Lantinga 2024-02-29 14:12:09 -0800
  • 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 danginsburg 2024-02-29 13:57:56 -0500
  • d0adfc0ff2 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 danginsburg 2024-02-29 13:57:56 -0500
  • 2633342bfe
    stdlib: qsort and bsearch changes. Ryan C. Gordon 2024-02-28 20:51:48 -0500
  • 0c6a1b636e Vulkan: added handling for SDL_MATRIX_COEFFICIENTS_UNSPECIFIED Sam Lantinga 2024-02-28 19:16:55 -0800
  • 4017e1370d Vulkan: cleaned up error handling Sam Lantinga 2024-02-28 19:11:33 -0800
  • 59bbfc1fdd Vulkan: only advertise YUV formats if the VK_KHR_sampler_ycbcr_conversion extension is available Sam Lantinga 2024-02-28 19:04:00 -0800
  • bf853823a2 Removed unused YCbCr_matrix from Vulkan shaders Sam Lantinga 2024-02-28 18:38:06 -0800
  • 039144350c Be more precise about what we're testing in testyuv Sam Lantinga 2024-02-28 17:15:47 -0800
  • b30ba1c5d4 Updated RGBtoYUV() to use the full YCbCr conversion formula Sam Lantinga 2024-02-28 16:58:30 -0800
  • 4513c32bb3 The ycbcrModel should be based on the transfer matrix, not the color primaries Sam Lantinga 2024-02-28 16:55:47 -0800
  • a241cca9e6 Fixed warning C4090: 'function': different 'const' qualifiers Sam Lantinga 2024-02-28 11:45:24 -0800
  • 7117d545a3 Fixed crash if the controller product name is NULL Sam Lantinga 2024-02-28 11:43:22 -0800
  • 353e76b40b Use the correct colorspace for yuv conversion tests Sam Lantinga 2024-02-28 10:03:18 -0800
  • fc94c3634e Fixed signed/unsigned comparison warning Sam Lantinga 2024-02-28 09:06:21 -0800
  • ba34025423 Use direct3d11 as the default renderer on Windows Sam Lantinga 2024-02-28 09:00:36 -0800
  • ad036d43e9
    Vulkan Renderer - implement YcBcCr using VK_KHR_sampler_ycbcr_conversion. (#9169) Dan Ginsburg 2024-02-28 11:57:09 -0500
  • fb3bf1dcbd Fixed device queue initialization when render and present queue families are different Sam Lantinga 2024-02-28 08:54:54 -0800
  • 05f6709617 If the viewport changes the cliprect should be updated Sam Lantinga 2024-02-25 09:37:56 -0800
  • 3a6d01c88b Remove texture_type, address other feedback. danginsburg 2024-02-28 11:00:27 -0500
  • e1838c5957 Fixes from code review. danginsburg 2024-02-28 10:52:59 -0500
  • 945162c6d9 wayland: Small optimization for output removal function Frank Praznik 2024-02-28 09:57:54 -0500
  • 942753d330 Vulkan Renderer - implement YcBcCr using VK_KHR_sampler_ycbcr_conversion. This simplifies the shader code and will also allow support for additional formats that we don't yet support (such as SDL_PIXELFORMAT_P010 for ffmpeg). The renderer now queries for VK_KHR_sampler_ycbcr_conversion and dependent extensions and will enable it if it's present. It reimplements YUV/NV12 texture support using this extension (these formats are no longer supported if the extension is not present). For each YUV/NV12 texture, a VkSamplerYcbcrConversion object is created from SDL_Colorspace parameters. This is passed to the VkImageView and also an additional sampler is created for Ycbcr. Instead of using 1-3 textures, the shaders now all use 1 texture with a combined image sampler (required by the extension). Further, when using Ycbcr, a separate descriptor set layout is baked with the Ycbcr sampler as an immutable sampler. The code to copy the images now copies to the individual image planes. The swizzling between formats is handled in the VkSamplerYcbcrConversion object. danginsburg 2024-02-28 10:14:57 -0500
  • 68588b232c Sync SDL3 wiki -> header SDL Wiki Bot 2024-02-28 15:13:26 +0000
  • e142bb1b0c The extension strings are const and don't need to be duplicated Sam Lantinga 2024-02-27 20:13:15 -0800
  • 0997bdd292 Fixed SDL_calloc() calls (should be count, size) Sam Lantinga 2024-02-27 20:11:45 -0800
  • 614630df69 Allow using an external Vulkan device with the vulkan renderer Sam Lantinga 2024-02-27 18:51:08 -0800
  • e03746b25f cmake: add -Wl,-rpath,${libdir} to Libs section of pc file for Apple platforms Anonymous Maarten 2024-02-25 16:33:46 +0100
  • c8372e20d6 SDLTest_CommonEvent: only set done when it is finished Anonymous Maarten 2024-02-27 11:21:57 +0100
  • 54edd7ff9b The extension strings are const and don't need to be duplicated Sam Lantinga 2024-02-27 20:13:15 -0800
  • 89dcc03627 Fixed SDL_calloc() calls (should be count, size) Sam Lantinga 2024-02-27 20:11:45 -0800
  • 0dcfe3cef5 Allow using an external Vulkan device with the vulkan renderer Sam Lantinga 2024-02-27 18:51:08 -0800
  • 220340e944 Remove SDL_PIXELFORMAT_P010 Sam Lantinga 2024-02-27 12:26:09 -0800
  • 55a18d7268 Remove SDL_PIXELFORMAT_P010 Sam Lantinga 2024-02-27 12:26:09 -0800
  • c259a20f96 wayland: Remove all references to destroyed outputs from windows Frank Praznik 2024-02-27 12:01:19 -0500
  • 84aaf63bd3 Fix typo in SDL_filesystem.h Semphriss 2024-02-27 10:44:09 -0500
  • 9eaf7d8cc8 wayland: Remove all references to destroyed outputs from windows Frank Praznik 2024-02-27 11:16:19 -0500
  • e2c879cc75 wayland: Remove all references to destroyed outputs from windows Frank Praznik 2024-02-27 11:16:19 -0500
  • 838f54a55b
    Fix typo in SDL_filesystem.h Semphriss 2024-02-27 10:44:09 -0500
  • 0a961915dc cmake: testffmpeg requires link to EGL library for EGL feature Anonymous Maarten 2024-02-27 12:28:06 +0100
  • 314123d9b7 SDLTest_CommonEvent: only set done when it is finished Anonymous Maarten 2024-02-27 11:21:57 +0100
  • 24e021c67e testffmpeg: refactored texture creation properties into a single function Sam Lantinga 2024-02-26 16:01:23 -0800
  • ff18d7cfa0 testffmpeg: added pixel format mapping for NV12 and NV21 Sam Lantinga 2024-02-26 15:52:21 -0800
  • 81608ad077 Vulkan: fixed creating SDL_PIXELFORMAT_P010 textures Sam Lantinga 2024-02-26 15:51:13 -0800
  • f99143f437 Don't quit testffmpeg when alt-tabbing away Sam Lantinga 2024-02-26 15:20:56 -0800
  • 80d2ef7384 Fixed uploading Vulkan texture with w*bpp != pitch Sam Lantinga 2024-02-26 15:18:23 -0800
  • 3a796c9722 Allow specifying the render driver in the environment for testffmpeg Sam Lantinga 2024-02-26 15:13:10 -0800
  • dc9a3c83e2 Use the mastering display metadata to do proper tone mapping for HDR content Sam Lantinga 2024-02-26 14:20:11 -0800
  • 98b1a59a95 Document the HDR tone mapping algorithm Sam Lantinga 2024-02-26 14:16:41 -0800
  • 1f536a1e77 cmake: fix SDL_RENDER_VULKAN reporting Anonymous Maarten 2024-02-26 20:37:07 +0100
  • 935c197059 Fix testautomation failures (including clip rect) - closes #9145. During merging for prep'ing the final PR for the Vulkan Renderer, I misordered a memcpy that regressed several of the testautomation test. From now on, I will make sure to run testautomation on any future PRs before submitting. danginsburg 2024-02-26 11:48:10 -0500
  • 3a03ec2e68 Fix testautomation failures (including clip rect) - closes #9145. During merging for prep'ing the final PR for the Vulkan Renderer, I misordered a memcpy that regressed several of the testautomation test. From now on, I will make sure to run testautomation on any future PRs before submitting. danginsburg 2024-02-26 11:48:10 -0500
  • e61dfe405f
    android: Fixed dead URL in comment. Ryan C. Gordon 2024-02-26 11:28:11 -0500
  • 35026cdcba Vulkan Renderer - robustly handle running out of descriptor sets or constant buffer memory. Closes #9131. My previous implementation of descriptor set handling was naive - it attempted to do VULKAN_IssueBatch when running out of descriptor sets or constant buffer space. For one thing, this had a bug and wasn't working (causing the crash), but moreover it would have resulted in having to flush the GPU. Instead, make the descriptor pools and constant buffer mapped buffers be resizeable so that if we need more it will grow to the size that is needed. danginsburg 2024-02-26 11:02:19 -0500
  • 07d86e4d4d Vulkan Renderer - robustly handle running out of descriptor sets or constant buffer memory. Closes #9131. My previous implementation of descriptor set handling was naive - it attempted to do VULKAN_IssueBatch when running out of descriptor sets or constant buffer space. For one thing, this had a bug and wasn't working (causing the crash), but moreover it would have resulted in having to flush the GPU. Instead, make the descriptor pools and constant buffer mapped buffers be resizeable so that if we need more it will grow to the size that is needed. danginsburg 2024-02-26 11:02:19 -0500
  • f976881651 Vulkan: Don't invalidate internal state in InvalidateCachedState David Gow 2024-02-24 22:06:38 +0800
  • c172fb5972 Vulkan: Support 'desired' vs 'required' memory flags (Fix #9310) David Gow 2024-02-25 17:25:59 +0800
  • 1558d52a0a Vulkan: Only return memory types which are a superset of what we need David Gow 2024-02-25 17:04:19 +0800
  • b9639e2a68 call GLES2_ActivateRenderer before SDL_GL_SwapWindow in GLES2_RenderPresent pionere 2024-02-26 09:55:00 +0100
  • fbe7301aba Sync SDL3 wiki -> header SDL Wiki Bot 2024-02-25 23:55:23 +0000
  • e223e1d498 Added SDL_camera.h to the public Framework headers Sam Lantinga 2024-02-25 15:54:09 -0800
  • be51b7acea Use the maximum potential headroom if EDR content isn't currently being displayed. Sam Lantinga 2024-02-25 15:46:38 -0800
  • e0dadba6f5 Sync SDL3 wiki -> header SDL Wiki Bot 2024-02-25 22:26:23 +0000
  • e6d9251ecb docs: improve CMake documentation for Apple Anonymous Maarten 2024-02-25 03:06:45 +0100
  • c6d3325e02 cmake: add -Wl,-rpath,${libdir} to Libs section of pc file for Apple platforms Anonymous Maarten 2024-02-25 16:33:46 +0100
  • 7a9c6c7ce9 Include SDL_PIXELFORMAT_P010 as a supported format for the metal renderer Sam Lantinga 2024-02-25 13:55:52 -0800
  • d211da75ac Fixed crash if app delegate method is called when SDL isn't initialized Sam Lantinga 2024-02-25 13:38:47 -0800
  • 31cb52d898 Merge branch 'dualshock3-hidapi-win' of https://github.com/ricky65/SDL into dualshock3-hidapi-win Riccardo Marcangelo 2024-02-25 18:20:15 +0000
  • 57a851b5d0 Fix for error: 'HIDAPI_DriverPS3_HandleMiniStatePacket' defined but not used Riccardo Marcangelo 2024-02-25 18:20:04 +0000
  • 9dbbf0a2f7 Implemented clip rect functionality for the Vulkan renderer Sam Lantinga 2024-02-25 10:13:59 -0800
  • 141497b14f Added an automated test to verify clip rect functionality Sam Lantinga 2024-02-25 09:44:41 -0800
  • fb4ebda300
    Merge branch 'libsdl-org:main' into dualshock3-hidapi-win Riccardo Marcangelo 2024-02-25 17:43:17 +0000
  • d0af01e7d4 If the viewport changes the cliprect should be updated Sam Lantinga 2024-02-25 09:37:56 -0800
  • 1cae52bbac Added JNI native methods to proguard-rules.pro (thanks @AntTheAlchemist!) Sam Lantinga 2024-02-25 08:40:47 -0800
  • b8a52c1237 Vulkan: Make sure validation layer name is in-scope David Gow 2024-02-25 16:35:34 +0800
  • 84425641b4 Updated comment - DualShock 3 HIDAPI support on Windows with Sony sixaxis.sys driver Riccardo Marcangelo 2024-02-25 15:36:14 +0000
  • e4faf5d53e Added DualShock 3 HIDAPI support on Windows Riccardo Marcangelo 2024-02-25 15:08:49 +0000
  • 1cd0e5e554
    Create cmake-toolchain-arm-linux-gnueabihf.cmake Xander 2024-02-25 14:29:29 +0000
  • 35309404a0
    Vulkan: Support 'desired' vs 'required' memory flags (Fix #9310) David Gow 2024-02-25 17:25:59 +0800
  • 143f24a825
    Vulkan: Only return memory types which are a superset of what we need David Gow 2024-02-25 17:04:19 +0800
  • fd031c21dc
    Vulkan: Make sure validation layer name is in-scope David Gow 2024-02-25 16:35:34 +0800
  • 276566235c Removed SDL_ClearHints() from the public API Sam Lantinga 2024-02-24 20:29:39 -0800
  • b884b1af36 Removed SDL_ClearHints() from the public API Sam Lantinga 2024-02-24 20:29:39 -0800
  • a1ea706215 Added names for the newly supported pixel formats Sam Lantinga 2024-02-24 20:13:59 -0800
  • f6c42406cd SDL_COLORSPACE_HDR10 is the default colorspace for SDL_PIXELFORMAT_P010 surfaces Sam Lantinga 2024-02-24 20:02:11 -0800
  • 4c5584174b Fixed error: declaration shadows a local variable [-Werror,-Wshadow] Sam Lantinga 2024-02-24 20:04:07 -0800
  • 2b0e7c40ef Verify that we can create pipeline state objects for the D3D12 renderer Sam Lantinga 2024-02-24 19:55:10 -0800
  • 90924381aa docs: improve CMake documentation for Apple Anonymous Maarten 2024-02-25 03:06:45 +0100
  • 5593ddb6a7 cmake: X11 is for Video, not Audio Anonymous Maarten 2024-02-24 17:31:48 +0100
  • d3fe22ee27
    Vulkan: Don't invalidate internal state in InvalidateCachedState David Gow 2024-02-24 22:06:38 +0800
  • f345428367 ci: update deprecated node.js 16 actions scribam 2024-02-23 21:20:30 +0100
  • 455adb6b67 Remove unused SDL_HINT_ANDROID_TRAP_BACK_BUTTON hint Anonymous Maarten 2024-02-23 22:10:43 +0100
  • 9a65d123a7 ci: update deprecated node.js 16 actions scribam 2024-02-23 21:20:30 +0100
  • 38d24778ed ci: update deprecated node.js 16 actions scribam 2024-02-23 21:20:30 +0100
  • e4287595c1 ci: bump cross-platform-actions/action version to v0.23.0 scribam 2024-02-23 20:57:58 +0100
  • f11a033109 ci: update deprecated node.js 16 actions scribam 2024-02-23 21:20:30 +0100
  • fdbf233cfb ci: bump cross-platform-actions/action version to v0.23.0 scribam 2024-02-23 20:57:58 +0100
  • cbe330befd ci: bump cross-platform-actions/action version to v0.23.0 scribam 2024-02-23 20:57:58 +0100