src/render/vitagxm


Log

Author Commit Date CI Message
Sam Lantinga 3f1fd5ab 2023-05-23T10:59:03 Updated source to match SDL function prototype style
Sam Lantinga 0479df53 2023-01-09T09:48:21 Updated copyright for 2023
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)
Sylvain ce5da5d5 2022-11-16T21:47:43 Don't compare pointer against '0', but NULL
zll 69bbe4ce 2022-09-29T15:50:50 Fix memory leak in VITA_GXM_CreateRenderer
Sam Lantinga d744aafb 2022-09-15T01:00:12 Added support for simulated vsync in the renderer This kicks in if the platform doesn't support vsync directly, or if the present fails for some reason (e.g. minimized on some platforms) Fixes https://github.com/libsdl-org/SDL/issues/5134
Ivan Epifanov b2f07d94 2022-06-26T15:53:13 Vita: create rendertarget color surface with same format as texture. Fixes #5844
Sam Lantinga adc68758 2022-06-17T10:22:28 Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!) Closes https://github.com/libsdl-org/SDL/pull/5811
Jaylon Gowie d9009388 2022-04-19T14:55:58 SceKernelMemBlockType to unsigned int
Jaylon Gowie 3753a7b1 2022-04-19T14:42:39 Fix recent changes in VitaSDK
Ivan Epifanov 95ed8313 2022-03-25T15:22:10 Vita: Use preallocated memory pool for textures
Ivan Epifanov 69d0b6e3 2022-03-25T15:18:39 Vita: Fix NULL-pointer dereference
Ivan Epifanov eadc064e 2022-03-23T19:14:28 Vita: add native YUV textures support. * Fail if texture init fails. * Refactor and cleanup.
pionere ce1883e1 2022-02-05T12:12:21 fix compile error with disabled SDL_HAVE_YUV (vita) - UpdateTextureYUV is not defined if SDL_HAVE_YUV is not defined/zero + calling SDL_free suffice if the VITA_GXM_RenderData was just allocated
Ryan C. Gordon c275436f 2022-01-09T00:39:02 opengles2: Batching lines/points used wrong var for summing vertex counts. Fixed this in the vitagxm backend too, but I don't know what the state of that code is otherwise. Reference Issue #5061.
Sam Lantinga 120c76c8 2022-01-03T09:40:00 Updated copyright for 2022
Alex Szpakowski 3a5e148b 2021-12-14T11:02:07 Renderer backends use SDL_Color instead of int for geometry colors.
Sylvain 8dd6edec 2021-11-23T09:30:42 Fixed bug #3232 - Integer overflow generates Illegal instruction under sanitizers + see bug #4995
Sylvain aef71054 2021-11-22T16:58:04 Use SDL_free
Sylvain d31251b0 2021-11-21T22:30:48 use SDL's functions version inplace of libc version
Ivan Epifanov 848d7b12 2021-11-02T16:12:55 Vita: Implement command batching
Ivan Epifanov 3f7a94fc 2021-11-02T15:16:48 Vita: Remove FillRects
Northfear fba82ad1 2021-10-31T12:38:08 Remove sceGxmFinish from RenderPresent on Vita. Make sure that rendering is finished on render texture during locking
Sylvain 79732c9d 2021-09-25T11:35:20 Remove FillRects from back-end, where RenderGeometry can be used
Sylvain 0e5160a0 2021-09-20T17:01:33 VITA: remove RenderCopy and RenderCopyEx from back-end
Northfear 14f22519 2021-09-26T18:11:22 Use SDL_calloc for allocation of gxm_texture
Northfear 52921563 2021-09-22T21:23:42 End Scene on RunCommandQueue on Vita
Northfear 3b2fbb1c 2021-09-20T23:44:22 End current scene before destroying the texture on Vita
Northfear fc4296c1 2021-09-20T23:02:43 Use aligned stride in sceGxmColorSurfaceInit
Northfear 7080bc2a 2021-09-20T23:02:01 Fallback to SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE if CDRAM texture allocation fails
Ryan C. Gordon 5faea84c 2021-09-18T11:54:25 render: Mark viewport/cliprect dirty when window is resized. Fixes #4751.
Ivan Epifanov 79ec8986 2021-09-16T12:47:45 Vita: refactor gxm texture render and add SDL_RenderGeometry support
Misa 4549769d 2021-03-07T15:20:45 Add `SDL_RenderSetVSync()` Currently, if an application wants to toggle VSync, they'd have to tear down the renderer and recreate it. This patch fixes that by letting applications call SDL_RenderSetVSync(). This is the same as the patch in #3673, except it applies to all renderers (including PSP, even thought it seems that the VSync flag is disabled for that renderer). Furthermore, the renderer flags also change as well, which #3673 didn't do. It is also an API instead of using hint callbacks (which could be potentially dangerous). Closes #3673.
Ivan Epifanov 10d3df44 2021-09-09T12:46:28 Vita: fix copyright dates
Ivan Epifanov f806064e 2021-07-19T13:12:10 Remove 'support' for rgb/bgr textures, that was causing issues with them
Ivan Epifanov 817976da 2021-07-13T13:45:28 VITA: Rewrite and fix RenderCopyEx rotation
Ivan Epifanov b55ee12f 2021-06-21T23:56:04 Vita: fix clip rectangle
Ivan Epifanov e41d3e61 2021-06-21T23:15:37 VIta: fix render clearing
Ivan Epifanov 6b122805 2021-06-21T23:14:56 Vita: proper syntax
Ivan Epifanov 32deb6f7 2021-06-21T23:14:40 Vita: fix point size
Ivan Epifanov 3b6e9992 2021-06-23T14:57:04 Vita: remove unused variable and allow Razor perf analysis
Ivan Epifanov 8da0dd17 2021-06-15T18:54:52 Oops. Renderer already queues viewport change
Ivan Epifanov 1fc51988 2021-06-15T18:49:55 Reset/re-apply viewport on frame start/target change. Fixes SDL_RenderSetLogicalSize on PSVita
Ivan Epifanov a4442476 2021-06-10T12:14:14 Cleanup dead and duplicate code
Ivan Epifanov e58a955e 2021-03-08T18:39:00 Deprecate dolcesdk
uyjulian c8abc88c 2021-01-29T01:26:35 Add support for message box
José Cadete 91fe2b67 2021-02-19T18:52:19 Allow larger texture sizes
José Cadete 739f4e1e 2021-02-01T23:14:28 Only call sceGxmFinish when vsync is on Also fix oversight with supported textures
José Cadete ddfe7200 2021-01-18T15:00:50 Rendering improvements - Improve performance for unbatched rendering - Support direct texture access
Ivan Epifanov c7cec2c7 2021-01-11T20:45:12 Add more texture formats
Ivan Epifanov 7d89f09f 2020-12-18T14:28:09 ISO C90 fixes
Ivan Epifanov 0da35d3d 2020-12-12T23:47:15 IME support with gxm backend
Ivan Epifanov 639323ea 2020-12-09T14:38:43 Fixed gxm render flags
Ivan Epifanov 05e5a7cb 2020-11-29T22:07:53 Oops
Ivan Epifanov a86ba391 2020-11-28T00:32:32 Add SDL_RenderReadPixels
Ivan Epifanov f623211e 2020-11-25T00:29:04 remove sceGxmFinish on render swap
Ivan Epifanov 0b45529e 2020-11-25T00:19:18 Add viewport support
Ivan Epifanov 2209b717 2020-11-24T18:12:38 Refactor render state
Ivan Epifanov 333d5e11 2020-11-23T20:15:39 Add drawstate cache
Ivan Epifanov 56bde0f6 2020-11-23T18:31:23 Rename memory functions to avoid clash with vita2d
Ivan Epifanov 94d7737b 2020-11-23T12:45:51 Texture render target
Ivan Epifanov 63e223fa 2020-11-23T12:45:09 Set initial blend mode
Ivan Epifanov 6ba84975 2020-11-21T23:04:27 Remove vita2d render, add raw gxm render