summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-03-05aes_util: Remove malformed mbedtls_cipher_finish function callMorph
2021-03-04Merge pull request #5989 from ReinUsesLisp/cmdpoolbunnei
vk_command_pool: Reduce the command pool size from 4096 to 4
2021-03-03Merge pull request #6004 from german77/udprandombunnei
InputCommon: Use an unique client id for each udp socket instance
2021-03-02Merge pull request #5815 from comex/net-error-reformbunnei
Network error handling reform
2021-03-01core: Shutdown: Move kernel cleanup to later in shutdown.bunnei
- Fixes a shutdown crash due to a race condition with GPU still accessing memory.
2021-03-02Fix default bcat_backend initKelebek1
2021-03-01inputCommon: Use an unique client id for each socket instancegerman
2021-02-28gpu_thread: Remove Async NVDEC placeholdersameerj
This commit removes early placeholders for an implementation of async nvdec. With recent changes to the source code, the placeholders are no longer accurate, and can cause a nullptr dereference due to the nature of the cdma_pusher lifetime.
2021-02-28[network] Error handling reformcomex
`network.cpp` has several error paths which either: - report "Unhandled host socket error=n" and return `SUCCESS`, or - switch on a few possible errors, log them, and translate them to Errno; the same switch statement is copied and pasted in multiple places in the code Convert these paths to use a helper function `GetAndLogLastError`, which is roughly the equivalent of one of the switch statements, but: - handling more cases (both ones that were already in `Errno`, and a few more I added), and - using OS functions to convert the error to a string when logging, so it'll describe the error even if it's not one of the ones in the switch statement. - To handle this, refactor the logic in `GetLastErrorMsg` to expose a new function `NativeErrorToString` which takes the error number explicitly as an argument. And improve the Windows version a bit. Also, add a test which exercises two random error paths.
2021-02-28Merge pull request #6007 from bunnei/ldn-errorbunnei
core: hle: ldn: Error out on call to Initialization.
2021-02-27Merge pull request #5276 from german77/gesturesMorph
HID: Implement gestures
2021-02-27Implements touch, pan, pinch and rotation gesturesgerman
2021-02-27Merge pull request #5984 from jbeich/gcc-freebsdbunnei
common,video-core: unbreak GCC 11 build on FreeBSD 13
2021-02-27core: hle: ldn: Error out on call to Initialization.bunnei
- Since we do not emulate LDN, returning an error here makes more sense.
2021-02-27Merge pull request #5953 from bunnei/memory-refactor-1bunnei
Kernel Rework: Memory updates and refactoring (Part 1)
2021-02-26Merge pull request #5944 from Morph1984/gc-vibrationsbunnei
hid: Implement GameCube Controller Vibrations
2021-02-26Merge pull request #5997 from Kelebek1/Depthbunnei
[OpenGL] Implement glDepthRangeIndexeddNV
2021-02-24Merge pull request #5977 from Morph1984/stub-accbunnei
acc: Stub GetNintendoAccountUserResourceCacheForApplication
2021-02-24Implement glDepthRangeIndexeddNVKelebek1
2021-02-23vk_command_pool: Reduce the command pool size from 4096 to 4ReinUsesLisp
This allows drivers to reuse memory more easily and preallocate less. The optimal number has been measured booting Pokémon Sword.
2021-02-23video_core: add missing header after 468bd9c1b0f9Jan Beich
src/video_core/shader_notify.cpp: In member function 'void VideoCore::ShaderNotify::MarkShaderComplete()': src/video_core/shader_notify.cpp:33:10: error: 'unique_lock' is not a member of 'std' 33 | std::unique_lock lock{mutex}; | ^~~~~~~~~~~ src/video_core/shader_notify.cpp:6:1: note: 'std::unique_lock' is defined in header '<mutex>'; did you forget to '#include <mutex>'? 5 | #include "video_core/shader_notify.h" +++ |+#include <mutex> 6 | src/video_core/shader_notify.cpp: In member function 'void VideoCore::ShaderNotify::MarkSharderBuilding()': src/video_core/shader_notify.cpp:38:10: error: 'unique_lock' is not a member of 'std' 38 | std::unique_lock lock{mutex}; | ^~~~~~~~~~~ src/video_core/shader_notify.cpp:38:10: note: 'std::unique_lock' is defined in header '<mutex>'; did you forget to '#include <mutex>'?
2021-02-23common: add missing header after f3805376f726Jan Beich
In file included from src/video_core/dma_pusher.cpp:5: src/./common/cityhash.h:69:47: error: 'size_t' has not been declared 69 | [[nodiscard]] u64 CityHash64(const char* buf, size_t len); | ^~~~~~ src/./common/cityhash.h:73:55: error: 'size_t' has not been declared 73 | [[nodiscard]] u64 CityHash64WithSeed(const char* buf, size_t len, u64 seed); | ^~~~~~ src/./common/cityhash.h:77:56: error: 'size_t' has not been declared 77 | [[nodiscard]] u64 CityHash64WithSeeds(const char* buf, size_t len, u64 seed0, u64 seed1); | ^~~~~~ src/./common/cityhash.h:80:47: error: 'size_t' has not been declared 80 | [[nodiscard]] u128 CityHash128(const char* s, size_t len); | ^~~~~~ src/./common/cityhash.h:84:55: error: 'size_t' has not been declared 84 | [[nodiscard]] u128 CityHash128WithSeed(const char* s, size_t len, u128 seed); | ^~~~~~
2021-02-21Merge pull request #5936 from Kelebek1/Offsetsbunnei
Offsets for TexelFetch and TextureGather in Vulkan
2021-02-21hid: Implement GameCube Controller VibrationsMorph
Implements both SendVibrationGcErmCommand and GetActualVibrationGcErmCommand, and modifies GetVibrationDeviceInfo to account for additional controllers.
2021-02-21acc: Stub GetNintendoAccountUserResourceCacheForApplicationMorph
This command returns a Nintendo Account ID and writes 2 output buffers. The first output buffer is a NasUserBaseForApplication and the second output buffer is currently empty. Used by: - Pokken Tournament DX - Super Smash Bros. Ultimate - Super Nintendo Entertainment System - Nintendo Switch Online - Mario Kart 8 Deluxe
2021-02-20kernel: Fix resource release exception on exitameerj
After rewriting the resource limit, objects releasing reserved resources require a live kernel instance. This commit fixes exceptions that occur due to the kernel being destroyed before some objects released their resources, allowing for a graceful exit.
2021-02-20gl_disk_shader_cache: Log total shader entries count on game loadMorph
2021-02-19common: wall_clock: Fix integer overflow with StandardWallClock.bunnei
- Previous optimized impl. resulted in an integer overflow, so revert. - This is our slow/fallback path that should never be really be used, so the optimization in unimportant.
2021-02-19Merge pull request #5924 from ReinUsesLisp/inline-bindingsbunnei
vk_update_descriptor: Inline and improve code for binding buffers
2021-02-18hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.bunnei
2021-02-18hle: kernel: Migrate MemoryManager to KMemoryManager.bunnei
2021-02-18hle: kernel: Migrate PageLinkedList to KPageLinkedList.bunnei
2021-02-18hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.bunnei
2021-02-18hle: kernel: Migrate SlabHeap to KSlabHeap.bunnei
2021-02-18hle: kernel: Migrate MemoryLayout to KMemoryLayout.bunnei
2021-02-18hle: kernel: Migrate AddressSpaceInfo to KAddressSpaceInfo.bunnei
2021-02-18hle: kernel: memory_manager: Rename AllocateContinuous to AllocateContinuous.bunnei
2021-02-18hle: kernel: KSystemControl does not belong in Memory namespace.bunnei
2021-02-18hle: kernel: memory: PageHeap: Migrate to KPageBitmap class.bunnei
2021-02-18hle: kernel: Add KPageBitmap class.bunnei
2021-02-18hle: kernel: system_control: Add function GenerateRandomU64.bunnei
2021-02-18common: Add implementation of TinyMT (Mersenne Twister RNG).bunnei
2021-02-18hle: kernel: Add KSpinLock implementation.bunnei
2021-02-18core: memory: Add templated GetPointer methods.bunnei
2021-02-18common: alignment: Add DivideUp utility method.bunnei
2021-02-18hle: kernel: Rename SharedMemory to KSharedMemory.bunnei
2021-02-18Merge pull request #4973 from ameerj/nvdec-optbunnei
nvdec: Reuse allocated buffers and general cleanup
2021-02-18Revert "Port citra-emu/citra#5123: "SDL: Disable hidapi drivers due to ↵Morph
compatibility problems with certain controllers""
2021-02-18common/cityhash: Use common typesReinUsesLisp
Allow sharing return types with the rest of the code base. For example, we use 'u128 = std::array<u64, 2>', meanwhile Google's code uses 'uint128 = std::pair<u64, u64>'. While we are at it, use size_t instead of std::size_t.
2021-02-18tests: Add tests for CityHashReinUsesLisp