rpcsx/rpcs3/Emu/RSX/GL
Elad 575a245f8d
IDM: Implement lock-free smart pointers (#16403)
Replaces `std::shared_pointer` with `stx::atomic_ptr` and `stx::shared_ptr`.

Notes to programmers:

* This pr kills the use of `dynamic_cast`, `std::dynamic_pointer_cast` and `std::weak_ptr` on IDM objects, possible replacement is to save the object ID on the base object, then use idm::check/get_unlocked to the destination type via the saved ID which may be null. Null pointer check is how you can tell type mismatch (as dynamic cast) or object destruction (as weak_ptr locking).
* Double-inheritance on IDM objects should be used with care, `stx::shared_ptr` does not support constant-evaluated pointer offsetting to parent/child type.
* `idm::check/get_unlocked` can now be used anywhere.

Misc fixes:
* Fixes some segfaults with RPCN with interaction with IDM.
* Fix deadlocks in access violation handler due locking recursion.
* Fixes race condition in process exit-spawn on memory containers read.
* Fix bug that theoretically can prevent RPCS3 from booting - fix `id_manager::typeinfo` comparison to compare members instead of `memcmp` which can fail spuriously on padding bytes.
* Ensure all IDM inherited types of base, either has `id_base` or `id_type` defined locally, this allows to make getters such as `idm::get_unlocked<lv2_socket, lv2_socket_raw>()` which were broken before. (requires save-states invalidation)
* Removes broken operator[] overload of `stx::shared_ptr` and `stx::single_ptr` for non-array types.
2024-12-22 20:59:48 +02:00
..
glutils gl: Fix check_state compilation error 2024-10-23 16:33:44 +03:00
upscalers gl: Finalize host labels implementation 2024-10-23 16:33:44 +03:00
GLCommonDecompiler.cpp Remove HERE macro 2020-12-10 12:30:22 +03:00
GLCommonDecompiler.h gl/vk: Add constexpr to varying_registers and sync functions between the two backends 2019-06-12 10:59:31 +01:00
GLCompute.cpp rsx: Use a proper struct to wrap around channel remap operations 2024-10-03 15:02:09 +03:00
GLCompute.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
GLDMA.cpp Fix build and cleanup 2024-10-23 16:33:44 +03:00
GLDMA.h gl: Finalize host labels implementation 2024-10-23 16:33:44 +03:00
GLDraw.cpp rsx: Use a proper struct to wrap around channel remap operations 2024-10-03 15:02:09 +03:00
GLFragmentProgram.cpp rsx: Drop hard requirement for GL_EXT_shader_integer_mix 2024-06-10 20:41:45 +03:00
GLFragmentProgram.h gl: Refactor the rest of GLHelpers 2022-07-13 02:09:58 +03:00
GLGSRender.cpp rsx: Fix OpenGL deadlock 2024-12-16 19:00:08 +03:00
GLGSRender.h gl: Finalize host labels implementation 2024-10-23 16:33:44 +03:00
GLHelpers.cpp gl: Refactor the rest of GLHelpers 2022-07-13 02:09:58 +03:00
GLHelpers.h Decrease some include madness 2023-04-26 21:37:44 +02:00
GLOverlays.cpp Vk/Gl/Overlays: Do not blend the alpha channel when rendering overlays 2024-08-28 01:19:15 +03:00
GLOverlays.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
GLPipelineCompiler.cpp Linux: use futex_waitv syscall for atomic waiting 2023-08-02 21:46:06 +03:00
GLPipelineCompiler.h gl: Refactor the rest of GLHelpers 2022-07-13 02:09:58 +03:00
GLPresent.cpp gl: Fixes for asahi linux 2024-08-01 14:14:56 +03:00
GLProcTable.h gl: Add support for capture debug markers 2022-11-22 12:15:18 +03:00
GLProgramBuffer.h rsx: make some functions const 2024-06-11 20:35:49 +02:00
GLRenderTargets.cpp rsx: Remove framebuffer_status_valid flag and move to state 2023-01-26 11:42:39 +03:00
GLRenderTargets.h rsx: Properly propagate surface properties on surface reuse. 2024-01-19 12:34:31 +03:00
GLShaderInterpreter.cpp Add -Werror=implicit-fallthrough to cmake build 2024-01-07 17:29:43 +01:00
GLShaderInterpreter.h gl: Refactor the rest of GLHelpers 2022-07-13 02:09:58 +03:00
GLTexture.cpp gl: Finalize host labels implementation 2024-10-23 16:33:44 +03:00
GLTexture.h formatting 2023-04-19 14:21:15 +03:00
GLTextureCache.cpp rsx: Use a proper struct to wrap around channel remap operations 2024-10-03 15:02:09 +03:00
GLTextureCache.h gl: Finalize host labels implementation 2024-10-23 16:33:44 +03:00
GLVertexBuffers.cpp rsx: Drop format information from the vertex cache and use a simpler model that is much faster 2023-06-10 01:36:10 +03:00
GLVertexProgram.cpp Decrease some include madness 2023-04-26 21:37:44 +02:00
GLVertexProgram.h rsx: Add a base class for vertex programs and implement range intersection for constant IDs 2024-05-12 21:26:25 +03:00
OpenGL.cpp Fix OpenGL behavior under wayland-egl 2024-08-12 04:55:26 +03:00
OpenGL.h rsx: Make X11 optional on Linux 2019-12-20 10:48:03 +00:00