summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-21hle: kernel: KThread: Ensure host (dummy) threads block on locking.bunnei
- But do not enter the priority queue, as otherwise they will be scheduled. - Allows dummy threads to use guest synchronization primitives.
2022-01-20hle: kernel: Remove redundant tracking of dummy threads.bunnei
- These are already tracked by kernel's registered_objects member.
2022-01-20hle: kernel: KThread: DummyThread can be waited, ensure wait_queue is not ↵bunnei
nullptr.
2022-01-20hle: kernel: KThread: Decrease DummyThread priority to ensure it is never ↵bunnei
scheduled.
2022-01-20hle: kernel: service_thread: Ensure dummy thread is closed & destroyed on ↵bunnei
thread exit.
2022-01-20hle: kernel: KServerSession: Remove hack for CompleteSyncRequest.bunnei
- This does not appear to be necessary anymore.
2022-01-20hle: kernel: KServerSession: Simplify CompleteSyncRequest EndWait.bunnei
- Considering is_thread_waiting is never set, so we can remove IsThreadWaiting. - KThread::EndWait will take the scheduler lock, so we can remove the redundant lock.
2022-01-20hle: kernel: KThread: Ensure dummy threads never call EndWait.bunnei
- These are only used by host threads for locking and will never have a wait_queue.
2022-01-20hle: kernel: KScheduler: Ensure dummy threads are never scheduled.bunnei
- These are only used by host threads for locking.
2022-01-20hle: kernel: KThread: Rename thread_type_for_debugging -> thread_type.bunnei
- This will be used to ensure that we do not schedule dummy threads.
2022-01-20Merge pull request #7710 from german77/just-shake-itbunnei
core/hid: Increment shake force
2022-01-20Merge pull request #7749 from jbeich/ffmpeg5Mai M
video_core: unbreak build with FFmpeg 5.0
2022-01-20video_core: constify AVCodec for ffmpeg >= 5.0Jan Beich
src/video_core/command_classes/codecs/codec.cpp:177:16: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers av_codec = avcodec_find_decoder(codec); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-01-19Merge pull request #7726 from german77/clampMorph
service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClamp
2022-01-19Merge pull request #7747 from DadSchoorse/fix-anv-64bit-atomic-stypeFernando S
vulkan_device: Fix sType for VkPhysicalDeviceShaderAtomicInt64Features
2022-01-19service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClampgerman77
2022-01-19vulkan_device: Fix sType for VkPhysicalDeviceShaderAtomicInt64FeaturesGeorg Lehmann
2022-01-18Merge pull request #7701 from bunnei/clear-mem-pagesbunnei
Kernel Memory Updates (Part 3): Clear KMemoryManager pages & other fixes
2022-01-18Merge pull request #7715 from gidoly/patch-4bunnei
Xbox controller default name nit pick
2022-01-18Merge pull request #7725 from german77/mouse_in_motionbunnei
input_common: Reintroduce motion from mouse and use button names
2022-01-17Merge pull request #7712 from bunnei/fix-thread-exitbunnei
Accurately implement thread exit
2022-01-17Merge pull request #7724 from ameerj/astc_new_nvbunnei
astc_decoder: Combine FastReplicate functions to work around new NV driver bug
2022-01-17Merge pull request #7732 from v1993/patch-7bunnei
kernel: remove no-op code
2022-01-17Merge pull request #7730 from v1993/patch-6Mai M
input_common: nitpick about SetHatButton usage
2022-01-17Merge pull request #7729 from v1993/patch-5Mai M
input_common: fix copy-paste error
2022-01-17Merge pull request #7728 from v1993/patch-4Mai M
hid: fix std::transform call
2022-01-17Merge pull request #7727 from v1993/patch-3Mai M
hid: Correct assignment source for rotations
2022-01-17hle: remove no-op codeValeri
Found by static analysis with PVS-Studio. Nobody seems to really know what was it doing there.
2022-01-17Merge pull request #7719 from gidoly/patch-6bunnei
Change default theme to Dark colorful
2022-01-17input_common: nitpick about SetHatButton usageValeri
2022-01-17input_common: fix copy-paste errorValeri
Found by static analysis with PVS-Studio.
2022-01-17hid: fix std::transform callValeri
Found by static analysis with PVS-Studio.
2022-01-17uisettings: Add enumeration type for themesMorph
Eliminates the usage of a magic number to indicate the default index of the themes array,
2022-01-17config: Change default theme to Dark Colorfulgidoly
2022-01-17Correct assignment source for rotationsValeri
Found by static analysis with PVS-Studio
2022-01-16input_common: Reintroduce motion from mouse and use button namesgerman77
2022-01-16astc_decoder: Combine FastReplicate functions to work around new NV driver bugameerj
The new Nvidia drivers have a bug where the FastReplicateTo6 function produces a lookup into the REPLICATE_TO_8 table rather than the REPLICATE_TO_6 table. This seems to be an optimization gone wrong. Combining the logic of the FastReplicate functions seems to address the bug.
2022-01-16Xbox controller default name nit pickgidoly
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
2022-01-15Merge pull request #7713 from gidoly/patch-3bunnei
Change default name for playstation controllers
2022-01-14Merge pull request #7711 from bunnei/fix-service-thread-race-v2bunnei
hle: kernel: Fix service_threads access to be thread safe V2.
2022-01-14hle: kernel: k_memory_manager: Clear pages on allocation & free.bunnei
- Heap pages should be zero'd. - Also explicitly passed along heap allocation option.
2022-01-15Change default name for ps controllersgidoly
Minor nitpick Code is from narr
2022-01-14Merge pull request #7707 from german77/slow-updatebunnei
service/hid: Decrease motion update rate
2022-01-14core: hle: kernel: KThread: Integrate with KWorkerTask and implement ↵bunnei
DoWorkerTaskImpl. - This is used to terminate a thread asynchronously after it has been exited. - This fixes a crash that can occur in Pokemon Sword/Shield because a thread is incorrectly closed on svcExitThread, then, the thread is destroyed on svcCloseHandle while it is still scheduled. - Instead, we now wait for the thread to no longer be scheduled on all cores before destroying it from KWorkerTaskManager, which is accurate to HOS behavior.
2022-01-14core: hle: kernel: KProcess: Integrate with KWorkerTask and add ↵bunnei
unimplemented DoWorkerTaskImpl.
2022-01-14core: hle: kernel: KThread: Replace Suspend with UpdateState & various updates.bunnei
- This makes our implementations of these more closely match HOS.
2022-01-14core: hle: kernel: Instantiate a kernel instance of KWorkerTaskManager.bunnei
2022-01-14core: hle: kernel: Add KWorkerTask and KWorkerTaskManager.bunnei
- These primitives are used to dispatch asynchronous kernel tasks from KThread and KProcess.
2022-01-14common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.bunnei
- When the emulator crashes to desktop below, we don't even get this captured in a log, making such issues harder to debug.
2022-01-14hle: kernel: Fix service_threads access to be thread safe V2.bunnei
- PR #7699 attempted to fix CreateServiceThread and ReleaseServiceThread to be thread safe, but inadvertently introduced a possible dead-lock. - With this PR, we use a worker thread to manage the service thread list, allowing it only to be accessed by a single thread, and guaranteeing threads will not destroy themselves. - Fixes a rare crash in Pokemon Sword/Shield, I've now run this game for ~12 hours non-stop and am quite confident this is a good solution for this issue.