src/video/SDL_vulkan_utils.c


Log

Author Commit Date CI Message
Sam Lantinga b8d85c69 2022-11-30T12:51:59 Update for SDL3 coding style (#6717) I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base. In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted. The script I ran for the src directory is added as build-scripts/clang-format-src.sh This fixes: #6592 #6593 #6594 (cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
Sylvain Becker fb0ce375 2022-11-27T17:38:43 Cleanup add brace (#6545) * Add braces after if conditions * More add braces after if conditions * Add braces after while() conditions * Fix compilation because of macro being modified * Add braces to for loop * Add braces after if/goto * Move comments up * Remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements after merge * Fix inconsistent patterns are xxx == NULL vs !xxx * More "{}" for "if() break;" and "if() continue;" * More "{}" after if() short statement * More "{}" after "if () return;" statement * More fix inconsistent patterns are xxx == NULL vs !xxx * Revert some modificaion on SDL_RLEaccel.c * SDL_RLEaccel: no short statement * Cleanup 'if' where the bracket is in a new line * Cleanup 'while' where the bracket is in a new line * Cleanup 'for' where the bracket is in a new line * Cleanup 'else' where the bracket is in a new line (cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
Sam Lantinga 120c76c8 2022-01-03T09:40:00 Updated copyright for 2022
Sylvain a74f888f 2021-04-29T22:25:00 Fixed bug #4337 - compilation of 'SDL_vulkan_utils' fails with 'VK_ERROR_INCOMPATIBLE_VERSION_KHR' undeclared
Sylvain Becker 549bc133 2021-02-03T09:51:42 SDL_vulkan_utils: minor code clean-up
Sam Lantinga 9130f7c3 2021-01-02T10:25:38 Updated copyright for 2021
Sam Lantinga 5dc6c3c9 2020-10-24T10:46:18 Updated Vulkan headers to version 1.2.158 https://github.com/KhronosGroup/Vulkan-Headers
Sam Lantinga b6afbe63 2020-04-07T09:38:57 Added SDL_log.h to SDL_internal.h so logging is available everywhere
Sam Lantinga a8780c6a 2020-01-16T20:49:25 Updated copyright date for 2020
Ryan C. Gordon 32ead2cb 2019-06-12T15:37:07 vulkan: Fixed use-after-free bug.
Ryan C. Gordon 5fb20b30 2019-06-11T02:14:59 video: fixed compiler warning on Visual Studio.
Ryan C. Gordon 4bd80834 2019-05-20T00:41:18 vulkan: Swapped out a free() that should have been an SDL_free(). Fixes (for real this time!) the Visual Studio builds.
Ryan C. Gordon ebbb295e 2019-05-19T23:29:50 vulkan: Patched to compile on Visual Studio.
Ryan C. Gordon d778b26d 2019-05-19T20:25:02 Patched to compile in C89 mode.
Wladimir J. van der Laan 29f34453 2019-05-19T10:36:44 video: Add Vulkan support for vivante fb Vivante drivers use the VK_KHR_display extension for rendering directly to the frame buffer. This patch adds support to the video driver for Vulkan rendering using that method. - Add an utility function SDL_Vulkan_Display_CreateSurface that creates a surface using this extension. The display to use (if there are multiple) can be overridden using the environment variable "SDL_VULKAN_DISPLAY". - Use this function in a new compilation unit SDL_vivantevideo.c, which implements the SDL_VIDEO_VULKAN methods of the driver structure.
Sam Lantinga 5e13087b 2019-01-04T22:01:14 Updated copyright for 2019
Sam Lantinga 5febdfce 2018-09-24T11:49:25 Fixed whitespace
Sam Lantinga 509db8af 2018-01-17T13:12:39 Fixed formatting, added actual count to SDL error message
John Bartholomew f9bdce61 2018-01-14T13:34:50 Vulkan: Allow SDL_Vulkan_GetInstanceExtensions to be called with a larger array than necessary.
Sam Lantinga e3cc5b2c 2018-01-03T10:03:25 Updated copyright for 2018
Mark Callow 59d17bde 2017-09-22T22:30:02 Avoid hitting ERR_MAX_STRLEN limit.
Sam Lantinga 93415899 2017-08-28T13:40:32 Removed unneeded Vulkan symbol definitions
Sam Lantinga edaa0ef5 2017-08-28T00:54:02 Fixed analyzer warning "Call to 'calloc' has an allocation size of 0 bytes"
Sam Lantinga ce2b1644 2017-08-28T00:11:38 Be clear that disabling Vulkan surface support disables the entire SDL Vulkan integration
Ryan C. Gordon 25e3a1ec 2017-08-27T22:15:57 vulkan: Initial Vulkan support! This work was done by Jacob Lifshay and Mark Callow; I'm just merging it into revision control.