summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | acc: Stub LoadOpenContextGravatar Morph2020-09-213-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | | | | Merge pull request #4674 from ReinUsesLisp/timeline-semaphoresGravatar bunnei2020-09-2342-814/+647
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|/ / / / |/| | | | | | | | | | renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphore
| * | | | | | | | | | vk_query_cache: Hack counter destructor to avoid reserving queriesGravatar ReinUsesLisp2020-09-191-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | | | | renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphoreGravatar ReinUsesLisp2020-09-1942-814/+638
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | | | Merge pull request #4618 from german77/GcAdapterAutoMapGravatar bunnei2020-09-233-1/+103
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / / |/| | | | | | | | | | Add automap feature for GC adapter
| * | | | | | | | | | Add automap feature for GC adapterGravatar german2020-09-183-1/+103
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #4702 from lioncash/doc-warnGravatar Rodrigo Locatti2020-09-231-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | memory: Resolve a -Wdocumentation warning
| * | | | | | | | | | | memory: Resolve a -Wdocumentation warningGravatar Lioncash2020-09-231-1/+1
| | |_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | memory doesn't exist as a parameter any more.
* | | | | | | | | | | Merge pull request #4701 from lioncash/unused-protoGravatar Rodrigo Locatti2020-09-231-3/+2
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | install_dialog: Remove unused function prototype
| * | | | | | | | | | | install_dialog: Make use of [[nodiscard]] where applicableGravatar Lioncash2020-09-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows the compiler to warn against cases where the return value isn't used (which would be a bug).
| * | | | | | | | | | | install_dialog: Remove unused function prototypeGravatar Lioncash2020-09-231-1/+0
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function doesn't have an implementation, so it can be removed to prevent others from unintentionally using it.
* | | | | | | | | | | Merge pull request #4700 from lioncash/copiesGravatar Rodrigo Locatti2020-09-233-52/+67
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | game_list: Eliminate redundant argument copies
| * | | | | | | | | | | game_list: Make game list function naming consistentGravatar Lioncash2020-09-233-36/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes the naming consistent with the rest of the functions that are present.
| * | | | | | | | | | | game_list: Eliminate redundant argument copiesGravatar Lioncash2020-09-232-16/+22
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several functions can be taken by const reference to avoid copies
* | | | | | | | | | | control_flow: emplace elements in place within TryQuery()Gravatar Lioncash2020-09-221-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Places data structures where they'll eventually be moved to to avoid needing to even move them in the first place.
* | | | | | | | | | | control_flow: Make use of std::move in InsertBranch()Gravatar Lioncash2020-09-221-7/+8
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids unnecessary atomic increments and decrements.
* | | | | | | | | | General: Make use of std::nullopt where applicableGravatar Lioncash2020-09-2217-59/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | | ips_layer: Eliminate a redundant copy in Parse()Gravatar Lioncash2020-09-221-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents unnecessary copying of the line being parsed.
* | | | | | | | | | Merge pull request #4675 from Morph1984/fix-boot-multicontentGravatar bunnei2020-09-211-5/+5
|\ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / |/| | | | | | | | | submission_package: Account for multi-content NSPs
| * | | | | | | | | submission_package: Account for multi-content NSPsGravatar Morph2020-09-171-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | | Merge pull request #4692 from ReinUsesLisp/remove-vsyncGravatar Rodrigo Locatti2020-09-2113-360/+35
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | renderer_opengl: Remove emulated mailbox presentation
| * | | | | | | | | | renderer_opengl: Remove emulated mailbox presentationGravatar ReinUsesLisp2020-09-2013-360/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emulated mailbox presentation was causing performance issues on Nvidia's OpenGL driver. Remove it.
* | | | | | | | | | | Merge pull request #4683 from Morph1984/NpadHandheldActivationMode-implGravatar bunnei2020-09-203-5/+28
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | | hid: Implement Get/SetNpadHandheldActivationMode
| * | | | | | | | | | hid: Implement Get/SetNpadHandheldActivationModeGravatar Morph2020-09-183-5/+28
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used in Clubhouse Games: 51 Worldwide Classics
* | | | | | | | | | Merge pull request #4643 from FearlessTobi/decrease-pad-update-intervalGravatar bunnei2020-09-191-1/+1
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | Test: Decrease pad_update_ns
| * | | | | | | | | Test: Decrease pad_update_nsGravatar FearlessTobi2020-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There have been reports of quite heavy input lag in the past. Compared to Citra for example, our pad_update_ns value is very high. So let's decrease it and see if it helps with this problem.
* | | | | | | | | | fermi_2d: Make use of designated initializersGravatar Lioncash2020-09-182-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same behavior, less repetition. We can also ensure all members of Config are initialized.
* | | | | | | | | | configure_input_player: Fixes motion mapping using ConfigureButtonClickGravatar Morph2020-09-181-5/+8
| | | | | | | | | |
* | | | | | | | | | Merge pull request #4647 from Morph1984/readd-context-menuGravatar bunnei2020-09-172-31/+66
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | configure_input_player: Re-add "Clear" context menu option
| * | | | | | | | | | configure_input_player: Re-add "Clear" context menu optionGravatar Morph2020-09-172-31/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | | | am: Stub GetPreviousProgramIndexGravatar Morph2020-09-172-1/+11
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used in Super Mario 3D All-Stars
* | | | | | | | | | Merge pull request #4670 from lioncash/initializerGravatar Rodrigo Locatti2020-09-171-2/+2
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | arm_dynarmic_cp15: Initialize member variables
| * | | | | | | | | | arm_dynarmic_cp15: Initialize member variablesGravatar Lioncash2020-09-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensures that the member variables are always initialized to a deterministic value on creation.
* | | | | | | | | | | Merge pull request #4665 from lioncash/sm-kernelGravatar Rodrigo Locatti2020-09-173-9/+11
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | service/sm: Eliminate dependency on the global system instance
| * | | | | | | | | | | service/sm: Slightly more efficient string name validationGravatar Lioncash2020-09-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can check the end of the string first for null-termination, rather than the beginning of the string.
| * | | | | | | | | | | service/sm: Eliminate dependency on the global system instanceGravatar Lioncash2020-09-173-7/+9
| |/ / / / / / / / / /
* | | | | | | | | | | Merge pull request #4666 from lioncash/unused-funcGravatar Rodrigo Locatti2020-09-171-22/+0
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | service: Remove unused funcation
| * | | | | | | | | | | service: Remove unused funcationGravatar Lioncash2020-09-171-22/+0
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now completely unused, so it can be removed.
* | | | | | | | | | | Merge pull request #4671 from lioncash/nfp-copyGravatar Rodrigo Locatti2020-09-172-21/+25
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | command_generator/nfp: Eliminate unnecessary copies
| * | | | | | | | | | | audio_core/command_generator: Use const references where applicableGravatar Lioncash2020-09-171-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | | | | | | | audio_core/command_generator: Avoid an unnecessary copy in ↵Gravatar Lioncash2020-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GenerateFinalMixCommand()
| * | | | | | | | | | | nfp: Eliminate two unnecessary copiesGravatar Lioncash2020-09-171-10/+13
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GetAmiiboBuffer() returns by const reference, so we can use a reference instead of taking the returned buffer by value.
* | | | | | | | | | | Merge pull request #4672 from lioncash/narrowingGravatar Rodrigo Locatti2020-09-171-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | decoder/texture: Eliminate narrowing conversion in GetTldCode()
| * | | | | | | | | | | decoder/texture: Eliminate narrowing conversion in GetTldCode()Gravatar Lioncash2020-09-171-1/+1
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The assignment was previously truncating a u64 value to a bool.
* | | | | | | | | | | Merge pull request #4673 from lioncash/fallthroughGravatar Rodrigo Locatti2020-09-171-0/+1
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | decode/image: Eliminate switch fallthrough in DecodeImage()
| * | | | | | | | | | | decode/image: Eliminate switch fallthrough in DecodeImage()Gravatar Lioncash2020-09-171-0/+1
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fortunately this didn't result in any issues, given the block that code was falling through to would immediately break.
* | | | | | | | | | | Merge pull request #4594 from german77/MotionHIDGravatar bunnei2020-09-1723-159/+943
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | hid/configuration: Implement motion controls to HID
| * | | | | | | | | | | configure_input: Hook up the motion button and checkboxGravatar Morph2020-09-057-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows toggling motion on or off, and allows access to the motion configuration. Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
| * | | | | | | | | | | Minor cleanupGravatar german2020-09-051-19/+16
| | | | | | | | | | | |
| * | | | | | | | | | | Add cemu hook changes related to PR #4609Gravatar german2020-09-048-139/+449
| | | | | | | | | | | |