summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-09-24Merge pull request #4711 from lioncash/move5bunnei
arithmetic_integer_immediate: Make use of std::move where applicable
2020-09-24Merge pull request #4678 from Morph1984/LoadOpenContext-partial-implbunnei
acc: Partially implement LoadOpenContext
2020-09-24arithmetic_integer_immediate: Make use of std::move where applicableLioncash
Same behavior, minus any redundant atomic reference count increments and decrements.
2020-09-23Merge pull request #4674 from ReinUsesLisp/timeline-semaphoresbunnei
renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore
2020-09-23Merge pull request #4618 from german77/GcAdapterAutoMapbunnei
Add automap feature for GC adapter
2020-09-23Merge pull request #4702 from lioncash/doc-warnRodrigo Locatti
memory: Resolve a -Wdocumentation warning
2020-09-23Merge pull request #4701 from lioncash/unused-protoRodrigo Locatti
install_dialog: Remove unused function prototype
2020-09-23Merge pull request #4700 from lioncash/copiesRodrigo Locatti
game_list: Eliminate redundant argument copies
2020-09-23memory: Resolve a -Wdocumentation warningLioncash
memory doesn't exist as a parameter any more.
2020-09-23install_dialog: Make use of [[nodiscard]] where applicableLioncash
Allows the compiler to warn against cases where the return value isn't used (which would be a bug).
2020-09-23install_dialog: Remove unused function prototypeLioncash
This function doesn't have an implementation, so it can be removed to prevent others from unintentionally using it.
2020-09-23game_list: Make game list function naming consistentLioncash
Makes the naming consistent with the rest of the functions that are present.
2020-09-23game_list: Eliminate redundant argument copiesLioncash
Several functions can be taken by const reference to avoid copies
2020-09-22control_flow: emplace elements in place within TryQuery()Lioncash
Places data structures where they'll eventually be moved to to avoid needing to even move them in the first place.
2020-09-22control_flow: Make use of std::move in InsertBranch()Lioncash
Avoids unnecessary atomic increments and decrements.
2020-09-22General: Make use of std::nullopt where applicableLioncash
Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals.
2020-09-22ips_layer: Eliminate a redundant copy in Parse()Lioncash
Prevents unnecessary copying of the line being parsed.
2020-09-21Merge pull request #4675 from Morph1984/fix-boot-multicontentbunnei
submission_package: Account for multi-content NSPs
2020-09-21acc: Stub LoadOpenContextMorph
This is used in multiple games such as: - Clubhouse Games: 51 Worldwide Classics - Grandia HD Collection - XCOM 2 Collection - Baldur's Gate 1/2 - Dr Kawashima's Brain Training - Super Mario 3D All-Stars
2020-09-21Merge pull request #4692 from ReinUsesLisp/remove-vsyncRodrigo Locatti
renderer_opengl: Remove emulated mailbox presentation
2020-09-20Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-implbunnei
hid: Implement Get/SetNpadHandheldActivationMode
2020-09-20renderer_opengl: Remove emulated mailbox presentationReinUsesLisp
Emulated mailbox presentation was causing performance issues on Nvidia's OpenGL driver. Remove it.
2020-09-19Merge pull request #4643 from FearlessTobi/decrease-pad-update-intervalbunnei
Test: Decrease pad_update_ns
2020-09-19vk_query_cache: Hack counter destructor to avoid reserving queriesReinUsesLisp
This is a hack to destroy all HostCounter instances before the base class destructor is called. The query cache should be redesigned to have a proper ownership model instead of using shared pointers. For now, destroy the host counter hierarchy from the derived class destructor.
2020-09-19renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphoreReinUsesLisp
This reworks how host<->device synchronization works on the Vulkan backend. Instead of "protecting" resources with a fence and signalling these as free when the fence is known to be signalled by the host GPU, use timeline semaphores. Vulkan timeline semaphores allow use to work on a subset of D3D12 fences. As far as we are concerned, timeline semaphores are a value set by the host or the device that can be waited by either of them. Taking advantange of this, we can have a monolithically increasing atomic value for each submission to the graphics queue. Instead of protecting resources with a fence, we simply store the current logical tick (the atomic value stored in CPU memory). When we want to know if a resource is free, it can be compared to the current GPU tick. This greatly simplifies resource management code and the free status of resources should have less false negatives. To workaround bugs in validation layers, when these are attached there's a thread waiting for timeline semaphores.
2020-09-18Add automap feature for GC adaptergerman
2020-09-18fermi_2d: Make use of designated initializersLioncash
Same behavior, less repetition. We can also ensure all members of Config are initialized.
2020-09-18hid: Implement Get/SetNpadHandheldActivationModeMorph
- Used in Clubhouse Games: 51 Worldwide Classics
2020-09-18configure_input_player: Fixes motion mapping using ConfigureButtonClickMorph
2020-09-17Merge pull request #4647 from Morph1984/readd-context-menubunnei
configure_input_player: Re-add "Clear" context menu option
2020-09-17am: Stub GetPreviousProgramIndexMorph
- Used in Super Mario 3D All-Stars
2020-09-17configure_input_player: Re-add "Clear" context menu optionMorph
The context menu was removed in Mjölnir Part 1 as part of the input rewrite as we were unaware of it's usage statistics. However, as this was the only way to clear the inputs of individual buttons, this PR will re-add it back in.
2020-09-17submission_package: Account for multi-content NSPsMorph
Previously we assumed a submission package can only contain one Program NCA with a single TitleID. However, Super Mario 3D All-Stars contains four Program NCAs, each with their unique TitleIDs. This accounts for the existence of multi-content games such as this one. - Fixes booting Super Mario 3D All-Stars from the games list.
2020-09-17Merge pull request #4670 from lioncash/initializerRodrigo Locatti
arm_dynarmic_cp15: Initialize member variables
2020-09-17Merge pull request #4665 from lioncash/sm-kernelRodrigo Locatti
service/sm: Eliminate dependency on the global system instance
2020-09-17Merge pull request #4666 from lioncash/unused-funcRodrigo Locatti
service: Remove unused funcation
2020-09-17Merge pull request #4671 from lioncash/nfp-copyRodrigo Locatti
command_generator/nfp: Eliminate unnecessary copies
2020-09-17Merge pull request #4672 from lioncash/narrowingRodrigo Locatti
decoder/texture: Eliminate narrowing conversion in GetTldCode()
2020-09-17Merge pull request #4673 from lioncash/fallthroughRodrigo Locatti
decode/image: Eliminate switch fallthrough in DecodeImage()
2020-09-17Merge pull request #4594 from german77/MotionHIDbunnei
hid/configuration: Implement motion controls to HID
2020-09-17decode/image: Eliminate switch fallthrough in DecodeImage()Lioncash
Fortunately this didn't result in any issues, given the block that code was falling through to would immediately break.
2020-09-17decoder/texture: Eliminate narrowing conversion in GetTldCode()Lioncash
The assignment was previously truncating a u64 value to a bool.
2020-09-17audio_core/command_generator: Use const references where applicableLioncash
In a lot of cases, we can make use of const references rather than non-const references. While we're in the area we can silence some truncation and sign conversion warnings.
2020-09-17audio_core/command_generator: Avoid an unnecessary copy in ↵Lioncash
GenerateFinalMixCommand()
2020-09-17nfp: Eliminate two unnecessary copiesLioncash
GetAmiiboBuffer() returns by const reference, so we can use a reference instead of taking the returned buffer by value.
2020-09-17arm_dynarmic_cp15: Initialize member variablesLioncash
Ensures that the member variables are always initialized to a deterministic value on creation.
2020-09-17control_metadata: Resolve typo in Portuguese language nameLioncash
This isn't used anywhere, so this is a trivial fix.
2020-09-17service: Remove unused funcationLioncash
This is now completely unused, so it can be removed.
2020-09-17service/sm: Slightly more efficient string name validationLioncash
We can check the end of the string first for null-termination, rather than the beginning of the string.
2020-09-17service/sm: Eliminate dependency on the global system instanceLioncash