summaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-06-03android: Update app iconCharles Lombardo2-34/+30
Small icon updates from Flam
2023-06-03android: Change organization of the settings tab in the home screenCharles Lombardo7-44/+44
2023-06-03android: Properly pop setup fragment from the back stackCharles Lombardo1-1/+3
2023-06-03android: Vertically scalable setup pagesCharles Lombardo2-23/+45
Previously the setup pages would remain at a fixed height but now the icon and two text boxes will give up space as a device gets shorter. This eliminates the need for a scrolling view further problems with padding.
2023-06-03android: Fix setup rotation bugCharles Lombardo2-4/+26
If you rotated the device at the "Add Games" screen the buttons would disappear until you trigged them from the beginning page swap. Now button state is saved across recreation.
2023-06-03android: Temporarily switch for a fixed version code for testingCharles Lombardo1-1/+1
2023-06-03android: Fix alignment of SwipeRefreshLayoutCharles Lombardo1-5/+9
2023-06-03android: Shape/spacing adjustments to game cardCharles Lombardo3-58/+64
Ripple effect now reaches into rounded corners, icon size changed, company text removed, title font adjusted, and spacing around the card was adjusted as well. Text also doesn't get cut off anymore and instead scrolls indefinitely on one line.
2023-06-03android: Manual tweaks for dialog colorsCharles Lombardo6-2/+21
Small fix for Flam
2023-06-03android: Fix black backgrounds bugCharles Lombardo1-6/+18
Start using a specific night mode check because black backgrounds could apply incorrectly when using the light app mode, dark system mode, and black backgrounds. Launching the settings activity will show light mode colors/navigation bars but with black backgrounds.
2023-06-03android: Use navigation bar shade view for settings activityCharles Lombardo2-3/+20
2023-06-03android: Disable editing themes during emulationCharles Lombardo1-3/+3
2023-06-03android: Prevent situation where binding is called on a null viewCharles Lombardo1-0/+3
2023-06-03android: Add black backgrounds toggleCharles Lombardo6-1/+42
2023-06-03android: Add theme mode pickerCharles Lombardo5-11/+76
2023-06-03android: Add theme pickerCharles Lombardo7-3/+127
2023-06-03android: Prevent potential abstract settings crashCharles Lombardo1-0/+4
2023-06-03android: Fix cast for abstract settingsCharles Lombardo4-5/+5
2023-06-03android: Create xml for Material You themeCharles Lombardo2-0/+58
2023-06-03android: Remove check for API 29 in themesCharles Lombardo2-15/+4
2023-06-03android: Adjustments to home option cardCharles Lombardo1-4/+10
Several spacing/color adjustments provided by Flam
2023-06-03android: Use different colors for logo in options menuCharles Lombardo2-3/+3
Reverting to the official logo colors
2023-06-03android: New default theme colorsCharles Lombardo2-30/+34
2023-06-03android: Use libnx default iconCharles Lombardo4-1/+1
Credit to jaames for the original icon
2023-06-03android: enable LTOLiam1-1/+2
2023-06-03android: Show error if invalid keys file is selectedCharles Lombardo2-0/+23
There aren't MIME types specific enough for filtering out files that aren't amiibo or production keys. So here we just check for the extensions "bin" or "keys" where appropriate and stop the process if incorrect. Previously you could select any document and it could cause the app to hang.
2023-06-03android: Fix first time setup scrolling bugCharles Lombardo2-18/+17
If you quickly scrolled from the second page to the first and then back, the next/back buttons would disappear.
2023-06-03android: Fix A button preference keyCharles Lombardo1-1/+1
2023-06-03android: First time setup screenCharles Lombardo19-163/+769
2023-06-03android: Prevent editing unsafe settings at runtimeCharles Lombardo5-14/+35
There currently isn't a visual "disabled" cue for any of the view holders that aren't the switch setting. This will be improved in the future.
2023-06-03android: Abstract settingsCharles Lombardo24-363/+418
Previously we could only add settings that would change our ini file. Now we can create abstract settings in our presenter to alter things like shared preferences for theme support!
2023-06-03android: Implement gamepad inputgerman776-11/+510
2023-06-03android: Bump minimum version to Android 11Charles Lombardo1-1/+1
2023-06-03android: Decouple status bar shade from navigation bar visibilityCharles Lombardo3-14/+34
2023-06-03android: Enable code minificationCharles Lombardo5-22/+18
2023-06-03android: Switch from a colored status bar to a custom viewCharles Lombardo4-23/+35
Allows for smoother transitions with the search bar
2023-06-03android: Adjustments to card_gameCharles Lombardo1-20/+5
Removed a currently unused text view and moved to material text views.
2023-06-03android: MainActivity overhaulCharles Lombardo32-626/+1031
This moves several parts of the main activity into fragments that manage themselves to react to changes. UI changes like the appearance of a new search view or when the games list changes now gets updated via multiple view models. This also starts a conversion to the androidx navigation component which furthers the goals mentioned previously with more fragment responsibility. This will eventually allow us to use one activity with interchanging fragments and multiple view models that are stored within that central activity. fdas
2023-06-03android: Enforce Vulkan 1.1 support as minimumCharles Lombardo1-3/+4
2023-06-03android: Update gradle version to 8.1Charles Lombardo1-1/+1
2023-06-03android: Update app dependenciesCharles Lombardo1-5/+5
2023-06-03android: Convert gradle scripts to Kotlin DSLCharles Lombardo5-201/+241
2023-06-03android: vulkan: Disable vertex_input_dynamic_state on Qualcomm.bunnei1-1/+2
2023-06-03android: settings: Add scaling filter & anti-aliasing options. (#66)bunnei4-0/+75
2023-06-03android: video_core: Add support for disk shader cache. (#64)bunnei12-4/+258
2023-06-03android: vulkan_debug_callback: Ignore many innocuous errors.bunnei1-0/+28
2023-06-03android: config: Change docked mode and GPU accuracy to favor performance on Android.bunnei3-7/+11
2023-06-03service: account: Save user profile folder on first user creationgerman771-0/+1
2023-06-03android: Initialize account managergerman771-0/+5
2023-06-03android: Remove unsafe null checkgerman771-4/+2
2023-06-03android: Scale input overlay independently of system display scaleCharles Lombardo2-30/+41
2023-06-03android: Use apply instead of commit for shared preferencesCharles Lombardo3-4/+3
Previously we were operating on the assumption that apply'd settings wouldn't be visible immediately. This isn't true and settings will be accessible via memory before being stored to disk. This reduces any potential stutters caused by saving to shared preferences.
2023-06-03android: Add DPad slide toggleCharles Lombardo5-2/+14
2023-06-03android: Add relative stick center toggleCharles Lombardo3-0/+13
2023-06-03android: Make hash and branch accessible from BuildConfigCharles Lombardo1-0/+25
2023-06-03android: Backup shared preferences where applicableCharles Lombardo2-0/+12
2023-06-03android: Enable retaining app data after uninstallCharles Lombardo1-1/+2
2023-06-03android: Remove unused doFrame functionCharles Lombardo1-2/+0
2023-06-03android: Convert NativeLibrary to KotlinCharles Lombardo15-766/+523
2023-06-03android: Remove LocalBroadcastManagerCharles Lombardo11-225/+17
This causes a couple of minor changes to directory initialization. We don't have a lengthy initialization step so we could spend less time creating state receivers and just run initialization on the main thread. We also don't have a situation where external storage will be a concern so checks are removed in favor of a binary check to see if initialization is ready. This additionally removes the unused DoFrame callback.
2023-06-03android: Remove game databaseCharles Lombardo18-773/+154
The content provider + database solution was excessive and is now replaced with the simple file checks from before but turned into an array list held within a viewmodel.
2023-06-03android: Adjust game icon loadingCharles Lombardo1-15/+9
2023-06-03android: Remove unused dimensions filesCharles Lombardo2-9/+0
2023-06-03android: Slightly reduce game card sizeCharles Lombardo2-3/+3
2023-06-03android: Only show company text view if it has contentCharles Lombardo1-5/+8
2023-06-03android: Fix check for ok text in software keyboardCharles Lombardo1-1/+1
2023-06-03android: Implement amiibo reading from nfc tagNarr the Reg15-8/+327
2023-06-03android: vulkan_device: Disable VK_EXT_custom_border_color on Adreno.bunnei1-0/+7
- Causes crashes on sampler creation with Super Mario Odyssey.
2023-06-03android: Add toggle controls option to input overlayCharles Lombardo5-6/+62
2023-06-03android: Do not update FPS text on null viewCharles Lombardo1-1/+1
2023-06-03android: Convert keyboard applet to kotlin and refactorCharles Lombardo6-279/+255
2023-06-03android: Implement basic software keyboard applet.bunnei12-152/+625
2023-06-03android: config: Disable shader cache by default on Android.bunnei1-0/+4
2023-06-03android: Fix fps counter not showing upgerman774-11/+13
2023-06-03android: Prevent showing games on an invalid viewCharles Lombardo1-0/+3
2023-06-03android: Re-implement overlay editingCharles Lombardo5-25/+245
2023-06-03android: Fix popup menu going out of boundsCharles Lombardo2-20/+11
2023-06-03android: Use autofit grid for games fragmentCharles Lombardo3-28/+72
2023-06-03android: Prevent updating empty game list text on invalid viewCharles Lombardo1-0/+3
2023-06-03android: Persist settings across configuration changesCharles Lombardo9-93/+51
Mostly things get refactored here to remove previous assumptions made about how the activity/fragment lifecycles would operate. The important change for persistence is removing the assumption that the user will be at the first settings fragment on recreation when deciding whether or not to reload settings. Now we check a flag in Settings to know if we loaded the settings within this lifecycle.
2023-06-03android: Store settings object in viewmodelCharles Lombardo7-57/+45
2023-06-03android: Remove configChanges exceptionsCharles Lombardo1-1/+0
2023-06-03Android: Enable resizeable activitiesCharles Lombardo1-6/+2
2023-06-03android: Fix emulation fragment commentsCharles Lombardo1-2/+2
2023-06-03android: Use modal navigation drawer as in game menuCharles Lombardo17-373/+343
2023-06-03android: Make Game class parcelableCharles Lombardo1-1/+4
2023-06-03android: Add kotlin parcelize pluginCharles Lombardo1-0/+1
2023-06-03android: Remove deprecated use of onActivityResultCharles Lombardo2-139/+107
2023-06-03android: Fix RTL layoutsCharles Lombardo3-1/+6
2023-06-03android: Use ellipsis characterCharles Lombardo1-1/+1
2023-06-03android: Move all array strings to main strings fileCharles Lombardo2-48/+109
2023-06-03android: Remove unused stringsCharles Lombardo1-9/+0
2023-06-03android: Remove unused colorsCharles Lombardo2-6/+0
2023-06-03android: Remove citra date time pickerCharles Lombardo1-22/+0
2023-06-03android: Remove unused premium header layoutCharles Lombardo1-42/+0
2023-06-03android: Remove unused fragment animationsCharles Lombardo2-41/+0
2023-06-03android: Remove unused string arraysCharles Lombardo1-34/+0
2023-06-03android: Remove unused integer xmlsCharles Lombardo4-13/+0
2023-06-03android: Refactor ic_launcher.xml to drawablesCharles Lombardo3-3/+3
2023-06-03android: Suppress lint in InsetsHelperCharles Lombardo1-0/+2
2023-06-03android: Add data extraction rulesCharles Lombardo3-2/+56
2023-06-03android: Remove requestLegacyExternalStorage attributeCharles Lombardo1-3/+1
2023-06-03android: Remove unused permissionsCharles Lombardo1-3/+0
2023-06-03android: Inset input overlay based on system cutoutsCharles Lombardo5-59/+94
2023-06-03Use yuzu as category instead of citraNarr the Reg1-1/+1
2023-06-03android: Stop updating fps counter when emulation stopsCharles Lombardo1-1/+4
2023-06-03android: Move driver installation off of main threadCharles Lombardo4-21/+42
Additionally creates an indeterminate loading dialog during installation
2023-06-03android: Fix crash when decodeGameIcon creates a null BitmapCharles Lombardo1-1/+1
2023-06-03android: Use view bindingCharles Lombardo16-284/+189
2023-06-03android: Enable view bindingCharles Lombardo1-0/+2
2023-06-03android: Refactor CheckBoxSetting to SwitchSettingCharles Lombardo5-14/+14
2023-06-03android: EmulationActivity: Fix variable shadowing in fragment creation.bunnei1-2/+2
2023-06-03android: res: fragment_emulation: Ensure FPS counter is shown.bunnei1-7/+7
2023-06-03common: link libandroid on androidLiam1-0/+5
2023-06-03build: only enable adrenotools on arm64Liam7-10/+18
2023-06-03android: Use Skyline's document providerCharles Lombardo3-4/+319
2023-06-03android: Use androidx splash screenCharles Lombardo4-2/+12
2023-06-03android: Replace Picasso with CoilCharles Lombardo7-138/+41
2023-06-03android: New swipe to refresh color schemeCharles Lombardo1-1/+9
2023-06-03android: New settings fragment animationsCharles Lombardo12-163/+80
2023-06-03android: Use edge to edgeCharles Lombardo9-21/+110
2023-06-03android: Use Material 3 componentsCharles Lombardo23-174/+268
2023-06-03android: Modernize theme systemCharles Lombardo8-94/+130
2023-06-03android: Use vector iconsCharles Lombardo42-9/+27
2023-06-03android: Use adaptive iconCharles Lombardo13-3/+24
2023-06-03android: settings: Dynamically evaluate valueAsStringbunnei4-4/+4
Co-Authored-By: bunnei <bunneidev@gmail.com>
2023-06-03android: Add license identifierCharles Lombardo66-5/+199
2023-06-03android: Convert YuzuApplication to KotlinCharles Lombardo2-59/+56
2023-06-03android: Convert Action1 to KotlinCharles Lombardo2-5/+5
2023-06-03android: Convert GameViewHolder to KotlinCharles Lombardo2-44/+32
2023-06-03android: Remove ThemeUtilCharles Lombardo1-34/+0
2023-06-03android: Convert StartupHandler to KotlinCharles Lombardo2-45/+45
2023-06-03android: Convert Log to KotlinCharles Lombardo2-39/+42
2023-06-03android: Convert GpuDriverMetadata to KotlinCharles Lombardo2-45/+44
2023-06-03android: Convert GpuDriverHelper to KotlinCharles Lombardo2-130/+145
2023-06-03android: Convert GameIconRequestHandler to KotlinCharles Lombardo2-29/+22
2023-06-03android: Convert ForegroundService to KotlinCharles Lombardo2-63/+56
2023-06-03android: Convert FileUtil to KotlinCharles Lombardo2-296/+292
2023-06-03android: Convert FileBrowserHelper to KotlinCharles Lombardo2-25/+26
2023-06-03android: Convert EmulationMenuSettings to KotlinCharles Lombardo2-78/+59
2023-06-03android: Convert DocumentsTree to KotlinCharles Lombardo2-125/+110
2023-06-03android: Convert DirectoryStateReceiver to KotlinCharles Lombardo2-22/+15
2023-06-03android: Convert DirectoryInitialization to KotlinCharles Lombardo2-72/+66
2023-06-03android: Convert ControllerMappingHelper to KotlinCharles Lombardo1-25/+24
2023-06-03android: Convert BiMap to KotlinCharles Lombardo2-22/+22
2023-06-03android: Convert AddDirectoryHelper to KotlinCharles Lombardo2-38/+27
2023-06-03android: Convert PlatformGamesView to KotlinCharles Lombardo1-6/+6
2023-06-03android: Convert PlatformGamesPresenter to KotlinCharles Lombardo2-42/+30
2023-06-03android: Convert PlatformGamesFragment to KotlinCharles Lombardo2-105/+94
2023-06-03android: Convert MainView to KotlinCharles Lombardo1-8/+6
2023-06-03android: Convert MainPresenter to KotlinCharles Lombardo2-81/+66
2023-06-03android: Convert InputOverlayDrawableJoystick to KotlinCharles Lombardo2-243/+205
2023-06-03android: Convert MainActivity to KotlinCharles Lombardo3-250/+229
2023-06-03android: Remove ExampleInstrumentedTestCharles Lombardo1-3/+0
2023-06-03android: Remove TwoPaneOnBackPressedCallbackCharles Lombardo1-37/+0
Leftover UI code for dolphin's cheat system. Removing for now.
2023-06-03android: Convert InputOverlayDrawableDpad to KotlinCharles Lombardo2-276/+232
2023-06-03android: Convert InputOverlayDrawableButton to KotlinCharles Lombardo2-139/+118
2023-06-03android: Convert InputOverlay to KotlinCharles Lombardo2-656/+886
2023-06-03android: Remove DividerItemDecorationCharles Lombardo1-130/+0
Removed in favor of material components version
2023-06-03android: Inherit from Material 3 themesCharles Lombardo1-8/+4
Partially breaks the UI for now but is necessary to use new material components.
2023-06-03android: Convert MinimalDocumentFile to KotlinCharles Lombardo2-28/+8
2023-06-03android: Convert GameProvider to KotlinCharles Lombardo2-138/+127
2023-06-03android: Convert GameDatabase to KotlinCharles Lombardo2-275/+260
2023-06-03android: Convert Game to KotlinCharles Lombardo2-76/+56
2023-06-03android: Convert EmulationFragment to KotlinCharles Lombardo2-375/+348
2023-06-03android: Convert SettingsFile to KotlinCharles Lombardo2-272/+245
2023-06-03android: Convert SettingsFrameLayout to KotlinCharles Lombardo2-48/+43
2023-06-03android: Convert SettingsFragmentView to KotlinCharles Lombardo1-18/+15
2023-06-03android: Convert SettingsFragmentPresenter to KotlinCharles Lombardo2-184/+333
2023-06-03android: Convert SettingsFragment to KotlinCharles Lombardo2-136/+120
2023-06-03android: Convert SettingsActivityView to KotlinCharles Lombardo1-27/+20
2023-06-03android: Convert SettingsActivityPresenter to KotlinCharles Lombardo2-122/+99
2023-06-03android: Convert SettingsActivity to KotlinCharles Lombardo2-209/+186
2023-06-03android: Convert SubmenuViewHolder to KotlinCharles Lombardo2-45/+35
2023-06-03android: Convert SliderViewHolder to KotlinCharles Lombardo2-45/+34
2023-06-03android: Convert SingleChoiceViewHolder to KotlinCharles Lombardo2-62/+54
2023-06-03android: Convert SettingViewHolder to KotlinCharles Lombardo2-49/+38
2023-06-03android: Convert HeaderViewHolder to KotlinCharles Lombardo2-32/+28
2023-06-03android: Convert DateTimeViewHolder to KotlinCharles Lombardo2-47/+35
2023-06-03android: Convert CheckBoxSettingViewHolder to KotlinCharles Lombardo2-54/+41
2023-06-03android: Convert StringSetting to KotlinCharles Lombardo2-23/+9
2023-06-03android: Convert SettingSection to KotlinCharles Lombardo2-55/+34
2023-06-03android: Convert Setting to KotlinCharles Lombardo1-24/+6
2023-06-03android: Convert IntSetting to KotlinCharles Lombardo2-23/+9
2023-06-03android: Convert FloatSetting to KotlinCharles Lombardo2-23/+9
2023-06-03android: Convert BooleanSetting to KotlinCharles Lombardo2-23/+9
2023-06-03android: Convert SubmenuSetting to KotlinCharles Lombardo2-21/+15
2023-06-03android: Convert StringSingleChoiceSetting to KotlinCharles Lombardo2-82/+61
2023-06-03android: Convert SliderSetting to KotlinCharles Lombardo2-101/+72
2023-06-03android: Convert SingleChoiceSetting to KotlinCharles Lombardo2-60/+44
2023-06-03android: Convert SettingsItem to KotlinCharles Lombardo2-100/+30
2023-06-03android: Convert HeaderSetting to KotlinCharles Lombardo2-14/+12
2023-06-03android: Convert DateTimeSetting to KotlinCharles Lombardo2-40/+35
2023-06-03android: Convert CheckBoxSetting to KotlinCharles Lombardo2-80/+91
2023-06-03android: Convert GameAdapter to KotlinCharles Lombardo2-244/+178
2023-06-03android: Convert SettingsAdapter to KotlinCharles Lombardo3-366/+315
Update SettingsAdapter.kt
2023-06-03android: Convert EmulationActivity to KotlinCharles Lombardo2-347/+286
2023-06-03android: Use material slider in settings dialogCharles Lombardo1-20/+20
2023-06-03android: Convert Settings to KotlinCharles Lombardo2-127/+145
2023-06-03android: Use androidx preferencesCharles Lombardo1-0/+2
2023-06-03android: frontend: Add unique error strings for Vulkan initialization errors.bunnei2-19/+25
2023-06-03android: Use the center of the object and reduce draw callsgerman778-59/+76
2023-06-03android: Replace old buttons with vectorsgerman77149-71/+613
2023-06-03android: Enable Kotlin supportCharles Lombardo4-26/+30
2023-06-03android: Upgrade java version to 11Charles Lombardo1-2/+2
2023-06-03android: Upgrade dependenciesCharles Lombardo1-4/+4
2023-06-03android: Upgrade to AGP 7.4.2Charles Lombardo1-1/+1
2023-06-03android: Replace lintOptions with lintCharles Lombardo1-1/+1
2023-06-03android: Move namespace to app module build.gradleCharles Lombardo2-2/+3
2023-06-03android: bump compile/target sdk to 33Charles Lombardo1-2/+2
2023-06-03android: Upgrade gradle to 8.0.1Charles Lombardo1-1/+1
2023-06-03video_core: fix clang-format errorsliushuyu2-4/+3
2023-06-03CMake: fix pkg-config behavior when building for Androidliushuyu1-0/+1
2023-06-03CI: add Android build systemsliushuyu1-0/+0
2023-06-03android: build.gradle: Cleanup build types.bunnei1-7/+1
2023-06-03android: frontend: settings: Add graphics debugging.bunnei4-6/+18
2023-06-03android: jni: Ensure system is only initialized once.bunnei4-8/+8
- Fixes likelihood that fastmem allocation succeeds.
2023-06-03video_core: vulkan_device: Correct error message for unsuitable driver.bunnei1-1/+1
2023-06-03android: frontend: Cleanup framerate counter.bunnei2-4/+3
2023-06-03android: vulkan: Implement adrenotools turbo mode.bunnei7-3/+27
2023-06-03android: vulkan_device: Disable VK_EXT_extended_dynamic_state2 on Qualcomm.bunnei1-3/+3
- Newer drivers report this as supported, but it is broken.
2023-06-03android: frontend: Add support for GPU driver selection.bunnei9-3/+251
2023-06-03android: native: Add support for custom Vulkan driver loading.bunnei14-76/+146
2023-06-03core: frontend: Refactor GraphicsContext to its own module.bunnei13-50/+84
2023-06-03common: dynamic_library: Add ctor for existing handle.bunnei2-0/+5
2023-06-03android: EmulationFragment: Always reset overlay.bunnei1-1/+2
- Ensures correct placement until we have better overlay configuration.
2023-06-03Avoid using VectorExtractDynamic for subgroup mask on Adreno GPUsBilly Laws3-1/+19
This crashes their shader compiler for some reason.
2023-06-03Implement scaled vertex buffer format emulationBilly Laws9-51/+97
These formats are unsupported by mobile GPUs so they need to be emulated in shaders instead.
2023-06-03Disable push descriptors on adreno driversBilly Laws1-0/+4
Regular descriptors are around 1.5x faster to update.
2023-06-03Disable VK_EXT_extended_dynamic_state on maliBilly Laws1-0/+7
2023-06-03Disable multithreaded pipeline compilation on Qualcomm driversBilly Laws1-1/+4
This causes crashes during compilation on several 6xx and 5xx driver versions.
2023-06-03android: Add motion sensorNarr the Reg4-21/+92
2023-06-03android: Hook jni input properlyNarr the Reg5-90/+104
2023-06-03android: cleanup touch update loopNarr the Reg1-28/+50
2023-06-03android: Clean joystick overlayNarr the Reg3-135/+131
2023-06-03android: Clean dpad overlayNarr the Reg2-192/+174
2023-06-03android: Clean button overlayNarr the Reg2-195/+65
2023-06-03android: Add all buttons to screen controllerNarr the Reg4-209/+104
2023-06-03android: Apply clang formatNarr the Reg2-9/+9
2023-06-03android: frontend: Implement game grid view. (#9)bunnei15-174/+272
2023-06-03android: Replace notification icon with yuzugerman773-0/+0
2023-06-03android: strings: Refresh key dumping URL.bunnei1-1/+1
2023-06-03android: frontend: Modify ROM load messaging for invalid keys.bunnei2-7/+11
2023-06-03android: frontend: Integrate key installation for SAF.bunnei20-21/+102
2023-06-03android: jni: Add function to reload keys.bunnei3-2/+14
2023-06-03core: crypto: key_manager: Add methods to reload & validate keys.bunnei2-0/+11
2023-06-03android: EmulationActivity: Temporarily disable running notification.bunnei2-7/+12
2023-06-03android: Implement SAF support & migrate to SDK 31. (#4)bunnei38-697/+851
2023-06-03android: Harden emulation shutdown when loader fails.bunnei1-6/+12
2023-06-03android: SettingsFragmentPresenter: Fix default renderer backend.bunnei1-1/+1
2023-06-03android: jni: native: Add lock around HaltEmulation, tighten run loop.bunnei1-1/+3
2023-06-03android: jni: native: Refactor locking for is_running.bunnei1-8/+21
2023-06-03android: jni: native: Remove unnecessary atomic for is_running.bunnei1-6/+5
2023-06-03android: jni: native: Tighten up emulation start/stop signaling.bunnei1-58/+64
2023-06-03android: jni: native: Consolidate emulation state into EmulationSession singleton.bunnei1-67/+164
- Fixes state management issues across multiple boots. - Fixes crashes related to unsafe access of perf stats.
2023-06-03android: Frontend: Fix rendering aspect ratio & add a setting for it.bunnei7-2/+25
2023-06-03android: Integrate settings frontend with yuzu & remove unused code.bunnei25-1759/+949
2023-06-03externals: add adrenotools for bcenablerLiam2-0/+34
2023-06-03device_memory: Use smaller virtual reservation size for compatibility with 39-bit pagingLiam2-1/+12
2023-06-03video_core: vulkan_device: Device initialization for Adreno.bunnei1-3/+4
2023-06-03video_core: vk_pipeline_cache: Disable support_descriptor_aliasing on Android.bunnei1-0/+4
2023-06-03video_core: vk_swapchain: Fix image format for Android.bunnei2-0/+10
2023-06-03android: Minimize frontend & convert to yuzu.bunnei128-2509/+934
2023-06-03video_core: vk_blit_screen: Rotate viewport for Android landscape.bunnei1-0/+8
2023-06-03common: error: Fix for Android.bunnei1-1/+2
2023-06-03common: fs: Implement for Android.bunnei1-0/+7
2023-06-03common: logging: Implement Android logcat backend.bunnei3-0/+63
2023-06-03common: host_memory: Implement for Android.bunnei1-2/+10
2023-06-03android: Minimal JNI for yuzu.bunnei8-0/+645
2023-06-03android: Add Citra frontend.bunnei319-0/+13799
2023-06-03cmake: Integrate bundled FFmpeg for Android.bunnei1-1/+1
2023-05-31Fix incorrect id check and potential out of bounds lookupKelebek11-1/+1
2023-05-30Skip BufferCache tickframe with no channel state setKelebek11-1/+5
2023-05-30input_common: rename PAGE_SIZE to avoid conflict121011111-3/+3
See also: https://github.com/yuzu-emu/yuzu/issues/8779
2023-05-29yuzu: Disable game list while game is runninggerman771-0/+4
2023-05-28externals: Update to fmt 10 and add format_as formatter for BitFieldMorph1-0/+5
Implicit conversions are now disallowed in fmt 10. Use format_as to convert to the underlying type.
2023-05-28gl_texture_cache: Fix ASTC CPU decoding with compression disabledameerj1-2/+7
gl_format was incorrectly being overwritten when compression was disabled
2023-05-28renderer_vulkan: Remove timeline semaphore waitGPUCode1-7/+4
2023-05-27Audren wait as suggested by ByLawsKelebek11-0/+3
2023-05-27Move buffer bindings to per-channel stateKelebek14-210/+228
2023-05-27qt: add menu item to remove cache storageLiam4-0/+26
2023-05-26vfs_concat: fix time complexity of readLiam4-70/+125
2023-05-26Fix buffer overlap checking skipping a page for stream score right expandKelebek11-3/+3
2023-05-26shader_recompiler: fix copy-paste errorLiam1-1/+1
2023-05-25Don't exit when using "-u" option in yuzu-cmdAriel Cabello1-1/+1
2023-05-25video_core: don't garbage collect during configurationLiam2-6/+0
2023-05-25Add short "-u" option for yuzu_cmd.Ariel Cabello1-1/+1
The -u short option was documented but not implemented in yuzu_cmd. The same long option --user worked before.
2023-05-24Texture cache: revert wrong acceleration assumptionFernando Sahmkow1-1/+1
2023-05-24Texture Cache Util: Fix block depth adjustment on slices.Fernando Sahmkow1-2/+13
2023-05-24texture_cache: process aliases and overlaps in the correct orderFernando Sahmkow4-61/+105
2023-05-24add context menu for filter and anti-aliasing status buttonsgrimkor3-71/+152
2023-05-23video_core: tune garbage collection aggressivenessLiam2-6/+8
2023-05-23textures: add BC1 and BC3 compressors and recompression settingLiam20-26/+344
2023-05-23k_memory_block_manager: remove auditing callsLiam1-6/+2
2023-05-23service: nfc: Remove encryption key requirementNarr the Reg3-21/+52
2023-05-23vulkan_device: Enable VK_KHR_push_descriptor on newer ANVLiam1-2/+3
2023-05-23renderer_vulkan: barrier attachment feedback loopsLiam6-1/+51
2023-05-22Limit the device access memory to 4 GBscorpion811-1/+1
Hardly limiting the device access memory to 4 GB for integrated vulkan devices here. This works for the Steam Deck in order not to go above 4 GB VRAM usage any more (above this value the likelihood to crash when the RAM exceeds 12 GB as well raises). But there will be perhaps a detection mechanism necessary for detecting the real memory limit for integrated vulkan devices. Those likely might have small limits anyway, but what about integrated GPUs on machines with > 16 GB RAM, aka larger amounts ?
2023-05-22input_common: Implement amiibo writtingNarr the Reg8-68/+387
2023-05-21Add support for deinterlaced videos playbackDanila Malyutin2-2/+99
This is a follow up to #10254 to improve the playback of cut scenes in Layton's Mystery Journey. It uses ffmpeg's yadif filter for deinterlacing.
2023-05-20vk_master_semaphore: Move fence wait on separate threadGPUCode2-3/+58
2023-05-20input_common: Map motion with relative values not absolute onesgerman771-4/+7
2023-05-19renderer_vulkan: remove wrong constexprLiam1-2/+2
2023-05-18Smooth out the DSP callback by adding a 5ms wait time limitKelebek14-16/+12
2023-05-18vulkan_device: Disable VK_KHR_push_descriptor on ANVlat9nq1-0/+11
Mesa commit ff91c5ca42bc80aa411cb3fd8f550aa6fdd16bdc breaks VK_KHR_push_descriptor usage on ANV drivers 22.3.0, so disable it and allow games to boot.
2023-05-17input_common: Fix pro controller amiibo supportNarr the Reg6-103/+70
2023-05-15service: hid: Use span instead of vector referencegerman773-14/+14
2023-05-15Buffer Cache: Clear sync code.Fernando Sahmkow2-28/+4
2023-05-14vulkan_device: reserve extra memory to prevent swapsLiam1-0/+2
2023-05-14input_common: Make amiibo scanning less demandinggerman773-4/+13
2023-05-14vulkan_common: fix incompatible property flagsLiam1-1/+1
2023-05-13Use TARGET_FILE_DIR generator expressionDanila Malyutin1-5/+1
Use $<TARGET_FILE_DIR:...> where appropriate instead of trying to guess where the binary will end up.
2023-05-13vulkan_common: disable depth clamp dynamic state for older radvLiam1-0/+8
2023-05-12Fix missing pic_order_present_flag in h264 headerDanila Malyutin1-2/+2
Fixes #9635
2023-05-12time: implement ContinuousAdjustmentTimePointLiam3-2/+34
2023-05-12Correctly track RT indexes for image aspect lookup during clearsKelebek12-1/+3
2023-05-11fs: adjust future save pathLiam2-4/+4
2023-05-11am: stub CreateCacheStorageLiam2-1/+33
2023-05-11fs: stub cache storage and fix params alignmentLiam2-5/+17
2023-05-11nvnflinger: fix Parcel serializationLiam3-39/+49
2023-05-11nvnflinger: fix producer slot fence initLiam1-0/+1
2023-05-11Fix Tears of the Kingdom flickering clouds and depths.Kelebek12-12/+3
2023-05-11Allow Fermi blit accelerate to add src/dst to the cache if they don't exist already. Use ScratchBuffers in the software blit path.Kelebek13-12/+24
2023-05-10Allow fully customisable controller hotkeysgrimkor4-32/+56
2023-05-10renderer_vulkan: separate guest and host compute descriptor queuesLiam16-75/+81
2023-05-10service: nfc: Seed all random valuesNarr the Reg2-6/+14
2023-05-10service: nfp: Allow to load with a different amiibo idgerman776-7/+39
2023-05-09Use the rendertarget format of the correct RT rather than the first validKelebek11-19/+6
2023-05-09Swap order of checking/setting region modifications in the buffer_cacheKelebek11-4/+4
2023-05-09input_common: Fix nfc detection for joyconsgerman774-19/+21
2023-05-09Texture Cache: Fix ASTC texturesFernando Sahmkow3-7/+7
2023-05-08qt_common: consistently ifdef QPlatform after cbd79df23375Jan Beich1-1/+1
src/yuzu/qt_common.cpp:45:33: error: member access into incomplete type 'QPlatformNativeInterface' wsi.display_connection = pni->nativeResourceForWindow("display", window); ^ /usr/include/qt6/QtGui/qguiapplication.h:20:7: note: forward declaration of 'QPlatformNativeInterface' class QPlatformNativeInterface; ^ src/yuzu/qt_common.cpp:47:42: error: member access into incomplete type 'QPlatformNativeInterface' wsi.render_surface = window ? pni->nativeResourceForWindow("surface", window) : nullptr; ^ /usr/include/qt6/QtGui/qguiapplication.h:20:7: note: forward declaration of 'QPlatformNativeInterface' class QPlatformNativeInterface; ^
2023-05-08yuzu: Make 3d cube with joycon shapeNarr the Reg1-10/+10
2023-05-08core: hid: Allow to calibrate gyro sensorNarr the Reg5-1/+43
2023-05-08configure_graphics_advanced: Hide input compute toggle a little laterlat9nq1-2/+2
SetColoredTristate causes the setting to become visible as it calls `show()` on it.
2023-05-08bootmanager: remove stop_token headerLiam1-1/+0
2023-05-08vfs_layered: avoid n^2 lookup in layeredfs buildingLiam1-3/+6
2023-05-08core: hid: Update motion on a better placegerman775-22/+20
2023-05-07Texture cache: Only force flush the dma downloadsFernando Sahmkow5-6/+6
2023-05-07Buffer Cache: disable reactive flushing in it.Fernando Sahmkow3-18/+8
2023-05-07Texture cache: reverse inmediate flush changesFernando Sahmkow3-28/+14
2023-05-07Buffer cache: always use async buffer downloads and fix regression.Fernando Sahmkow4-63/+70
2023-05-07Address feedback, add CR notice, etcFernando Sahmkow5-10/+18
2023-05-07Query cache: stop updating pages as it's not affected by cpu writesFernando Sahmkow1-2/+0
2023-05-07Settings: add option to enable / disable reactive flushingFernando Sahmkow11-5/+38
2023-05-07Texture cache: sync the first flush.Fernando Sahmkow2-3/+30
2023-05-07GPU: Add Reactive flushingFernando Sahmkow24-30/+240
2023-05-07vfs_vector: avoid n^2 lookup in layeredfs buildingLiam2-0/+23
2023-05-07yuzu/applets/qt_profile_select: connect double-click to accept()QGJ1-0/+1
In the profile selection window: Allow the user to start the game by double-clicking a profile to avoid having to additionally click the OK button. This avoids an unnecessary "step" to the start of the game...
2023-05-07Fix address space allocator slow path to avoid OOBKelebek11-1/+1
2023-05-07input_common: Revert debugging changesgerman771-2/+0
2023-05-07yuzu-qt/config: Add option to disable compute on Intellat9nq10-9/+63
This option is only visible if an Intel GPU using the proprietary driver is found during Vulkan device enumeration. configure_graphics: More directly get driver id Vulkan::Device does quite a bit more than we need just to see the driver ID here.
2023-05-07vk_pipeline_cache: Use setting to disable intel computelat9nq1-1/+2
2023-05-07settings: Add enable compute pipelineslat9nq2-0/+2
For the Intel proprietary driver's deficiencies. settings: Restore compute option global state
2023-05-06Fix read access violationRoni Kirla1-1/+1
2023-05-06input_common: Add experimental motion to buttongerman772-0/+10
2023-05-06service: nfc: Merge device interfaces and create the device managerNarr the Reg32-2410/+2031
2023-05-06Log object names with debug renderer, add a GPU address to ImageViewsKelebek110-30/+35
2023-05-06input_common: Add property to invert an axis buttonNarr the Reg6-3/+15
2023-05-06input_common: Add property to invert an axis buttonNarr the Reg4-2/+12
2023-05-05yuzu: Add motion preview to controller inputNarr the Reg7-4/+151
2023-05-05Improve emulation of HD Rumblemarius david1-6/+29
2023-05-05yuzu-sdl,audio_core: Remove antiquated warning ignorelat9nq2-21/+2
Issue was fixed a long time ago, both by SDL2 and in yuzu by including SDL2 as a system library.
2023-05-05core: hid: Fix state of capture and home buttonsgerman771-0/+4
2023-05-04settings: remove pessimistic flushingLiam8-28/+0
2023-05-04Memory manager: Fix possible softlockFernando Sahmkow1-4/+5
2023-05-04qt_common: Remove yuzu prefixlat9nq4-7/+7
2023-05-03GPU: implement missing ASTCFernando Sahmkow8-9/+49
2023-05-03vk_present_manager: Fix softlocks when disabling async presentGPUCode3-6/+9
2023-05-03configure_graphics: No there isn't a hyphen in VSynclat9nq2-5/+5
Most sources seem to suggest VSync and not V-Sync
2023-05-03configure_input_player: Add missing includelat9nq1-0/+1
Cleaning up includes in bootmanager and configure_graphics has exposed a missing include here.
2023-05-03configure_graphics: Clean up includes [IWYU]lat9nq2-6/+31
2023-05-03bootmanager: Clean up includes [IWYU]lat9nq2-15/+50
bootmanager: Remove system-specific headers IWYU can be too complete I suppose.
2023-05-03configure_graphics: Actively find present modeslat9nq3-27/+161
When Vulkan devices are enumerated, this also determines the available present modes for each device, maps them to a vector, and gives those options to the user. OpenGL options are limited to On/Off. Required creating a VkSurfaceKHR during device enumeration, which may or may not be desireable. For the sake of a less confusing UI. Also fixes a bug where if a graphics device disappears on the host, we don't try and select the non-existant devices. configure_graphics: Remove vsync runtime lock for Vulkan configure_graphics: Recommend Mailbox present mode configure_graphics: Fix type-limits warning configure_graphics: Clean up includes configure_graphics: Add tooltip
2023-05-03vk_swapchain: Use certain modes for unlockedlat9nq2-26/+50
Uses mailbox, then immediate for unlocked framerate depending on support for either. Also adds support for FIFO_RELAXED. This function now assumes vsync_mode was originially configured to a value that the driver supports. vk_swapchain: ChooseSwapPresentMode determines updates Simplifies swapchain a bit and allows us to change the present mode during guest runtime. vk_swapchain: Fix MSVC error vk_swapchain: Enforce available present modes Some frontends don't check the value of vsync_mode before comitting it. Just as well, since a driver update or misconfiguration could problems in the swap chain. vk_swapchain: Silence warnings Silences GCC warnings implicit-fallthrough and shadow, which apparently are not enabled on clang.
2023-05-03bootmanager: Remove inaccurate switchlat9nq2-11/+3
Those vulkan settings do not correspond 1:1 to the swap intervals that they set for OpenGL, so remove it. bootmanager: Add missing include I didn't add this log why did it break
2023-05-03qt_common: Move window info function out of bootmanagerlat9nq4-44/+75
Function is useful outside of bootmanager, so put it in a common place. qt_common: Add missing include qt_common: Add some newlines qt_common: Add trailing newline qt_common: Add trainline newline
2023-05-03vulkan_surface: Pass only window info for surface creationlat9nq3-10/+7
We don't need the whole EmuWindow when creating a surface, and it creates onerous requirements outside of typical usage for creating a surface elsewhere.
2023-05-03settings: Enable FIFO relaxedlat9nq2-7/+10
Not entirely sure if we need this, but there's also no reason not to support it. settings: Give VSyncMode values
2023-05-03configure_graphics: Fix another typolat9nq1-1/+1
2023-05-03telemetry_session: Make translate function staticlat9nq1-1/+1
Addresses review feedback Co-authored-by: Lioncash <mathew1800@gmail.com>
2023-05-03bootmanager: Return value in impossible caselat9nq1-0/+1
The setting is ranged, so this return statement is unreachable. But GCC can't tell I guess.
2023-05-03configure_graphics: Fix typolat9nq1-1/+1
2023-05-03default_ini: Update V-Sync descriptionlat9nq1-2/+8
default_ini: Update vsync text default_ini: Add tooltip from configure_graphics
2023-05-03configuration: Expose separate swap present modeslat9nq11-37/+115
Previously, yuzu would try and guess which vsync mode to use given different scenarios, but apparently we didn't always get it right. This exposes the separate modes in a drop-down the user can select. If a mode isn't available in Vulkan, it defaults to FIFO.
2023-05-03Fix code resize to use word size rather than byte sizeKelebek13-10/+16
2023-05-03vulkan: disable turbo when debugging tool is attachedLiam1-1/+3
2023-05-03video_core: fix build on Apple ClangLiam3-4/+6
2023-05-02CMake: Enable type limits on Clanglat9nq1-0/+1
2023-05-02CMakeLists: Enable checks on Clanglat9nq1-0/+2
Enables shadow-uncaptured-locals and implicit-fallthrough for Clang. implicit-fallthrough is not enabled by default in -Wall or -Wextra, and shadow-uncaptured-local doesn't seem to be enabled by default by -Wshadow, even though GCC has both of these by their respective cases.
2023-05-01vk_present_manager: Add toggle for async presentationGPUCode10-6/+45
2023-05-01vk_blit_screen: Recreate FSR when frame is recreatedGPUCode1-1/+1
* Depends on the layout dimentions and thus should be recreated as well
2023-05-01renderer_vulkan: Fix crashing when updating descriptorsGPUCode2-4/+17
* During pipeline configure the function would acquire some payload space from the descriptor update queue, write the descriptor data on the GPU thread and give the scheduler a pointer to the beginning of said space to update it later. TickFrame resets the payload cursor, used to track acquires, back to the beginning of the buffer. This wasn't a problem before since WaitWorker was called at the end of the frame but now it is. If a frame writes to a cursor before the scheduler catches up, it will crash * To fix this the payload buffer has been increased to account for the in flight frames that are allowed to exist now. TickFrame will switch between the payload spaces instead of resetting
2023-05-01renderer_vulkan: Async presentationGPUCode11-218/+712
2023-05-01BufferCache: Fixes and address feedbackFernando Sahmkow6-322/+243
2023-05-01qt: warn on inoperable keysLiam2-0/+34
2023-05-01Wait for the terminate event before destroying a system instanceKelebek11-4/+1
2023-04-30settings: rename extended memory layout to unsafe, move from general to systemLiam13-30/+34
2023-04-30Define SampleMask as an arrayKelebek12-2/+4
2023-04-30kernel: remove general boost listsLiam7-19/+26
2023-04-30kernel: match calls to Register and UnregisterLiam9-5/+50
2023-04-29common: add intrusive list typeLiam1-0/+631
2023-04-29Texture Cache: Release stagging buffers on tick frameFernando Sahmkow6-19/+46
2023-04-29Buffer Cache: Release stagging buffers on tick frameFernando Sahmkow2-12/+22
2023-04-29Tests: Add memory tracker tests.Fernando Sahmkow3-550/+548
2023-04-29Clang: format and ficx compile errors.Fernando Sahmkow5-68/+78
2023-04-29Implement Async downloads in normal and fix a few issues.Fernando Sahmkow3-39/+61
2023-04-29Buffer Cache rework: Setup async downloads.Fernando Sahmkow2-140/+154
2023-04-29Buffer Cache: Fully rework the buffer cache.Fernando Sahmkow12-1091/+1644
2023-04-29Address Feedback & Clang FormatFernando Sahmkow2-17/+14
2023-04-29Maxwell3D: only update parameters on HighFernando Sahmkow1-0/+3
2023-04-29Accelerate DMA: Use texture cache async downloads to perform the copiesFernando Sahmkow6-53/+123
to host. WIP
2023-04-29TextureCache: refactor DMA downloads to allow multiple buffers.Fernando Sahmkow8-41/+75
2023-04-28vk_pipeline_cache: Skip compute pipelines on Intel proprietary driversMorph1-0/+7
Intel's SPIR-V shader compiler is broken. For now, skip compiling any compute pipelines until they fix this issue. This is not a perfect workaround, as there are a small subset of non-compute pipelines that still cause it to crash, but this should cover the majority of crashes. It is unfortunate that even with a test case reported 6 months ago the issue has not been fixed in favor of fixing "the most popular games and apps". Intel, you can do better than this.
2023-04-28QueryCache: Fix write invalidation.Fernando Sahmkow2-6/+13
2023-04-28MemoryManager: Fix race conditions.Fernando Sahmkow2-3/+11
2023-04-26core: service: Add FunctionInfoTyped to allow expanding existing interfacesgerman771-8/+12
2023-04-24Clang format and ddress feedbackFernando Sahmkow3-16/+30
2023-04-24service: nfc: Create mifare interfaceNarr the Reg3-50/+58
2023-04-24service: nfc: Create interfaceNarr the Reg5-115/+104
2023-04-23QueryCache: rework async downloads.Fernando Sahmkow7-45/+118
2023-04-23Accuracy Normal: reduce accuracy further for perf improvements in Project LimeFernando Sahmkow4-5/+11
2023-04-23Fence Manager: implement async fence management in a sepparate thread.Fernando Sahmkow5-35/+133
2023-04-22maxwell_3d: fix out of bounds array access in size estimationLiam1-4/+6
2023-04-22Silence nifm spamKelebek13-5/+5
2023-04-22Sort overlap_ids by modification tick before copyKelebek11-0/+6
2023-04-22core: am: Demote TryPopFromFriendInvitationStorageChannel Log levelgerman771-1/+1
2023-04-21Account for a pre-added offset when using Corner sample mode for 2D blitsKelebek11-4/+12
2023-04-19Run clang-format to fix all.Aaron Roney1-1/+2
2023-04-19Fix formatting.Aaron Roney1-2/+2
2023-04-19Allow passing `bind_address` to dedicated room.Aaron Roney1-2/+11
2023-04-16core: audio: return result when audio_out initialize failedFengChen1-6/+8
2023-04-16core: hid: Remove deadzone of virtual controllergerman771-0/+4
2023-04-15vulkan: use plain fences when timeline semaphores are not availableLiam4-68/+161
2023-04-15service: nfp: Implement debug InterfaceNarr the Reg6-8/+444
2023-04-15service: nfp: Implement system interfaceNarr the Reg6-17/+289
2023-04-14input_common: minor fix to mouse movementValeri1-1/+1
2023-04-14service: nfp: Use an unique interfaceNarr the Reg4-71/+227
2023-04-13vulkan: pick alpha composite flags based on available valuesLiam1-1/+14
2023-04-12video_core: Enable ImageGather rounding fix on AMD open source driversWollnashorn1-0/+2
2023-04-10kernel: move more memory to application in 8GB arrangementLiam1-2/+4
2023-04-08kernel: switch extended memory setting to 8GB arrangementLiam3-4/+4
2023-04-08Use GetGlobalTimeNs as opposed to clock ticksBilly Laws2-4/+3
2023-04-08shader_recompiler: Use vector arithmetic rather than component-wise in ImageGatherSubpixelOffsetWollnashorn1-18/+9
Should be more efficient and better readable
2023-04-08video_core: Enable ImageGather with subpixel offset on IntelWollnashorn7-17/+11
2023-04-08shader_recompiler: Add subpixel offset for correct rounding at `ImageGather`Wollnashorn9-0/+86
On AMD a subpixel offset of 1/512 of the texel size is applied to the texture coordinates at a ImageGather call to ensure the rounding at the texel centers is done the same way as in Maxwell or other Nvidia architectures. See https://www.reedbeta.com/blog/texture-gathers-and-coordinate-precision/ for more details why this might be necessary. This should fix shadow artifacts at object edges in Zelda: Breath of the Wild (#9957, #6956).
2023-04-04Add some explicit latency to sample count reportingBilly Laws1-1/+2
Some games have very tight scheduling requirements for their audio which can't really be matched on the host, adding a constant to the reported value helps to provide some leeway.
2023-04-03general: fixes for gcc 13Liam6-28/+14
2023-04-02service: hid: Fix handle validationgerman771-5/+1
2023-04-02core: arm_dynarmic_32: Update SaveContext/LoadContext.bunnei1-13/+10
2023-04-01externals: update Vulkan-Headers to v1.3.246Jan Beich1-0/+2
2023-03-31video_core: Keep the definition of DimensionControl consistent with nvidia open docFeng Chen2-19/+22
2023-03-30applet: controller: Implement cancel buttongerman779-19/+33
2023-03-30service: hid: Implement SetNpadJoyAssignmentModeSingleWithDestinationgerman774-22/+56
Used by Let's Get Fit
2023-03-30Fixes 'Continous' typoMax Dunbar6-38/+38
2023-03-29service: am: Improve profile select appletNarr the Reg8-34/+270
2023-03-29kernel: fix unbounded stack usage in atomicsLiam2-39/+56
2023-03-28Only upload GPU-modified overlapsKelebek11-15/+15
2023-03-27telemetry: Add waitpkg instructionMorph1-0/+1
2023-03-27x64: Simplify RDTSC on non-MSVC compilersMorph2-16/+10
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2023-03-27core_timing: Make use of MicroSleep for x64 CPUsMorph1-0/+8
For CPUs that support tpause, this should result in significant CPU power savings over thread yield in this spin wait.
2023-03-27x64: Add MicroSleepMorph3-0/+84
MicroSleep allows the processor to pause for a "short" amount of time (in the microsecond range). This is useful for spin-waiting that does not require nanosecond precision. This uses the new TPAUSE instruction introduced on Intel's newest processors as part of the waitpkg instructions. For CPUs that do not support waitpkg instructions, this is equivalent to yield(). Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2023-03-27x64: cpu_detect: Add detection of waitpkg instructionsMorph2-0/+2
waitpkg introduces 3 instructions, UMONITOR, UMWAIT and TPAUSE.
2023-03-27audio_core: No longer stall when sink queue is fullBilly Laws4-64/+1
Now the audout and audren update rates are tied to the sink status stalling is no longer necessary.
2023-03-27Run clang-formatBilly Laws3-7/+6
2023-03-27audio: Wait for samples on the emulated DSP side to avoid desyncsBilly Laws6-24/+28
Waiting on the host side is inaccurate and leads to desyncs in the event of the sink missing a deadline that require stalls to fix. By waiting for the sink to have space before even starting rendering such desyncs can be avoided.
2023-03-27service: hid: Silence warning on MergeSingleJoyAsDualJoyNarr the Reg1-1/+2
2023-03-27qt: Fix log softlockNarr the Reg1-2/+2
2023-03-26audio: Interpolate system manager sample count using host sink sample infoBilly Laws4-3/+39
This avoids the need to stall if the host sink sporadically misses the deadline, in such a case the previous implementation would report them samples as being played on-time, causing the guest to send more samples and leading to a gradual buildup.
2023-03-26service: nfp: Add plain amiibo supportgerman775-8/+37
2023-03-26tests: mark integer literals as unsignedLiam1-17/+20
2023-03-26container_hash: use climitsLiam1-0/+1
2023-03-26video_core/macro: Make use of Common::HashValueMorph1-3/+3
2023-03-26tests: Implement tests for verifying HashValueMorph2-0/+42
Values were randomly generated and the verification was done against boost 1.79.
2023-03-26common: Port boost's hash_value implementationMorph2-0/+92
Ports a small subset of boost's hash_value implementation (<= 1.80.0).
2023-03-25qt: implement RequestExit for appletsLiam38-69/+250
2023-03-25applets: implement RequestExitLiam18-1/+71
2023-03-25Pass GPU page table by referenceRoss Schlaikjer1-31/+32
2023-03-24vulkan: fix scheduler chunk reserveLiam1-1/+1
2023-03-24zstd: Use ZSTD_getFrameContentSize instead of ZSTD_getDecompressedSizeMorph1-1/+1
2023-03-24memory: rename global memory references to application memoryLiam44-226/+185
2023-03-22kernel: use KTypedAddress for addressesLiam101-1102/+1574
2023-03-22bounded_threadsafe_queue: Refactor PopMorph1-140/+62
Introduces PopModes to bring waiting logic into Pop, similar to Push.
2023-03-22bounded_threadsafe_queue: Add producer cv to avoid busy waitingMorph1-17/+29
2023-03-22nfc: Initialize device when controller is connectedNarr the Reg4-4/+30
2023-03-22bounded_threadsafe_queue: Deduplicate and add PushModesMorph3-88/+86
Adds the PushModes Try and Wait to allow producers to specify how they want to push their data to the queue if the queue is full. If the queue is full: - Try will fail to push to the queue, returning false. Try only returns true if it successfully pushes to the queue. This may result in items not being pushed into the queue. - Wait will wait until a slot is available to push to the queue, resulting in potential for deadlock if a consumer is not running.
2023-03-22bounded_threadsafe_queue: Add TryPushMorph1-0/+71
2023-03-22logging: Make use of bounded queueMorph1-8/+8
2023-03-22bounded_threadsafe_queue: Use simplified impl of bounded queueMorph2-115/+203
Provides a simplified SPSC, MPSC, and MPMC bounded queue implementation using mutexes.
2023-03-19vulkan: fix more excessive waiting in schedulerLiam1-4/+5
2023-03-19kernel: fix LOG_TRACE in ipcLiam1-1/+1
2023-03-19common: string_util: Use std::string_view for UTF16ToUTF8/UTF8ToUTF16W.bunnei2-11/+11
2023-03-18common: bounded_threadsafe_queue: Use polyfill_thread.bunnei1-2/+3
2023-03-18config: Fix controller config from resettingNarr the Reg1-0/+3
2023-03-17Disable SRGB border color conversion for now, to fix shadows in Xenoblade.Kelebek11-6/+8
2023-03-17service: nfp: Replace crc function with boost equivalentNarr the Reg2-28/+17
2023-03-16service: nfp: Close app area and recreate crcNarr the Reg1-0/+10
2023-03-16service: nfp: Convert mii colors to v3Narr the Reg6-15/+100
2023-03-15vulkan: disable extendedDynamicState3ColorBlendEquation on radvLiam1-0/+6
2023-03-15service: nfp: Actually write correct crcNarr the Reg6-23/+44
2023-03-14video_core: Better defined ImageInfo parametersFengChen3-39/+43
2023-03-13configure_audio: Fix output mode setting not savingMorph2-9/+9
2023-03-13input_common: sdl: Only send last vibration commandgerman771-1/+16
2023-03-13kernel: additional style fixes to KThread, KProcessLiam2-27/+27
2023-03-13kernel: fix clang buildLiam1-2/+2
2023-03-13kernel: remove unnecessary finalize callsLiam2-7/+1
2023-03-13kernel: convert KProcess to new styleLiam10-240/+254
2023-03-13kernel: convert KThread to new styleLiam15-670/+519
2023-03-13kernel: prefer std::addressofLiam21-134/+139
2023-03-13kernel: convert KResourceLimitLiam2-59/+59
2023-03-13kernel: remove kernel_Liam41-295/+290
2023-03-13kernel: remove gratitutous attribute usageLiam8-29/+24
2023-03-13kernel/svc: convert to new styleLiam21-304/+192
2023-03-13kernel: convert miscellaneousLiam7-94/+81
2023-03-13kernel: conver KScopedLock, KScopedResourceReservation, KSessionRequest, KSharedMemory, KSpinLockLiam9-97/+99
2023-03-13kernel: convert KAbstractSchedulerLockLiam1-31/+24
2023-03-13kernel: convert KMemoryLayout, KMemoryRegion*, KPageTableSlabHeap, KPriorityQueueLiam6-121/+121
2023-03-13kernel: move KMemoryLayout for NX boardLiam2-1/+1
2023-03-13kernel: remove KLinkedListLiam5-245/+0
2023-03-13kernel: convert KConditionVariable, KLightConditionVariable, KLightLockLiam7-75/+77
2023-03-13kernel: convert KPort, KSessionLiam28-226/+196
2023-03-13kernel: convert GlobalSchedulerContext, KAddressArbiter, KScopedSchedulerLockAndSleep, KThreadQueue to new styleLiam8-142/+130
2023-03-12vk_scheduler: split work queue waits and execution waitsLiam2-28/+62
2023-03-12general: fix spelling mistakesLiam102-206/+206
2023-03-12video_core: Fix ogl status error when draw_textureFengChen2-2/+2
2023-03-12video_core: Invalid index_buffer flag when inline_index drawFengChen1-0/+1
2023-03-12yuzu: Move audio settings to audio sectiongerman776-45/+56
2023-03-12yuzu: Remove console id settinggerman773-53/+6
2023-03-10video_core: Update texture formatFeng Chen3-72/+67
2023-03-10service: nfp: Improve implementationNarr the Reg5-52/+234
2023-03-09OpenGL: Prefer glClientWaitSync for OGLSync objectsameerj5-10/+16
At least on Nvidia, glClientWaitSync with a timeout of 0 (non-blocking) is faster than glGetSynciv of GL_SYNC_STATUS.
2023-03-08perf_stats: Check multicore firstMorph1-2/+2
SpeedLimiting is SC only. Since MC is performance oriented we should check for it first to skip checking use_speed_limit.
2023-03-08hid: Use nanosecond timestamps instead of ticksMorph2-5/+5
2023-03-08core: Promote CPU/GPU threads to time criticalMorph4-4/+4
And also demote Audren and CoreTiming to High thread priority.
2023-03-08native_clock: Wait for 10 seconds instead of 30Morph1-3/+3
It was experimentally determined to be sufficient.
2023-03-08native_clock: Use RealTimeClock instead of SteadyClockMorph1-4/+4
We want to synchronize RDTSC to real time.
2023-03-08steady_clock: Introduce a real time clockMorph2-0/+36
2023-03-08native_clock: Re-adjust the RDTSC frequencyMorph2-5/+34
The RDTSC frequency reported by CPUID is not accurate to its true frequency. We will spawn a separate thread to calculate the true RDTSC frequency after a measurement period of 30 seconds has elapsed.
2023-03-08input_common: Minor typo issues (#9922)Narr the Reg8-48/+48
2023-03-08kernel: add timer pointer to KThreadQueueLiam8-15/+42
2023-03-08input_common: Increase mouse sensitivity rangegerman773-10/+20
2023-03-08common: make BitCast constexprLiam1-9/+11
2023-03-08general: fix type inconsistenciesLiam4-7/+7
2023-03-08kernel: avoid signed overflow UB on MSVCLiam3-1/+25
2023-03-08kernel: clone fpu status on CreateThreadLiam3-1/+28
2023-03-07gl_rasterizer: Implement AccelerateDMA DmaBufferImageCopyameerj2-9/+52
2023-03-07Refactor AccelerateDMA codeameerj8-251/+156
2023-03-07hle: rename legacy errors to ResultsLiam35-183/+169
2023-03-06kernel: add missing header for libc++Jan Beich1-0/+1
In file included from src/core/hle/kernel/k_light_lock.cpp:4: In file included from src/./core/hle/kernel/k_light_lock.h:8: src/./core/hle/kernel/k_scoped_lock.h:25:51: error: no member named 'addressof' in namespace 'std' explicit KScopedLock(T& l) : KScopedLock(std::addressof(l)) {} ~~~~~^
2023-03-06fix typo in settings.hIkko Eltociear Ashimine1-4/+4
Intial -> Initial
2023-03-05service: acc: Replace default image with a 32x32 imageNarr the Reg2-9/+20
2023-03-05input_common: joycon: Add stick input from passive reportsgerman773-32/+84
2023-03-05service: psc: Update namesNarr the Reg1-9/+9
2023-03-05service: ssl: Add missing properties and update namesNarr the Reg1-18/+58
2023-03-05service: usb: Update namesNarr the Reg1-35/+35
2023-03-05kernel: fix WaitSynchronizationLiam1-16/+29
2023-03-05Engines: Implement Accelerate DMA Texture.Fernando Sahmkow15-97/+658
2023-03-05native_clock: Round RDTSC frequency to the nearest 1000Morph1-5/+12
2023-03-05timer_resolution: Set current process to High QoSMorph1-0/+22
Ensures that this process is treated as a high performance process by the Windows scheduler.
2023-03-05hardware_properties: Update BASE_CLOCK_RATE to exactly 1020 MHzMorph1-5/+3
2023-03-05core_timing: Use higher precision sleeps on WindowsMorph5-24/+47
The precision of sleep_for and wait_for is limited to 1-1.5ms on Windows. Using SleepForOneTick() allows us to sleep for exactly one interval of the current timer resolution. This allows us to take advantage of systems that have a timer resolution of 0.5ms to reduce CPU overhead in the event loop.
2023-03-05main: (Windows) Set the current timer resolution to the maximumMorph2-0/+13
Increases the precision of thread sleeps on Windows.
2023-03-05wall_clock: Make use of SteadyClockMorph1-23/+11
2023-03-05common: Implement a method to change the Windows timer resolutionMorph3-0/+133
This utilizes undocumented NtDll functions to change the current timer resolution from the default of 1ms.
2023-03-05common: Implement a high resolution steady clockMorph3-0/+81
This implementation provides a consistent, high performance, and high resolution clock where/when std::chrono::steady_clock does not provide sufficient precision.
2023-03-04Check all swizzle components for red, not just [0], pass float border color rather than intKelebek13-10/+16
2023-03-04gpu_thread: Use bounded queueBehunin2-3/+4
2023-03-02Fix a bug with the Reverb command in reading from the pre_delay line.Kelebek13-6/+8
2023-03-02vulkan_common: disable vertexInputDynamicState on unsupported driverLiam1-0/+1
2023-03-01kernel: be more careful about kernel address keysLiam5-11/+23
2023-03-01kernel: refactor priority inheritance to represent locks as C++ objectsLiam8-190/+436
2023-03-01kernel: simplify AddressSpaceInfo, update valuesLiam1-66/+13
2023-03-01kernel: barrier memory before condition variable writeLiam1-15/+15
2023-03-01kernel: document previous location of interrupt disables in arbiter/condvarLiam2-3/+9
2023-03-01kernel: adjust pool allocationsLiam2-7/+16
2023-03-01kernel: simplify KAbstractSchedulerLock::LockLiam1-5/+6
2023-03-01kernel: add InfoType::IoRegionHintLiam1-0/+1
2023-03-01nvnflinger: fix nameLiam54-444/+443
2023-03-01service: move hle_ipc from kernelLiam148-1734/+1669
2023-03-01sm:: remove unused memberLiam1-1/+0
2023-02-28cmake: use correct boost imported targetsAlexandre Bouvier5-5/+5
2023-02-27Partially apply LTO to only core and video_core projects.Matías Locatti2-0/+8
2023-02-27service: btm: Fix handle functionsNarr the Reg1-4/+8
2023-02-26Revert "yuzu: config: Remove player 8 and 9 from config file"Narr the Reg8-104/+38
2023-02-26yuzu: config: Remove player 8 and 9 from config fileNarr the Reg8-38/+104
2023-02-25buffer_cache: Add logic for non-NVN storage buffer trackingameerj2-5/+27
2023-02-25config: Fix per game Force max clockgerman772-5/+1
2023-02-25core: hidbus: Fix BusType sizeNarr the Reg2-15/+15
2023-02-25core: Update service function tables to 16.0.0+Narr the Reg13-2/+63
2023-02-24am: avoid direct pointer access of transfer memory objectsLiam1-6/+4
2023-02-24hid: avoid direct pointer access of transfer memory objectsLiam20-69/+91
2023-02-23configuration: Add async ASTC decode settingameerj12-8/+49
2023-02-22texture_cache: Add async texture decodingameerj4-0/+89
2023-02-22core: hid: Restore motion state on refresh and clamp motion valuesNarr the Reg3-2/+30
2023-02-22input_common: Implement dedicated motion from mouseNarr the Reg3-24/+85
2023-02-22settings: Add more input settings to the logNarr the Reg1-0/+7
2023-02-22core: hid: Fix native mouse mappingsNarr the Reg5-63/+62
2023-02-22yuzu: Set a lower timeout for discord presenceNarr the Reg1-0/+2
2023-02-21svc: Fix type consistency (exposed on macOS)Merry14-54/+54
2023-02-21externals: Update cpp-httplib to latestAlexandre Bouvier2-2/+2
2023-02-21net: translate ECONNRESET network errorMonsterDruide14-0/+8
2023-02-21sm:: fix lingering session initialization issuesLiam2-2/+19
2023-02-21cheat_engine: add check for hid initializationLiam1-2/+7
2023-02-21sm:: support service registration deferralLiam5-8/+151
2023-02-21service: refactor server architectureLiam140-1143/+1393
Converts services to have their own processes
2023-02-21core: defer cpu shutdownLiam1-3/+4
2023-02-20Qt: Reintroduce scaling for touch inputgerman772-6/+16
2023-02-17kernel: add KObjectNameLiam7-3/+265
2023-02-17yuzu: Shutdown game on restart to reload per game configNarr the Reg1-2/+4
2023-02-17yuzu: Write to config file on important config changesNarr the Reg4-0/+7
2023-02-16input_common: Split mouse input into individual devicesNarr the Reg10-31/+114
2023-02-16Qt: Fix mouse scallinggerman772-18/+8
2023-02-15remove constexpr from virtual functionarades792-5/+5
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14Revert "main: Fix borderless fullscreen for high dpi scaled displays"liamwhite1-13/+1
2023-02-14Reimplement the invalidate_texture_data_cache registerKelebek11-0/+4
2023-02-14Allow >1 cpu threads on video decoding, disable multi-frame decodingKelebek11-0/+2
2023-02-14service: remove deleted servicesLiam24-621/+0
2023-02-14use a string view to skip allocationarades792-13/+7
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades79102-307/+300
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14apply clang-formatarades792-4/+5
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14don't use static inside constexpr functionarades791-6/+6
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades79101-303/+309
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14general: rename CurrentProcess to ApplicationProcessLiam41-164/+169
2023-02-13Fix biquad filter command's state buffer offsetKelebek11-2/+2
2023-02-13kernel: use GetCurrentProcessLiam34-128/+147
2023-02-13main: Fix borderless fullscreen for high dpi scaled displaysMorph1-1/+13
On Windows, a borderless window will be treated the same as exclusive fullscreen when the window geometry matches the physical dimensions of the screen. However, with High DPI scaling, when the devicePixelRatioF() is > 1, the borderless window apparently is not treated as exclusive fullscreen and functions correctly. One can verify and replicate this behavior by using a high resolution (4K) display, and switching between 100% and 200% scaling in Windows' display settings. At 100%, without the addition of 1, it is treated as exclusive fullscreen. At 200%, with or without the addition of 1, it is treated as borderless windowed. Therefore, we can use (read: abuse) this difference in behavior to fix this issue for those with higher resolution displays when the Qt scaling ratio is > 1. Should this behavior be changed in the future, please revisit this workaround.
2023-02-12Update settings.cppm-HD1-0/+4
added missing graphical settings to RestoreGlobalState()
2023-02-11texture_cache: OpenGL: Implement MSAA uploads and copiesameerj12-14/+136
2023-02-11kernel/svc: Fix undefined info_idColin Kinloch1-2/+2
2023-02-11Add fallback for memory read/write in case the address goes over a 4K pageKelebek11-12/+64
2023-02-11video_core: Speed up video frame data copyFengChen1-9/+5
2023-02-11Fix depop prepare receiving bad mix infos and writing out of bounds, and update aux a bit, may helpKelebek12-40/+40
2023-02-11core: kernel: k_process: Use application system resource.bunnei3-1/+15
2023-02-11kernel: Refactor thread_local variable usageameerj1-27/+18
On MSVC at least, there seems to be a non-trivial overhead to calling GetHostThreadId(). This slightly reworks the host_thread_id variable to reduce some of the complexity around its usage, along with some small refactors around current_thread and dummy thread
2023-02-10biquad_filter: Clamp f64 in ApplyBiquadFilterFloatMerry1-3/+3
2023-02-10biquad_filter: Fix rounding in ApplyBiquadFilterIntMerry2-24/+16
2023-02-10kernel: avoid usage of bit_castLiam1-2/+2
2023-02-10main: Re-add QtWebEngine zoom factorMorph1-0/+2
For some reason, I had removed this in https://github.com/yuzu-emu/yuzu/pull/4949/commits/ad6cec71ecd61aa2533d9efa89b68837516f8464 This should fix any improperly scaled web applets.
2023-02-10input_common: Reintroduce custom pro controller supportNarr the Reg9-7/+92
2023-02-10audio: cubeb: Fix yuzu crashing when it test for latencyNarr the Reg1-0/+20
2023-02-10core: hid: Use gyro thresholds modes set by the gameNarr the Reg8-21/+67
2023-02-09buffer_base: Partially revert changes from #9559ameerj2-7/+9
This fixes a regression where Yoshi's Crafted World (and potentially other titles) would enter an infinite loop when GPU Accuracy was set to "Normal"
2023-02-09glsl_emit_context: Remove redeclarations of gl_SampleID and gl_SampleMaskameerj1-6/+0
These built-ins seem to be available without needing to be declared for fragment shaders, similar i.e. to gl_FragDepth
2023-02-08service: hid: Return error if arguments of SetSupportedNpadIdType is invalidNarr the Reg4-6/+15
2023-02-08Remove OnCommandListEndCommandBehunin3-14/+2
Call rasterizer->ReleaseFences() directly
2023-02-07kernel/svc: switch to generated wrappersLiam45-1570/+7468
2023-02-06kernel: fix compilation with older gccLiam2-4/+5
2023-02-06Update yuzu_cmd's default_ini.hMatías Locatti1-7/+10
Rename FSR, add missing resolution multipliers, and SMAA
2023-02-05Remove fake vertex bindings when dynamic state is enabledKelebek11-25/+1
2023-02-05kernel/svc: Split implementations into separate filesLiam40-2688/+3196
2023-02-05Add Game Icon for Discord RPCSorab2-8/+61
Connected to Yuzu Compatibility Page
2023-02-04yuzu_cmd: Order arguments alphabetically and port arguments from Qtgerman771-19/+36
2023-02-04yuzu_cmd: Fix mismatching controller inputgerman773-2/+18
2023-02-04yuzu_cmd: Fix touch inputgerman772-33/+21
2023-02-04shader_recompiler/value.h: Remove lingering references to S32ameerj1-11/+0
2023-02-04remove disambiguation argument from mute textJonas Gutenschwager1-1/+1
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2023-02-03fsp_srv: Copy HLE Read Buffer for OutputAccessLogToSdCardameerj1-1/+1
2023-02-03Revert "Merge pull request #9718 from yuzu-emu/revert-9508-hle-ipc-buffer-span"ameerj61-326/+368
This reverts commit 25fc5c0e1158cb8e81cbc769b24ad84032a1fbfd, reversing changes made to af20e25081f97d55b451606c87922e2b49f0d363.
2023-02-03added 'Hide empty rooms' toggle to lobbyLuke Sawczak3-0/+25
fixed typo fixed typo fixed typo clang
2023-02-02Revert "hle_ipc: Use std::span to avoid heap allocations/copies when calling ReadBuffer"liamwhite61-368/+326
2023-02-02input_common: Simplify stick from buttonNarr the Reg1-32/+13
2023-02-01kernel: add KDeviceAddressSpaceLiam6-0/+232
2023-02-01yuzu: config: Draw turbo buttons with a different colorgerman772-14/+23
2023-02-01input_common: Implement turbo buttonsgerman776-18/+115
2023-01-30kernel: add KCapabilitiesLiam6-0/+738
2023-01-30gl_compute_pipeline: Force context flush when loading shader cacheameerj4-7/+37
2023-01-30input_common: joycon: Remove Magic numbers from common protocolNarr the Reg9-154/+221
2023-01-30gl_graphics_pipeline: Force context flush when loading shader cacheameerj4-9/+12
2023-01-30input_common: joycon: Fill missing enum dataNarr the Reg6-41/+53
2023-01-30Move to Clang Format 15Levi Behunin25-189/+185
Depends on https://github.com/yuzu-emu/build-environments/pull/69 clang-15 primary run
2023-01-29spirv: Fix TXQ with MSAA texturesameerj3-8/+19
2023-01-29emit_glasm_image: Fix TXQ with MSAA texturesameerj1-1/+9
2023-01-29emit_glsl_image: Implement TXQ with MSAA texturesameerj1-9/+23
Also fixes for texture buffers, which do not have mips eithers.
2023-01-29texture_pass: Fix texture descriptors comparisonsameerj1-2/+9
2023-01-29texture_pass: Refactor texture handle retrievalameerj1-7/+7
2023-01-28shader_recompiler: TXQ: Skip QueryLevels when possibleameerj11-29/+37
2023-01-28emit_glsl_image: Fix ImageFetch for MSAA texturesameerj1-6/+11
2023-01-28yuzu: config: Avoid reading deleted objectNarr the Reg1-2/+5
2023-01-28LDN Hostname Support in Direct ConnectSoRadGaming3-31/+38
- Added IPv6 & Namespace support in direct connection Regex - Updated Tooltip for Direct Connect UI - Removed Dropdown Connection Type in Direct Connect
2023-01-28texture_cache: Adjust image view sizes by MSAA samplesameerj2-0/+48
2023-01-28video_core: Implement vulkan clear specified channelFengChen6-20/+152
2023-01-28polyfill_thread: satisfy execution ordering requirements of stop_callbackLiam1-37/+46
2023-01-28input_common: joycon: Replace ReadSPI vector with spanNarr the Reg3-20/+26
2023-01-28input_common: joycon: Remove magic numbers from calibration protocolNarr the Reg6-107/+202
2023-01-27glasm: Add MS sampler typesameerj2-5/+8
2023-01-27glsl: Add MS sampler typesameerj1-22/+27
2023-01-26kernel: unbreak min/max template deduction on Apple ClangLiam1-2/+2
2023-01-26video_core/opengl: Add FSR upscaling filter to the OpenGL rendererWollnashorn14-172/+547
2023-01-26input_common: Implement SetLowPowerMode and TriggersElapsed for the joycon driverNarr the Reg4-0/+21
2023-01-26shader_recompiler: Remove S32 IR typeameerj13-46/+19
The frontend IR opcodes do not distinguish between signed and unsigned integer types. Fixes broken shaders when IR validation/graphics debugging is enabled for shaders that used BitCastS32F32
2023-01-26main: Convert to device independent coordinates for scalingMorph3-8/+13
devicePixelRatioF() returns the scaling ratio when high dpi scaling is enabled. When high dpi scaling is enabled, the raw screen coordinate system is scaled to device independent coordinates.
2023-01-26main: Use passthrough scaling for non-windows OSesMorph1-3/+12
They should be better than windows when handling fractional scaling ratios.
2023-01-26main: Enable High DPI fixes for Qt >= 5.14Morph1-0/+43
This uses Qt's new high DPI application attributes for scaling the current window. However, these aren't perfect as scaling with non integer scales will cause artifacts in UI, icons and other elements. Therefore, we use a heuristic to select an appropriate integer scale value depending on the current screen resolution and applies this to the application.
2023-01-26main: Only set AA_DisableWindowContextHelpButton below Qt6Morph1-1/+3
This is fortunately disabled by default on Qt6, so we just have to check whether we are compiling with Qt6 or not.
2023-01-25input_common: Make use of StoppableTimedWaitMorph2-5/+6
2023-01-25polyfill_thread: Implement StoppableTimedWaitMorph1-0/+36
StoppableTimedWait allows for a timed wait to be stopped immediately after a stop is requested. This is useful in cases where long duration thread sleeps are needed and allows for immediate joining of waiting threads after a stop is requested. Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2023-01-25input_common: add missing header for libc++ after 340f15d1fa79Jan Beich1-0/+1
src/input_common/drivers/joycon.cpp:187:26: error: no member named 'find_if' in namespace 'std::ranges' std::ranges::find_if(left_joycons, [](auto& device) { return !device->IsConnected(); }); ~~~~~~~~~~~~~^ src/input_common/drivers/joycon.cpp:193:54: error: no member named 'find_if' in namespace 'std::ranges' const auto unconnected_device = std::ranges::find_if( ~~~~~~~~~~~~~^ src/input_common/drivers/joycon.cpp:393:51: error: no member named 'find_if' in namespace 'std::ranges' const auto matching_device = std::ranges::find_if( ~~~~~~~~~~~~~^ src/input_common/drivers/joycon.cpp:402:51: error: no member named 'find_if' in namespace 'std::ranges' const auto matching_device = std::ranges::find_if( ~~~~~~~~~~~~~^
2023-01-25Revert 9617 and fix it on input_commonNarr the Reg2-12/+9
2023-01-25default_ini: Split and concatenate the config string literalMorph1-2/+8
We are dangerously close to MSVC's 16384 character limit for string literals. Breaking this string up and concatenating will allow for more settings to be added in the future.
2023-01-25Revert "MemoryManager: use fastmem directly."Merry3-34/+11
This reverts commit af5ecb0b15d4449f58434e70eed835cf71fc5527.
2023-01-25main: Globally disable the "?" button on dialogsMorph10-17/+8
Sets the AA_DisableWindowContextHelpButton attribute to disable this useless button globally.
2023-01-24kernel: split SetAddressKey into user and kernel variantsLiam5-11/+29
2023-01-23kernel: fix incorrect locking order in suspensionLiam3-31/+23
2023-01-23spirv: fix multisampled image fetchLiam4-2/+16
2023-01-23cmake: prefer system llvm libraryAlexandre Bouvier2-5/+3
2023-01-22kernel: KPageTable: updateLiam6-215/+477
2023-01-22yuzu: Fix language comobox crashgerman774-8/+21
2023-01-21nsight_aftermath_tracker: update for latest Aftermath SDKLiam1-4/+4
2023-01-20core: hid: Make use of SCOPE_EXIT and SCOPE_GUARD where applicableNarr the Reg1-67/+38
2023-01-20input_common: Fix joycon mappingsgerman772-57/+53
2023-01-20input_common: Address byte reviewgerman7716-243/+220
2023-01-20core: hid: Only set the polling mode to the correct sideNarr the Reg8-27/+70
2023-01-20input_common: Drop Pro controller support from custom drivergerman774-43/+4
2023-01-20input_common: Fix issue where ring and irs are enabled at the same timegerman774-15/+24
2023-01-20input_common: Implement joycon ir cameraNarr the Reg15-23/+608
2023-01-20yuzu: Add ring controller test buttongerman7710-174/+370
2023-01-20input_common: Use DriverResult on all enginesgerman7717-104/+100
2023-01-20Address review commentsgerman7714-46/+44
2023-01-20core: hid: Fix input regressionsNarr the Reg6-41/+56
2023-01-20input_common: Implement joycon nfcgerman779-13/+544
2023-01-20input_common: Add dual joycon supportNarr the Reg1-24/+101
2023-01-20input_common: Add support for joycon ring controllerNarr the Reg9-4/+272
2023-01-20input_common: Add support for joycon input reportsNarr the Reg8-100/+798
2023-01-20input_common: Use calibration from joyconNarr the Reg5-0/+231
2023-01-20input_common: Add support for joycon generic functionsNarr the Reg5-3/+310
2023-01-20input_common: Add joycon low level functionsNarr the Reg3-0/+434
2023-01-20service: hid: Set led pattern and fix color detectionNarr the Reg1-0/+5
2023-01-20core: hid: Enable pulling color data from controllersNarr the Reg9-2/+246
2023-01-20core: hid: Migrate ring from emulated devices to emulated controllerNarr the Reg8-88/+105
2023-01-20yuzu: Update controller colors and button namesNarr the Reg2-3/+27
2023-01-20input_common: Disable SDL driver with switch controllersNarr the Reg6-6/+44
2023-01-20input_common: Initial skeleton for custom joycon driverNarr the Reg8-3/+1786
2023-01-19add volume quicksetting with volume sliderJonas Gutenschwager2-24/+90
2023-01-18input_common: reset sdl motion if data is invalidgerman771-19/+35
2023-01-18fix formatJonas Gutenschwager2-4/+2
2023-01-18Demote maxwell3d Firmware4 call log to debugKelebek11-1/+1
2023-01-18allow volume up/down hotkeys to be repeatedJonas Gutenschwager4-27/+32
2023-01-16Address feedbackFeng Chen5-14/+62
2023-01-15memory: fix watchpoint use when fastmem is enabledLiam1-0/+4
2023-01-14timing: wait for completion on unregisterLiam3-29/+28
2023-01-14Be careful of mangled out of bounds readKelebek12-9/+9
2023-01-14core: hid: Fix stick minimum rangegerman771-2/+10
2023-01-14upsample: Fix coefficient formatMerry1-26/+26
2023-01-14audio_core: Fix off-by-one error in upsamplerMerry1-33/+12
2023-01-14Move demangle impl to cppKelebek13-23/+36
2023-01-14Add stacktrace symbol demanglingKelebek13-15/+39
2023-01-13Update settings.hMatías Locatti1-0/+2
2023-01-13CPPMatías Locatti1-0/+8
2023-01-13UI changeMatías Locatti1-0/+10
2023-01-131.5X resolution scaler optionMatías Locatti3-5/+15
2023-01-13debugger: add host fastmem pointer fetch commandLiam1-3/+23
2023-01-12nvnflinger: correct swap interval handlingLiam2-5/+5
2023-01-11yuzu: Read mouse wheel inputNarr the Reg3-1/+10
2023-01-10qt: unlock during signal emissionLiam2-2/+21
2023-01-10vulkan_common: fix indirect draw with countLiam3-8/+15
2023-01-10MoltenVK: restrict number of vertex attributes/bindings to 16TellowKrinkle1-10/+25
2023-01-09qt: fix configuration weirdness on turboLiam1-2/+3
2023-01-09macOS: Make Yuzu show up in the Launchpad Games folder (#9594)UltraHDR1-0/+2
https://developer.apple.com/documentation/bundleresources/information_property_list/lsapplicationcategorytype This makes it show up in the Launchpad Games folder
2023-01-09vulkan_device: refactor feature testingLiam3-1173/+664
2023-01-08renderer_vulkan: disable turbo by defaultLiam1-1/+1
2023-01-08VideoCore: Fix OGL cache invalidation.Fernando Sahmkow2-0/+6
2023-01-08Revert "Revert "k_page_group: synchronize""bunnei11-181/+322
2023-01-07Revert "shader_recompiler: Align SSBO offsets to meet host requirements"Liam4-12/+6
This reverts commit 8804a4eb23e0c4f3e4bab03dee7c204bd38bf21e.
2023-01-07Revert "Vulkan, OpenGL: Hook up storage buffer alignment code"Liam6-22/+3
This reverts commit 9e2997c4b6456031622602002924617690e32a13.
2023-01-07TAS: Show all script lengths for multiplayerMonsterDruide14-7/+38
2023-01-07renderer_vulkan: pause turbo submissions on inactive queueLiam5-0/+40
2023-01-07Avoid OOB array access reading passthrough attr maskBilly Laws1-1/+1
YFC 1.5 extended the size of the varying mask used to hold passthrough attrs without considering this
2023-01-07vulkan_device: avoid attempt to access empty optionalLiam1-2/+6
2023-01-07renderer_vulkan: disable clock boost on unvalidated devicesLiam3-1/+15
2023-01-07qt: additional fixes for reentrant shutdownLiam1-3/+7
2023-01-06opengl: Sanitize antialiasing configNarr the Reg1-1/+7
2023-01-06video_core/vulkan: Fixed loading of Vulkan driver pipeline cacheWollnashorn1-1/+2
The header size of the Vulkan driver pipeline cache files was incorrectly in PipelineCache::LoadVulkanPipelineCache, for which the pipeline cache wasn't read correctly and got invalidated on each load.
2023-01-06MacroHLE: eliminate 2 rushed macros.Fernando Sahmkow1-42/+0
2023-01-06input_common: Create an update engineNarr the Reg4-19/+37
2023-01-06externals: update dynarmic, xbyakLiam2-0/+8
2023-01-05Run clang-formatBilly Laws6-24/+35
2023-01-05shader_recompiler: Fix shuffle partitioning for >64 invoc-per-subgroup GPUsBilly Laws1-30/+28
The existing implementation only supports 64 invoc-per-subgroup GPUs, and misbehaves on adreno when invocations need to be split into 4 emulated subgroups.
2023-01-05Vulkan, OpenGL: Hook up geometry shader passthrough emulationBilly Laws2-0/+2
2023-01-05shader_recompiler: Add support for lowering geometry passthroughBilly Laws2-40/+67
Reuses most of the existing code for generating the gl_Layer passthrough. Fixes geometry in Nier: Automata on GPUs without HW passthrough support.
2023-01-05Vulkan, OpenGL: Hook up storage buffer alignment codeBilly Laws6-3/+21
2023-01-05shader_recompiler: Align SSBO offsets to meet host requirementsBilly Laws4-6/+11
We can take advantage of SSBO addresses being passed in a constant bufer to account for the extra alignment requirements in the shader itself.
2023-01-05shader_recompiler: SPIRV: Only enable int64 feature when supportedBilly Laws1-1/+1
2023-01-05shader_recompiler: Add comparison operators to descriptor typesBilly Laws1-0/+12
2023-01-05Vulkan: Add a workaround for input_position on Adreno driversBilly Laws5-11/+42
Adreno drivers will crash compiling geometry shaders if the input position is not wrapped in a gl_in struct.
2023-01-05video_core/vulkan: Vulkan driver pipelines now contain cache versionWollnashorn2-16/+28
So that old cache can get deleted when the cache version changes and does not grow infinitely
2023-01-05video_core/vulkan: Driver pipeline cache will now be deleted with the shader cacheWollnashorn2-1/+20
2023-01-05config: Set the Vulkan driver pipeline cache option to be globalWollnashorn2-0/+4
2023-01-05video_core/vulkan: Added check if Vulkan pipeline path has been setWollnashorn1-1/+1
2023-01-05config: Better wording for VK pipeline cache option and enable by defaultWollnashorn2-3/+3
2023-01-05yuzu-cmd: Removed `use_vulkan_driver_pipeline_cache` from default_ini.hWollnashorn1-4/+0
The addition of the use_vulkan_driver_pipeline_cache option into the default ini string literal caused the 16,384-byte limit of the MSVC compiler to be exceeded.
2023-01-05video_core/vulkan: Added `VkPipelineCache` to store Vulkan pipelinesWollnashorn15-67/+253
As an optional feature which can be enabled in the advanced graphics configuration, all pipelines that get built at the initial shader loading are stored in a VkPipelineCache object and are dumped to the disk. These vendor specific pipeline cache files are located at `/shader/GAME_ID/vulkan_pipelines.bin`. This feature was mainly added because of an issue with the AMD driver (see yuzu-emu#8507) causing invalidation of the cache files the driver builds automatically.
2023-01-05BufferBase: Don't ignore GPU pages.Fernando Sahmkow8-23/+22
2023-01-05Fermi2D: sync cache flushesFernando Sahmkow2-2/+5
2023-01-05MemoryManager: use fastmem directly.Fernando Sahmkow3-11/+34
2023-01-05net: Silently translate ETIMEDOUT network errorMonsterDruide11-1/+5
2023-01-05video_core: Cache GPU internal writes.Fernando Sahmkow10-30/+185
2023-01-05Vulkan: Fix drivers that don't support dynamic_state_2 upFernando Sahmkow2-8/+11
2023-01-05video_core: Implement opengl/vulkan draw_textureFeng Chen19-138/+291
2023-01-05video_core: Implement maxwell3d draw texture methodFeng Chen7-1/+177
2023-01-05tests: update catch2 to 3.0.1Alexandre Bouvier15-23/+14
2023-01-05common: add setting for renderer clock workaroundLiam8-1/+32
2023-01-05vulkan: implement 'turbo mode' clock boosterLiam8-2/+272
2023-01-05renderer_vulkan: implement fallback path for null descriptorsLiam3-0/+19
2023-01-04yuzu-ui: Add setting for disabling macro HLEFernando Sahmkow6-5/+26
2023-01-04Video_core: Address feedbackFernando Sahmkow20-170/+346
2023-01-04Texture Cache: Implement async texture downloads.Fernando Sahmkow5-35/+91
2023-01-04Vulkan: Update blacklisting to latest driver versions.Fernando Sahmkow1-5/+12
2023-01-03ShaderCompiler: Inline driver specific constants.Fernando Sahmkow5-3/+39
2023-01-03Vulkan: rework stencil tracking.Fernando Sahmkow4-36/+169
2023-01-03TAS: Immediately switch stick to TAS on inputMonsterDruide11-9/+11
Co-Authored-By: Narr the Reg <5944268+german77@users.noreply.github.com>
2023-01-02cmake: move find-modules to root cmake dirAlexandre Bouvier3-5/+0
2023-01-02service: nifm: Initialize request stategerman771-0/+1
2023-01-02service: nifm: Match documentation namesgerman771-31/+56
2023-01-01vulkan_common: blacklist radv from extended_dynamic_state2 on drivers before 22.3.1Liam2-2/+14
2023-01-01video_core: fix buildLiam4-3/+38
2023-01-01MacroHLE: Final cleanup and fixes.Fernando Sahmkow14-128/+94
2023-01-01Rasterizer: Setup skeleton for Host Conditional renderingFernando Sahmkow6-10/+53
2023-01-01RasterizerMemory: Add filtering for flushing/invalidation operations.Fernando Sahmkow14-93/+186
2023-01-01Vulkan: Allow stagging buffer deferrals.Fernando Sahmkow2-21/+56
2023-01-01MacroHLE: Add OpenGL SupportFernando Sahmkow6-39/+107
2023-01-01Vulkan: Add other additional pipeline specsFernando Sahmkow1-1/+17
2023-01-01Vulkan: Implement Dynamic State 3Fernando Sahmkow13-105/+313
2023-01-01Vulkan Implement Dynamic State 2 LogicOp and PatchVerticesFernando Sahmkow12-27/+75
2023-01-01Vulkan: Implement Dynamic States 2Fernando Sahmkow13-66/+315
2023-01-01DMAPusher: Improve collection of non executing methodsFernando Sahmkow13-2/+181
2023-01-01Revert Buffer cache changes and setup additional macros.Fernando Sahmkow7-128/+179
2023-01-01MacroHLE: Reduce massive calculations on sizing estimation.Fernando Sahmkow9-95/+238
2023-01-01MacroHLE: Add HLE replacement for base vertex and base instance.Fernando Sahmkow22-70/+265
2023-01-01MacroHLE: Add Index Buffer size estimation.Fernando Sahmkow5-10/+74
2023-01-01MacroHLE: Refactor MacroHLE system.Fernando Sahmkow11-121/+420
2023-01-01MacroHLE: Implement DrawIndexedIndirect & DrawArraysIndirect.Fernando Sahmkow16-72/+252
2023-01-01MacroHLE: Add MultidrawIndirect HLE Macro.Fernando Sahmkow13-47/+169
2023-01-01TAS: Record sanitized instead of raw stick inputsMonsterDruide11-5/+5
Co-Authored-By: Narr the Reg <5944268+german77@users.noreply.github.com>
2023-01-01vfs: Replace cstr concat with char concatMerry1-3/+3
2023-01-01vulkan_common: unify VK_EXT_debug_utils and selection of validation layerLiam3-11/+10
2023-01-01host_memory: Use transparent huge pages where availableMerry1-0/+15
2023-01-01host_memory: Allocate virtual_base with MAP_NORESERVEMerry1-2/+2
Specify that we do not require swap to be reserved for this address range; allow overcommitting.
2022-12-30settings: comment language blocklist columnsColin Kinloch1-7/+13
2022-12-30core: hid: emulated_console: Avoid a crash if frontend does not configure touch_from_button_maps.bunnei1-0/+5
2022-12-30config: Save multiplayer settings only globallyWollnashorn1-2/+0
Saved multiplayer settings like the nickname, remote address, etc. were reset everytime a game was booted up and the game-specific config files were loaded, as these values will never be set.
2022-12-29settings: added regon/language warning bounds checkColin Kinloch1-1/+1
2022-12-29Revert "k_page_group: synchronize"gidoly11-322/+181
2022-12-29hle_ipc: Use thread_local ReadBufferameerj1-4/+14
2022-12-29hle_ipc: Rename ReadBufferSpan to ReadBufferameerj33-97/+97
2022-12-29hle_ipc: Rename ReadBuffer to ReadBufferCopyameerj3-4/+6
Indicates explicitly that a copy is occurring
2022-12-29bsd: Use std::span for read payloadsameerj6-36/+38
Allows the use of HLERequestContext::ReadBufferSpan
2022-12-29nvdrv: Use std::span for inputsameerj24-211/+209
Allows the use of HLERequestContext::ReadBufferSpan
2022-12-29hidbus: Use ReadBufferSpanameerj11-12/+16
2022-12-28cmake: make cubeb and SDL2 optionalLiam1-6/+13
2022-12-28cmake: make libusb optionalLiam2-7/+32
2022-12-28cmake: make room server optionalLiam1-1/+4
2022-12-28settings: warn on invalid regon/language combinationsColin Kinloch2-1/+41
2022-12-26tests: add missing headerAlexandre Bouvier1-0/+1
<cstring> is needed for std::memcpy
2022-12-26video_core: Implement other missing vulkan topologyFengChen1-3/+16
2022-12-26video_core: Implement vulkan QuadStrip topologyFengChen8-122/+229
2022-12-25nvflinger: Split Parcel class into InputParcel and OutputParcelameerj5-48/+53
The usages of the Parcel class were already unique to either Read or Write operations. Avoids needing a vector of the input payload for the InputParcel use-case, instead it can remain as a span.
2022-12-25service: Use ReadBufferSpan where it is trivial to do soameerj31-77/+78
2022-12-25TAS: Increase accuracy of Stick inputsMonsterDruide11-0/+7
2022-12-25texture_cache: Use Common::ScratchBuffer for swizzle buffersameerj4-10/+12
2022-12-25texture_cache: Use pre-allocated buffer for texture downloadsameerj3-9/+14
2022-12-25texture_cache: Use pre-allocated buffer for texture uploadsameerj4-13/+28
2022-12-25k_page_table: remove HACK_OpenPages/ClosePagesLiam3-58/+54
2022-12-25fsp_srv: Use ReadBufferSpanameerj3-19/+17
2022-12-25hle_ipc: Add ReadBufferSpan functionameerj2-0/+22
Returns a std::span to the buffer address, rather than create a copy of the memory into a std::vector
2022-12-25k_page_group: synchronizeLiam11-125/+270
2022-12-24qt: prevent reentrant shutdownLiam2-5/+12
2022-12-24qt: fix 'Pause' menu item (#9497)liamwhite1-1/+1
2022-12-24Disable automatically opening the console on windows yuzu-cmd builds (#9485)Chris Oboe2-0/+16
* don't automatically open the console on windows build of yuzu-cmd * fix formatting
2022-12-24qt: fix uninitialized memory usageLiam1-1/+1
2022-12-24yuzu: Automatically refresh device listgerman773-23/+11
2022-12-23kernel: workaround static shared memory initializationLiam3-58/+62
2022-12-22time: add LockFreeAtomicTypeLiam3-40/+65
2022-12-22qt: exit properly on guest-initiated closeLiam2-1/+9
2022-12-22qt: use main window as close overlay parentLiam2-4/+4
2022-12-20qt: continue event loop during game closeLiam4-14/+64
2022-12-20scratch_buffer: Explicitly defing resize and resize_destructive functionsameerj7-19/+108
resize keeps previous data intact when the buffer grows resize_destructive destroys the previous data when the buffer grows
2022-12-20tests: Add ScratchBuffer testsameerj3-5/+137
2022-12-20dma_pusher: Rework command_headers usageameerj2-9/+16
Uses ScratchBuffer and avoids overwriting the command_headers buffer with the prefetch_command_list
2022-12-20buffer_cache: Use Common::ScratchBuffer for ImmediateBuffer usageameerj1-7/+4
2022-12-20video_core: Add usages of ScratchBufferameerj4-33/+21
2022-12-20common: Add ScratchBuffer classameerj2-0/+75
This class creates a default initialized heap allocated buffer for cases where value initializing members during allocation or resize is redundant.
2022-12-20common: add make_unique_for_overwriteameerj2-0/+26
2022-12-19externals: update Vulkan-Headers to v1.3.238Jan Beich1-0/+12
2022-12-19overlay_dialog: Avoid starting the input thread if non-interactiveMorph1-1/+3
2022-12-19overlay_dialog: Hide button dialog box when both buttons are hiddenMorph1-0/+8
This allows for the creation of a non-interactive dialog overlay to display system messages.
2022-12-19kernel: remove TimeManagerLiam11-117/+33
2022-12-18kernel: add KHardwareTimerLiam6-6/+271
2022-12-18input_common: Cleanup projectgerman772-206/+83
2022-12-18service: nfc: Silence ListDevicesgerman772-2/+2
2022-12-18Use execlp instead of execl to avoid failureMarco Rubin1-1/+1
2022-12-18yuzu: Remember last selected directorygerman771-0/+3
2022-12-18bootmanager: Use proper camera sizegerman773-6/+13
2022-12-18bootmanager: Encapsulate all QCamera codegerman772-5/+7
2022-12-18yuzu: fix device name settinggerman771-3/+2
2022-12-18Enable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442)Matías Locatti1-2/+2
* Testing LTO (#4) * Testing LTO * clang * linux * Added the rest of Blinkhawk's optimizations * Unlikely asserts * Removing LTO from Linux builds - GCC * Removing LTO from Linux builds - Clang
2022-12-17qt: use _exit instead of exit on SIGINTLiam1-1/+1
2022-12-17EmuThread: refactorLiam6-172/+64
2022-12-17qt: avoid setting WA_DontCreateNativeAncestors on all platformsLiam1-1/+5
2022-12-17input_common: Add virtual gamepadgerman777-0/+274
2022-12-17camera: Use pre-allocated vector for camera dataameerj4-9/+12
And avoid an unnecessary copy
2022-12-16Remove unimplemented transform feedback geometry spam, it should be implementedKelebek11-2/+1
2022-12-16Signal buffer event on audio in/out system stop, and force remove all registered audio buffersKelebek15-7/+26
2022-12-16qt: handle wayland-egl platform nameLiam2-3/+7
2022-12-16hle_ipc: Refactor ReadBuffer to set buffer size upon initializationameerj1-8/+6
Initializing the vector size during initialization is more efficient than a later call to resize()
2022-12-16hle_ipc: Reserve vectors before populatingameerj1-0/+8
2022-12-15kernel: svc: Fix duplicated InfoType enumNarr the Reg1-90/+47
2022-12-15kernel: process: Implement GetFreeThreadCountNarr the Reg3-1/+28
Used by Just Dance® 2023 Edition
2022-12-14Revert "hle: service: audio: Use default service thread."bunnei3-12/+18
2022-12-14Vulkan: Add support for VK_EXT_depth_clip_control.FernandoS278-7/+52
2022-12-14Set: Allow setting device nicknameChloe Marcec9-2/+42
2022-12-14main: Address review feedbacklat9nq1-19/+33
Moves icon path to ~/.local/share/icons, though I'm opting to avoid using the game title for the icon and desktop entry name as that would cause filenames such as "yuzu-cadence-of-hyrule-crypt-of-the-necrodancer-featuring-the-legend-of-zelda-demo.desktop".
2022-12-14vulkan_common: declare storageBuffer8BitAccessLiam1-1/+2
2022-12-14spirv_emit_context: declare GroupNonUniform capability for SubgroupLocalInvocationIdLiam1-0/+2
2022-12-13yuzu qt: Create shortcuts on Linuxlat9nq5-0/+196
This creates a Desktop Entry file and a PNG icon for the entry when the user right-clicks a game and selects "Create Shortcut -> Create {Application,Desktop} Shortcut". This uses the current executable's path to create the shortcut. yuzu qt: Add more error checking and OS gating for shortcuts main: Remove FreeBSD gating for shortcuts I'm not going to test FreeBSD, so I don't know if they follow Freedesktop.org or not. I just have to let someone else verify that it works there and let them enable it. main: Move shortcut function to its own function This function should really be in a common library, at least among frontends. main: Remove image manip references main: Fix difference in MinGW and native GCC versions main: Fix negation in creat shortcut Addresses review comment Co-authored-by: Jan Beich <jbeich@FreeBSD.org> main: Re-enable freedesktop shorcuts for FreeBSD
2022-12-13gl_device: Use a more robust way to use strict context modeAlexander Orzechowski6-8/+17
Instead of checking a environment variable which may not actually exist or is just wrong, ask QT if it's running on the wayland platform.
2022-12-13OpenGL: Check for threading supportAlexander Orzechowski1-0/+6
We need this.
2022-12-13wayland: Always use exclusive fullscreenAlexander Orzechowski2-4/+10
Wayland does not allow clients to choose their own size and position on the screen. The concept of fullscreening an application by sizing it to the screen and removing decorations does not exist. Use exclusive fullscreen instead.
2022-12-13RenderWidget: Set WA_DontCreateNativeAncestorsAlexander Orzechowski1-0/+1
Some windowing systems like wayland are designed to show hardware accellerated surfaces as subsurfaces and not native windows.
2022-12-13emu_window_sdl2: Respect hidpiAlexander Orzechowski1-1/+1
Use SDL_GL_GetDrawableSize instead of SDL_GetWindowSize which will return the true size our swapchain needs to be in even for hidpi displays.
2022-12-13video_core/vulkan: Explicity check swapchain size when deciding to recreateAlexander Orzechowski3-15/+28
Vulkan for whatever reason does not return VK_ERROR_OUT_OF_DATE_KHR when the swapchain is the wrong size. Explicity make sure the size is indeed up to date to workaround this.
2022-12-13renderer_opengl: refactor context acquireLiam6-38/+62
2022-12-13emu_thread: properly force shutdown for unresponsive guest programsLiam2-12/+5
2022-12-13let games gracefully exitGus Caplan3-3/+17
2022-12-13Fix validation errors on less compatible Intel GPUyzct123455-2/+34
2022-12-13yuzu: Make unlimited frame rate non persistent between game bootsNarr the Reg2-2/+3
2022-12-12input_common: Filter SDL GUIDNarr the Reg1-0/+2
2022-12-11memory: correct semantics of data cache management operationsLiam4-102/+15
2022-12-11video_core: fix off by one in anisotropic filtering amountLiam1-1/+2
2022-12-10cmake: make OpenGL loader optionalLiam1-1/+1
Co-authored-by: liushuyu <liushuyu@users.noreply.github.com>
2022-12-10audio_core: remove explicitly defaulted and implicitly deleted constructorsLiam2-2/+0
2022-12-10memory: remove DEBUG_ASSERT pointer testLiam1-2/+0
2022-12-09Remove the lock entirely as per PR discussionSalvage1-3/+0
Correctly unlock mutex before its destruction As per https://en.cppreference.com/w/cpp/thread/mutex/~mutex destroying a locked mutex is undefined behavior and MSVC++ decides to throw in this case Swap out unique for scoped lock and readd comment
2022-12-09Fix compilation errorSalvage1-1/+1
2022-12-08video_core: Integrate SMAALiam24-28/+13894
Co-authored-by: goldenx86 <goldenx86@users.noreply.github.com> Co-authored-by: BreadFish64 <breadfish64@users.noreply.github.com>
2022-12-08video_core: Add vertex_array_instance_* sbubbed called warningFengChen1-0/+5
2022-12-08video_core: The draw manager manages whether Clear is required.FengChen3-10/+9
2022-12-08video_core: Adjust topology update logicFengChen2-23/+23
2022-12-08video_core: Implement maxwell3d draw manager and split draw logicFeng Chen12-267/+341
2022-12-06general: improve handling of system startup failureLiam5-21/+27
2022-12-06configure_graphics: Make SPIRV backend string translatableLioncash1-1/+1
The parenthetical needs to be translatable, like with GLASM
2022-12-06cmake: prefer system libusbAlexandre Bouvier1-3/+1
2022-12-06vulkan_common: further initialization tweaksLiam2-1/+9
2022-12-06reporter: Pass by const reference where applicableLioncash2-19/+20
Same behavior, but without memory churn.
2022-12-06reporter: Eliminate undefined behavior in SaveErrorReportLioncash2-6/+6
The optionals are unconditionally dereferenced when setting the custom error text, and in a few cases this function is called using the default value of the optionals. This means we'd be dereferencing uninitialized storage. Since they're used unconditionally, we can use value_or to set a default when storage is uninitialized.
2022-12-06cmake: use sdl2 imported targetAlexandre Bouvier4-22/+4
2022-12-06applets/controller: Use aliases for callbacksLioncash4-6/+8
2022-12-06applets/error: Use aliases for callbacksLioncash4-16/+18
2022-12-06applets/mii_edit: Use aliases for callbacksLioncash2-3/+5
2022-12-06applets/profile_select: Use aliases for callbacksLioncash4-8/+8
Deduplicates callback definitions and situates it in one place.
2022-12-06applets/web_browser: Use aliases for callbacksLioncash4-32/+27
Deduplicates a lot of long callback declarations
2022-12-06applets/software_keyboard: Use aliases for callbacksLioncash4-35/+23
Deduplicates really long std::function declarations to make the interface nicer to read.
2022-12-06emulated_controller: Remove unused parameter in GetMappedDevices()Lioncash3-5/+3
This isn't used, so it can be removed to make the function a little nicer.
2022-12-06emulated_controller: Use std::move() in GetMappedDevices()Lioncash1-6/+6
Avoids churning allocations in a loop.
2022-12-06emulated_console: Amend cast in SetTouch()Lioncash1-1/+1
id is an int value, not a u32.
2022-12-06emulated_console: std::move() ParamPackages and callbacks where applicableLioncash1-4/+4
2022-12-05kernel/k_shared_memory: Ensure device_memory is always initializedLioncash1-1/+1
2022-12-05kernel/k_memory_block: Ensure members are always initializedLioncash2-22/+20
2022-12-05kernel/physical_core: Ensure is_interrupted is always initializedLioncash1-1/+1
2022-12-05kernel/thread: Ensure stack_top and argument are always initializedLioncash1-2/+2
2022-12-05kernel/kernel: Ensure shutdown threads are always initializedLioncash1-1/+1
2022-12-05Vulkan: Implement Alpha coverageFernando Sahmkow3-2/+6
2022-12-05input_common: Allow mifare filesNarr the Reg2-16/+29
2022-12-04service_thread: fix uninitialized memory usageLiam1-7/+7
2022-12-04cmake: prefer system librariesAlexandre Bouvier9-27/+16
2022-12-04yuzu-cmd: link SDL2 correctlyLiam1-1/+1
2022-12-04vulkan_common: add feature test for shaderDrawParametersLiam1-1/+13
2022-12-04vulkan_common: clean up extension usageLiam12-102/+105
2022-12-04vulkan_common: correct usage of timeline semaphore fallbacksLiam1-2/+1
2022-12-04vulkan_common: ensure all mandatory features are tested in feature reportLiam1-1/+24
2022-12-04vulkan_common: unsuffix 16-bit storage feature test structureLiam1-2/+2
2022-12-04vulkan_common: unsuffix timeline semaphore feature test structureLiam1-2/+2
2022-12-04vulkan_common: add logicOp to feature reportLiam1-1/+2
2022-12-04vulkan_common: promote host query reset usage to coreLiam4-11/+12
2022-12-04vulkan_common: promote descriptor update template usage to coreLiam8-37/+36
2022-12-04vulkan_common: promote timeline semaphore usage to coreLiam3-9/+15
2022-12-04externals: update dynarmic, SDL2Liam5-21/+23
2022-12-02core: add option to break on unmapped accessLiam9-6/+69
2022-12-02service: nfc: Implement mifare serviceNarr the Reg9-36/+600
2022-12-01shader_recompiler: add gl_Layer translation GS for older hardwareLiam9-6/+230
2022-12-01video_core: Fine tuning the index drawing judgment logicFeng Chen2-27/+22
2022-12-01vulkan_common: quiet some validation errorsLiam2-1/+3
2022-12-01CMake: Consolidate common PCH headersameerj14-84/+29
2022-12-01string_util: Fix Mingw compile errorameerj1-2/+2
Co-Authored-By: liamwhite <9658600+liamwhite@users.noreply.github.com>
2022-11-30audio_core: sink_stream: Hold the suspend lock when process is stalled.bunnei2-7/+9
- Prevents us from clashing with other callers trying to un/stall.
2022-11-30CMake: Disable PCH on MSVC + Buildcache configsameerj1-4/+0
2022-11-30Respect render mode overrideKelebek11-29/+39
2022-11-30CMake: Use precompiled headersameerj25-1/+214
2022-11-30value.h: remove recursive includeameerj1-1/+0
2022-11-29host1x/syncpoint_manager: Eliminate unnecessary std::function constructionLioncash1-4/+2
We can just pass the function object through, and if it's a valid function, then it will automatically be converted.
2022-11-29host1x/syncpoint_manager: Pass DeregisterAction() handle as const-refLioncash2-6/+6
The handle is only compared against and not modified in any way, so we can pass it by const reference. This also allows us to mark the respective parameters for DeregisterGuestAction() and DeregisterHostAction() as const references as well.
2022-11-29maxwell_3d: Mark shifted value as unsignedLioncash1-3/+3
Otherwise this is technically creating a signed int result that gets converted. Just a consistency change. While we're in the area, we can mark Samples() as const.
2022-11-29engines: Remove unnecessary castsLioncash10-85/+57
In a few cases we have some casts that can be trivially removed.
2022-11-29CMake: Directly link to SDL2-static when appropriatelat9nq3-3/+15
Trying to be lazy and alias SDL2 to SDL2-static causes issues in later versions of CMake. Just use the same condition to tell which one to use.
2022-11-29service: nifm: Update stubs for Submit/GetRequestState/GetResultMorph1-7/+34
2022-11-29video_core/surface: Eliminate casts in GetFormatType()Lioncash1-11/+4
We can just compare directly and get rid of verbose casting.
2022-11-29video_core: add null backendLiam20-28/+383
2022-11-29producer_listener: Add virtual destructor to IProducerListenerLioncash1-0/+1
Several member variables are shared_ptr's to this base class. Even though producer listeners are still unimplemented, this ensures we always have consistent deletion behavior once this ends up being used polymorphically.
2022-11-29configure_input_player: Fix profile saving when using handheld controller typeameerj1-1/+7
2022-11-29config: Custom profile detection fixesameerj6-64/+108
Also only reads/writes applicable configs for the custom profiles.
2022-11-29configure_input_per_game: Allow configuring all 8 playersameerj3-54/+113
2022-11-29buffer_item_consumer: Pass fence by const-ref in ReleaseBuffer()Lioncash3-4/+3
This isn't directly modified. Also allows rvalues to be used with it.
2022-11-29buffer_queue_consumer: std::move std::shared_ptr in Connect()Lioncash1-1/+1
Avoids an unnecessary reference count increment and decrement
2022-11-29consumer_base: Pass shared_ptr by const referenceLioncash2-6/+6
Avoids churning atomic reference count increments and decrements.
2022-11-29consumer_base: Remove redundant virtualLioncash1-5/+5
override already serves this purpose
2022-11-28syncpoint_manager: Mark IsSyncpointAllocated() as constLioncash2-3/+3
This doesn't modify class state at all.
2022-11-28syncpoint_manager: Reduce number of bounds checksLioncash1-14/+28
The only time we need to check bounds is on the first access.
2022-11-28nvdrv: Simplify builder declarationsLioncash1-26/+18
We can just use auto here. If one of these ever happens to not be derived from nvdevice, then this will cause a compilation error. We can also move the devices into the collection to get rid of an unnecessary atomic reference count increment and decrement.
2022-11-28common/cache_management: Amend header includesLioncash2-4/+3
Narrows the include in the header to <cstddef>, since that's what houses size_t's definition, meanwhile the <cstdint> include can be moved into the cpp file.
2022-11-28input_common/helpers: Mark analog property structs members as static constexprLioncash2-2/+18
These are const with no dependency on any other data members, so we can make these static constexpr to reduce the overall object size.
2022-11-28core/hid/emulated_controller: Use ranges version of transformLioncash1-19/+15
Makes the transform calls much nicer to read.
2022-11-28common/input: Add helpers functions for creating input and output devicesLioncash7-90/+102
Avoids the redundancy of needing to explictly specify the common namespace and the type.
2022-11-28common/input: Pass ParamPackage by const reference in CreateDeviceLioncash1-3/+3
This was previously being passed by value, which was unnecessary and created more allocations than necessary.
2022-11-28yuzu/main: Merge variable declaration into ifdefLioncash1-2/+1
This is only used in the non-Windows path.
2022-11-28yuzu-cmd: Fix default config valuegerman771-1/+5
2022-11-27Vulkan: update initializationLiam13-101/+191
Co-authored-by: bylaws <bylaws@users.noreply.github.com>
2022-11-27input_common: Pump sdl events from main threadgerman776-10/+35
2022-11-27yuzu-cmd: Fix input callback crash on closegerman773-0/+13
2022-11-27crypto: use user-provided keys whenever possibleValeri1-4/+4
Solves an issue where autogenerated title keys would take precedence over those provided by user.
2022-11-27yuzu-cmd: Update configuration file descriptiongerman771-3/+26
2022-11-26core: Use atomic instead of a lock to protect is_paused.bunnei1-6/+5
- This allows us to call IsPaused() elsewhere if we are holding the suspend lock.
2022-11-26OopsMatías Locatti1-1/+1
2022-11-26Replace GLSL as the default OpenGL shader backendMatías Locatti1-1/+1
GLASM is not very compatible with the latest games, and too many people have the special superpower to break their Vulkan support.
2022-11-26Sharpness instead of SharpeningMatías Locatti1-3/+3
2022-11-26configure_graphics: Implement custom FSR Sharpening settinglat9nq2-61/+128
2022-11-26settings: Reset FSR sharpening global state with the otherslat9nq1-0/+1
2022-11-24Fermi2D: Cleanup and address feedback.Fernando Sahmkow3-8/+150
2022-11-24GPU: Fix buffer cache issue, engine upload not inlining memory in multiline and pessismistic invalidation.Fernando Sahmkow4-15/+9
2022-11-24GPU: Implement additional render target formats.Fernando Sahmkow7-12/+126
2022-11-24MaxwellDMA: Implement BlockLinear to BlockLinear copies.Fernando Sahmkow2-1/+69
2022-11-24Fermi2D: Implement Bilinear software filtering and address feedback.Fernando Sahmkow7-116/+180
2022-11-24Fermi2D: Rework blit engine and add a software blitter.Fernando Sahmkow12-18/+1431
2022-11-24CMake: rework for Qt6 supportKyle Kienapfel3-14/+30
This PR rearranges things in the CMake system to make compiling with Qt6 possible 1. Camera API has changed in Qt6, so the camera feature is disabled 2. A previous fix involving QLocale is now version gated. 3. QRegExp replaced with QRegularExpression, see #5343 4. Qt6_LOCATION option added to specify a location to search for Qt6 (see examples below) 5. windeployqt is used to copy Qt6 files into the build directory on Windows Notes for Arch Linux Arch install happened to have qt6-base qt6-declarative qt6-translations installed mkdir build && cd build cmake .. -GNinja -DYUZU_USE_BUNDLED_VCPKG=ON -DYUZU_TESTS=OFF -DENABLE_QT6=YES -DYUZU_USE_BUNDLED_QT=NO Windows (MSVC) Qt wants users to download precompiled libraries via an online installer, it is worth noting that the GPL/LGPL takes precendence over any ... In the Qt Maintenance tool, under a version, such as 6.3.1 Select "MSVC 2019 64-bit" Under Additional Libraries Qt Multimedia may be of use for Camera support For the Web Applet I had to select the following: PDF Positioning WebChannel WebEngine mkdir build && cd build cmake -G "Visual Studio 16 2019" -DQt6_LOCATION=C:/Qt/6.4.0/msvc2019_64/ \ -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=YES -DYUZU_USE_BUNDLED_QT=NO \ -DENABLE_QT_TRANSLATION=YES -DENABLE_QT6=YES .. Some numbers for reference (msvc2019_64) Qt5 (slimmed down) 508 MB Qt5.15.2 all in 929 MB Qt6.3.1 1.71 GB Qt6.3.2 1.73 GB Qt6.4.0-beta3 1.83 GB Qt6.4.0 1.67 GB
2022-11-24FSR Sharpening Slider part 1 - only a global sliderMatías Locatti8-1/+132
2022-11-24startup_checks: Use fmt::print, fix exec error handlinglat9nq1-21/+21
Uses fmt::print opposed to std::fprintf for error printing. Call exit instead of returning to caller to prevent a like issue the previous commit was trying to solve. Removes unneeded comment. Co-authored-by: liamwhite <liamwhite@users.noreply.github.com> Co-authored-by: Lioncash <mathew1800@gmail.com>
2022-11-24startup_checks: Use Windows flow for *nixlat9nq2-9/+51
Spawns a child using fork and exec as opposed to fork alone. Workaround for the macos file manager complaining about not supporting fork without exec. Control flow for *nix is now roughly the same as for Windows.
2022-11-24maxwell_to_vk: Add R16_SINTMorph1-1/+1
This was somehow missed when the format was added to GL
2022-11-24maxwell_to_vk: Fix format usage bitsMorph1-2/+2
- VK_FORMAT_B8G8R8A8_UNORM supports the STORAGE_IMAGE_BIT - VK_FORMAT_R4G4B4A4_UNORM_PACK16 does not support the COLOR_ATTACHMENT_BIT
2022-11-23service: Make use of buffer element count helpersLioncash12-47/+41
2022-11-23hle_ipc: Add helper functions for getting number of buffer elementsLioncash1-0/+12
2022-11-23hle_ipc: Mark relevant member functions as [[nodiscard]]Lioncash1-25/+25
Will allow the compiler to complain about cases where ignoring the return value would be a bug.
2022-11-23Qt: assign menuRole properties for actionsLiam1-0/+9
2022-11-23general: fix compile for Apple ClangLiam78-37/+949
2022-11-22k_handle_table: Remove cast to void* in GetObjectForIpcLioncash2-15/+18
This was used to get around the KProcess class being incomplete. We can just move this to the cpp file and eliminate the cast entirely, letting the compiler do its work.
2022-11-22Use the maximum input index for samples buffer span size, not just the input countKelebek11-6/+8
2022-11-22video_core: Optimize maxwell drawing trigger mechanismFengChen2-61/+63
2022-11-21qt_amiibo_settings: Use WebClient only if ENABLE_WEB_SERVICE is enabledMorph1-0/+4
Resolves compilation errors when ENABLE_WEB_SERVICE is disabled in CMake configuration
2022-11-20Configuration: Add per-game input profilesameerj11-14/+465
2022-11-20dmnt:cht: fix copy-paste errorLiam1-1/+1
2022-11-19service: nfc: Implement nfc userNarr the Reg12-84/+723
2022-11-19service: hid: Only overclock npad controllersgerman772-6/+30
2022-11-19core: hid: Implement true multitouch supportNarr the Reg5-46/+93
2022-11-19spirv_emit_context: add missing flat decorationLiam1-0/+1
2022-11-18qt: Add Qt version to LogRuntimesKyle Kienapfel1-0/+1
2022-11-18Qt6: Disable IR Sensor when compiling with Qt6Kyle Kienapfel6-0/+25
Gating the IR Sensor code behind a macro like so `#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA` The YUZU_USE_QT_MULTIMEDIA flag is implemented in later commit Also the locale fix in src/yuzu/main.cpp is now gated against Qt6, as it causes compilation error
2022-11-17Dynarmic: Remove inaccurate NaN from Auto CPU settings.Fernando Sahmkow1-1/+0
2022-11-17shader: Implement miss attribute layerFengChen5-0/+13
2022-11-17maxwell3d: full HLE for multi-layer clearsLiam8-24/+17
2022-11-17maxwell3d: HLE multi-layer clear macroLiam2-1/+22
2022-11-16Update renderer_vulkan.cppMatías Locatti1-0/+4
2022-11-16configure_profile_manager: Cleanup reference/pointer usagelat9nq2-8/+10
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: Mai M. <mathew1800@gmail.com>
2022-11-16configure_profile_manager: Remove profile picture borderlat9nq1-0/+6
The border adds its own width at least on Linux which causes the icon to be offset by 1px, and cropped by 2px on the bottom and right sides.
2022-11-16configure_profile_manager: Use a custom dialog for deletionlat9nq2-11/+81
A hopefully more informative dialog that most importantly notifies the user that their saves will be deleted with the user profile. cpm: Only keep track of UI elements that we need cpm: Remove unused forward declarations cpm: Add missing include
2022-11-15video_core: Reimplement inline index buffer bindingFeng Chen5-33/+31
2022-11-15nvnflinger: fix lost wakeupLiam4-12/+16
2022-11-15core: Update result moduleNarr the Reg1-1/+75
2022-11-14Add break for default casesKyle Kienapfel24-6/+38
Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return
2022-11-14general: Address review commentsgerman7714-190/+200
2022-11-13service: am: Fix cabinet applet resultgerman772-10/+22
2022-11-13yuzu: Implement cabinet applet frontendgerman776-1/+865
2022-11-13service: am: Implement cabinet applet backendgerman779-7/+362
2022-11-13input_common: Add amiibo applet functionsgerman773-1/+19
2022-11-13service: nfc: fix tagprotocol and implement GetApplicationAreaIdgerman774-8/+43
2022-11-12Ignore ARM for core countMatías Locatti1-2/+1
2022-11-12kernel: implement FlushProcessDataCacheLiam4-8/+125
2022-11-12common: add cache management functionsLiam3-0/+89
2022-11-12Add CPU core count to log filesMatías Locatti3-3/+64
2022-11-12hle: service: audio: Use default service thread.bunnei3-18/+12
- This was arbitrarily added by me, and does not appear to be helpful.
2022-11-11yuzu/main: Change to 8_GiB instead of magic numberTobias1-1/+1
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2022-11-11Add break statement in default caseEnrico Mancuso1-0/+1
According to the contributing page (https://github.com/yuzu-emu/yuzu/wiki/Contributing) the default cases should have a break statement
2022-11-11Fix regs regression with OpenGL two-sided stencil, and re-add data invalidation regKelebek16-5/+32
2022-11-11ir/texture_pass: Use host_info instead of querying Settings::values (#9176)Morph12-16/+23
2022-11-11gdbstub: add ams monitor commandsLiam3-0/+155
2022-11-10debugger: allow more than one connection attempt per sessionLiam1-68/+93
2022-11-10Me likesMatías Locatti1-1/+1
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2022-11-10service_thread: remove explicit KProcessLiam2-29/+13
2022-11-10yuzu/compatdb: Rework compatibility submission systemFearlessTobi5-71/+404
Co-Authored-By: Narr the Reg <5944268+german77@users.noreply.github.com>
2022-11-10Add CPU thread count to log filesMatías Locatti1-0/+2
2022-11-10video_core: Fix dma copy 1D random crashFengChen1-17/+20
2022-11-10kernel/svc_types: refreshLiam19-137/+563
2022-11-09Initial ARM64 supportLiam11-24/+57
2022-11-09Add break statement in default casesEnrico Mancuso1-0/+1
According to the contributing page (https://github.com/yuzu-emu/yuzu/wiki/Contributing) the default cases should have a break statement default: // Yes, even break for the last case break;
2022-11-09Ensure correctness of atomic store orderingLiam2-3/+9
2022-11-07video_core: Fix few issues in Tess stageFengChen18-6/+63
2022-11-07service_thread: fix deletionLiam4-39/+33
2022-11-07yuzu: Change QtKeyToSwitchKey switch case to arraygerman771-217/+120
2022-11-06video_core:Fix vmm kinds size errorFengChen1-1/+1
2022-11-05core: hle: kernel: Address review comments.Liam2-2/+2
2022-11-05video_core: Fix scaling graphical regressions for multiple gamesFengChen1-4/+4
2022-11-05UI: split up strings relating to content removalKyle Kienapfel2-20/+33
Requested by Italian translator (Fs00 in Discord) "Remove Installed Game %1?" "Error Removing %1" I didn't press for translated strings, so have a taste direct from deepl Rimuovere il contenuto del gioco installato? Rimuovere l'aggiornamento del gioco installato? Rimuovere il DLC del gioco installato?
2022-11-04service_thread: register service threads to the logical owner processLiam5-20/+39
2022-11-04kernel: avoid racy behavior in global suspensionLiam1-5/+17
2022-11-04Qt: enable recent Linux features on more UnicesJan Beich3-17/+17
- Prevent sleep via xdg-desktop-portal after fa7abafa5f2a - Pause on suspend after b7642cff3611 - Exit on SIGINT/SIGTERM after 9479940a1fc7 - Improve dark themes after b51db125676f
2022-11-04network: add missing header for SO_* on Unix after f80c7c4cd5c0Jan Beich1-0/+4
src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::Initialize(Network::Domain, Network::Type, Network::Protocol)': src/core/internal_network/socket_proxy.cpp:51:20: error: 'SO_TYPE' was not declared in this scope 51 | SetSockOpt(fd, SO_TYPE, type); | ^~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetLinger(bool, u32)': src/core/internal_network/socket_proxy.cpp:253:27: error: 'SO_LINGER' was not declared in this scope 253 | return SetSockOpt(fd, SO_LINGER, values); | ^~~~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetReuseAddr(bool)': src/core/internal_network/socket_proxy.cpp:257:32: error: 'SO_REUSEADDR' was not declared in this scope 257 | return SetSockOpt<u32>(fd, SO_REUSEADDR, enable ? 1 : 0); | ^~~~~~~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetBroadcast(bool)': src/core/internal_network/socket_proxy.cpp:262:32: error: 'SO_BROADCAST' was not declared in this scope 262 | return SetSockOpt<u32>(fd, SO_BROADCAST, enable ? 1 : 0); | ^~~~~~~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetSndBuf(u32)': src/core/internal_network/socket_proxy.cpp:266:27: error: 'SO_SNDBUF' was not declared in this scope 266 | return SetSockOpt(fd, SO_SNDBUF, value); | ^~~~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetRcvBuf(u32)': src/core/internal_network/socket_proxy.cpp:274:27: error: 'SO_RCVBUF' was not declared in this scope 274 | return SetSockOpt(fd, SO_RCVBUF, value); | ^~~~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetSndTimeo(u32)': src/core/internal_network/socket_proxy.cpp:279:27: error: 'SO_SNDTIMEO' was not declared in this scope 279 | return SetSockOpt(fd, SO_SNDTIMEO, static_cast<int>(value)); | ^~~~~~~~~~~ src/core/internal_network/socket_proxy.cpp: In member function 'virtual Network::Errno Network::ProxySocket::SetRcvTimeo(u32)': src/core/internal_network/socket_proxy.cpp:284:27: error: 'SO_RCVTIMEO' was not declared in this scope 284 | return SetSockOpt(fd, SO_RCVTIMEO, static_cast<int>(value)); | ^~~~~~~~~~~
2022-11-04Update shader cache version. (#9175)gidoly1-1/+1
2022-11-04video_core: Fix SNORM texture buffer emulating error (#9001)Feng Chen23-52/+224
2022-11-04UI: Add options to hide extra columns (#9093)Piplup5-1/+31
UI change that allows the user to hide the size and or file types columns
2022-11-04core: hle: kernel: k_page_table: Remove unnecessary casts.bunnei1-17/+8
2022-11-04core: hle: kernel: k_page_table: Manually open/close pages for IPC methods.bunnei1-0/+18
2022-11-04core: hle: kernel: k_page_table: Implement IPC memory methods.bunnei3-3/+910
2022-11-04core: hle: kernel: k_memory_manager: Refresh.bunnei4-369/+460
2022-11-04core: hle: kernel: Integrate system KSystemResource.bunnei7-69/+209
2022-11-04core: hle: kernel: k_dynamic_page_manager: Refresh.bunnei1-17/+50
2022-11-04core: hle: kernel: Add KSystemResource.bunnei5-1/+173
2022-11-04core: hle: kernel: k_handle_table: Refresh.bunnei2-54/+87
2022-11-04core: hle: kernel: k_memory_layout: Refresh.bunnei3-12/+23
2022-11-04core: hle: kernel: k_memory_region_type: Refresh.bunnei1-49/+74
2022-11-04core: hle: kernel: slab_helpers: Add KAutoObjectWithSlabHeap.bunnei1-0/+78
2022-11-04core: hle: kernel: k_dynamic_resource_manager: Add KBlockInfoManager, KBlockInfoSlabHeap.bunnei1-0/+3
2022-11-04core: hle: kernel: k_page_bitmap: Refresh.bunnei1-88/+155
2022-11-04core: hle: kernel: k_memory_block: Refresh.bunnei2-48/+66
2022-11-04core: hle: kernel: k_page_heap: Refresh.bunnei2-17/+108
2022-11-04core: hle: kernel: k_page_group: Add KPageBufferSlabHeap.bunnei1-0/+86
2022-11-04core: hle: kernel: k_system_control: Add SecureAppletMemorySize.bunnei1-0/+4
2022-11-04core: hle: kernel: k_page_buffer: Add KPageBufferSlabHeap.bunnei1-3/+11
2022-11-04core: hle: kernel: Add KPageTableManager.bunnei2-0/+56
2022-11-04core: hle: kernel: Add KPageTableSlabHeap.bunnei2-0/+94
2022-11-04core: hle: kernel: Add KEventInfo.bunnei4-1/+102
2022-11-04core: hle: kernel: Add KDebug.bunnei2-0/+21
2022-11-04core: hle: result: Fix code for compilers.bunnei1-6/+7
2022-11-03core: hle: service: acc: Fix ListOpenContextStoredUsers/StoreOpenContext.bunnei5-23/+42
- These APIs are used to capture the opened users and allow that state to be persisted across processes. - They are not intended to just return the system opened users, that is what ListOpenUsers is for. - Fixes the launch hang with Bayonetta 3.
2022-11-02remove unnecessary sepator in file menu (main.ui)Ludovic1-1/+0
2022-10-31sm:: avoid excessive port recreationLiam3-18/+24
2022-10-31kernel: fix single core for service threadsLiam1-1/+2
2022-10-31kernel: fix port trackingLiam5-49/+4
2022-10-31k_server_session: add SendReplyHLELiam3-5/+6
2022-10-31service_thread: convert to map for session managementLiam1-23/+21
2022-10-31kernel: invert session request handling flowLiam22-279/+421
2022-10-31video_core: Fix drawing trigger mechanism regressionFengChen1-32/+25
2022-10-31kernel: more complete fix for KPort reference countingLiam2-13/+27
2022-10-30k_thread: fix single coreLiam1-2/+4
2022-10-30Vulkan: Fix regression caused by limiting render area to width/height of rendef targets.Fernando Sahmkow1-6/+6
2022-10-30vk_blit_screen: recreate swapchain images on guest format changeLiam2-1/+10
2022-10-30kernel: reinitialize after dram layout changeLiam1-1/+8
2022-10-30service: am: Stub SetRecordVolumeMutedgerman772-1/+13
Used by bayonetta 3
2022-10-30k_server_session: fix crashesLiam2-2/+1
2022-10-28vk_scheduler: Remove recorded_countsRobin Kertels1-3/+1
2022-10-27arm_interface: curb infinite recursion in stacktrace generationLiam2-2/+2
2022-10-27nvnflinger: release queued handles immediately on disconnectionLiam4-6/+17
2022-10-27vi: implement CloseDisplayLiam4-4/+28
2022-10-27video_core: Fix drawing trigger mechanism regressionFengChen2-61/+70
2022-10-26audio_in/out_system: Pass Initialize members by value where applicableLioncash6-8/+8
applet_resource_user_id isn't actually modified and is just assigned to a member variable, so this doesn't need to be a mutable reference. Similarly, the device name itself isn't modified and is only moved. We pass by value here, since we can still perform the move, but eliminate a sneaky set of calls that can unintentionally destroy the original string. Given how nested the calls are, it's good to get rid of this potential vector for a use-after-move bug.
2022-10-26concepts: Use the std::contiguous_iterator conceptMorph3-20/+10
This also covers std::span, which does not have a const iterator. Also renames IsSTLContainer to IsContiguousContainer to explicitly convey its semantics.
2022-10-25tests: fix for -WallAlexandre Bouvier1-1/+1
Fix #9123
2022-10-25video_core: Catch vulkan clear op not all channel need clearFengChen1-8/+13
2022-10-25Revert "shader_recompiler/dead_code_elimination: Add DeadBranchElimination pass"Feng Chen3-98/+9
2022-10-25kernel: refactor dummy thread wakeupsLiam5-26/+76
2022-10-24file_sys: Priority display of game titles in the current languageFengChen2-12/+37
2022-10-24nvdrv: fix container destruction orderLiam2-4/+4
2022-10-23core: barrier service thread shutdownLiam6-7/+26
2022-10-22core: hid: Add handheld to nfc devicesgerman771-0/+1
2022-10-22CMakeLists: Disable -Wbraced-scalar-init on ClangMorph1-0/+1
Clang erroneously emits this warning when using designated initializers.
2022-10-22yuzu: Resolve -Wpessimizing-moveMorph1-1/+1
2022-10-22startup_checks: Resolve -Wstringop-truncationMorph1-1/+2
Copies up to sizeof(p_name) - 1 in strncpy and null terminates it at p_name[254]
2022-10-22startup_checks: Resolve -WformatMorph1-7/+7
2022-10-22general: Resolve -Wunused-but-set-variableMorph1-2/+2
2022-10-22general: Resolve -Wunused-lambda-capture and C5233Morph4-29/+24
2022-10-22general: Resolve -Wclass-memaccessMorph3-3/+3
2022-10-22ipc_helpers: Ignore GCC compiler warnings only on GCCMorph1-2/+2
Clang and ICC for whatever reason also defines __GNUC__. Exclude them from this check.
2022-10-22CMakeLists: Enforce C5233 on MSVCMorph1-0/+1
This is similar to Clang's -Wunused-lambda-capture
2022-10-22CMakeLists: Disable C4100 and C4324Morph4-17/+3
Disabling C4100 is similar to -Wno-unused-parameter
2022-10-22CMakeLists: Remove redundant warningsMorph4-12/+0
These warnings are already included in /W3.
2022-10-22decoders: Use 2's complement instead of unary -Morph1-1/+1
Resolves C4146 on MSVC
2022-10-22CMakeLists: Treat MSVC warnings as errorsMorph4-3/+2
2022-10-22general: Enforce C4800 everywhere except in video_coreMorph14-41/+57
2022-10-22CMakeLists: Remove all redundant warningsMorph7-45/+4
These are already explicitly or implicitly set in src/CMakeLists.txt
2022-10-22CMakeLists: Consolidate all unused warnings into -WunusedMorph1-3/+3
2022-10-22CMakeLists: Treat -Wall and -Wextra as errorsMorph1-3/+3
2022-10-22video_core: Implement maxwell inline_index methodFengChen6-74/+130
2022-10-22service: nfp: Allow amiibos without keysNarr the Reg3-1/+18
2022-10-22service: nfp: remove unnecessary includeNarr the Reg5-11/+7
2022-10-21video_coare: Reimplementing the maxwell drawing trigger mechanismFengChen10-224/+139
2022-10-21k_session_request: Add missing override specifierLioncash1-1/+1
2022-10-21format_lookup_table: Implement R32_B24G8 with D32_FLOAT_S8_UINTMorph1-0/+2
This format is similar to Z32_FLOAT_X24S8_UINT, which is implemented with D32_FLOAT_S8_UINT. Used in Persona 5 Royal
2022-10-21k_session_request: Turn C-style array into std::arrayLioncash1-1/+3
Makes for stronger typing and allows tooling bounds checks provided by the standard library for debugging purposes.
2022-10-21k_session_request: Simplify constructor initializationLioncash1-14/+11
2022-10-21input_common: cache vibration testsgerman7710-57/+93
2022-10-21hid/npad: Fix copy size in GetSupportedNpadIdTypesLioncash1-2/+3
Previously this was passing the size of the vector into memcpy rather than the size in bytes to copy, which would result in a partial read. Thankfully, this function isn't used yet, so this gets rid of a bug before it's able to do anything.
2022-10-20Controller Applet had instance of Undocked, make HandheldKyle Kienapfel1-1/+1
Remember that time we renamed the Undocked option to Handheld in the status bar, and then later remembered the Controller Configuration? Scrolling through Transifex I noticed that we still have one instance of "Undocked" in the text.
2022-10-20video_core: don't build ASTC decoder shader unless requestedLiam4-14/+19
2022-10-19kernel: remove most SessionRequestManager handling from KServerSessionLiam6-138/+119
2022-10-19kernel: add KSessionRequestLiam13-62/+489
2022-10-19core: hle: kernel: Migrate ProcessState to enum class.bunnei2-17/+17
2022-10-19UI: Add option to hide the compatibility listKyle Kienapfel5-0/+17
Option is added directly below the option for the addons column Defaulting to hide compatibility list. Changing default works properly. Co-authored-by: Piplup <piplup55@users.noreply.github.com>
2022-10-19Update audio_core for firmware 15.0.0Kelebek15-33/+114
2022-10-19Maxwell3D/Puller: Fix regressions and syncing issues.Fernando Sahmkow2-13/+9
2022-10-19core: Initialize: Add missing braces.bunnei1-2/+4
2022-10-19core: core_timing: Re-initialize if single/multicore state changes.bunnei3-14/+36
2022-10-19core: core_timing: Remove unused IsHostTiming.bunnei1-5/+0
2022-10-19core: hle: kernel: Use result macros for new/changed code.bunnei9-128/+110
2022-10-19core: Partially persist emulation state across game boots.bunnei8-58/+65
2022-10-19core: hle: kernel: Fix InitializePreemption order.bunnei1-1/+1
2022-10-19core: hle: kernel: k_process: Improve management of page table & cleanup.bunnei7-60/+92
2022-10-19core: hle: kernel: k_interrupt_manager: HandleInterrupt should not depend on current process.bunnei1-12/+9
2022-10-19core: hle: kernel: Remove junk.bunnei1-9/+0
2022-10-19core: hle: kernel: k_page_table: Impl. LockForUn/MapDeviceAddressSpace, cleanup.bunnei3-545/+624
2022-10-19video_core: renderer_vulkan: vk_query_cache: Avoid shutdown crash in QueryPool::Reserve.bunnei1-3/+4
2022-10-19core: hle: kernel: Integration application memory block slab manager.bunnei3-3/+44
2022-10-19core: hle: kernel: k_page_table: Update, and integrate with new KMemoryBlockManager/SlabManager.bunnei2-251/+393
2022-10-19core: hle: kernel: k_memory_block: Update.bunnei2-119/+391
2022-10-19core: hle: kernel: k_memory_block_manager: Update.bunnei2-174/+380
2022-10-19core: hle: kernel: k_thread: Implement thread termination DPC.bunnei5-1/+99
2022-10-19core: hle: kernel: Add KDynamicResourceManager.bunnei2-0/+59
2022-10-19core: hle: kernel: Add KDynamicSlabHeap.bunnei2-0/+123
2022-10-19core: hle: kernel: Add KDynamicPageManager.bunnei2-0/+137
2022-10-19core: hle: kernel: k_process: Change Status -> State.bunnei3-37/+27
2022-10-19core: hle: kernel: svc_types: Add SystemThreadPriorityHighest and ProcessState.bunnei1-0/+13
2022-10-19core: device_memory: Templatize GetPointer(..).bunnei9-19/+21
2022-10-19core: hle: result: Add GetInnerValue and Includes methods.bunnei1-0/+8
2022-10-19core: hle: kernel: svc_common: Add WaitInfinite & cleanup.bunnei1-2/+5
2022-10-18fixed_point: Mark default constructor as constexprLioncash1-2/+2
Ensures that a fixed-point value is always initialized This likely also fixes several cases of uninitialized values being operated on, since we have multiple areas in the codebase where the default constructor is being used like: Common::FixedPoint<50, 14> current_sample{}; and is then followed up with an arithmetic operation like += or something else, which operates directly on FixedPoint's internal data member, which would previously be uninitialized.
2022-10-18fixed_point: Mark copy/move assignment operators and constructors as constexprLioncash1-3/+6
Given these are just moving a raw value around, these can sensibly be made constexpr to make the interface more useful.
2022-10-18fixed_point: Mark std::swap and move constructor as noexceptLioncash1-2/+2
These shouldn't throw and can influence how some standard algorithms will work.
2022-10-18fixed_point: Mark relevant member function [[nodiscard]]Lioncash1-14/+14
Marks member functions as discard, where ignoring the return value would be indicative of a bug or dead code.
2022-10-18fixed_point: Make to_uint() non-constLioncash1-2/+2
This calls round_up(), which is a non-const member function, so if a fixed-point instantiation ever calls to_uint(), it'll result in a compiler error. This allows the member function to work. While we're at it, we can actually mark to_long_floor() as const, since it's not modifying any member state.
2022-10-18fixed_point: Use defaulted comparisonsLioncash1-23/+1
Collapses all of the comparison functions down to a single line.
2022-10-18fixed_point: Use variable templates and concepts where applicableLioncash2-72/+56
Makes a few things a little less noisy and removes the need for SFINAE in quite a few functions.
2022-10-17kernel: fix slab heap ABALiam1-10/+17
2022-10-17video_core: implement 1D copies based on VMM 'kind'FengChen2-56/+73
2022-10-17video_core: Implement memory manager page kindFengChen5-17/+342
2022-10-17fixed_point: Replace CONSTEXPR14 with constexprMorph1-50/+42
As we require the latest C++ standards to compile yuzu, checking for C++14 constexpr is not needed.
2022-10-17general: Add missing pragma onceMorph2-4/+3
2022-10-17savedata_factory: Detect future save data pathsMorph3-13/+59
Enable compatibility for new account/device save paths planned on a future implementation.
2022-10-17Address feedbackFengChen1-6/+6
2022-10-17sdl2_sink: Inline variable init into if conditionlat9nq1-2/+1
Co-authored-by: Mai <mathew1800@gmail.com>
2022-10-16sdl2_sink: Distinguish between capture and non-capture device nameslat9nq1-1/+1
The function prototype appears to care whether we are loading capture devices or not, and SDL_GetAudioDeviceName has a parameter to use it, but for some reason it isn't. This puts `capture` where it goes.
2022-10-16sdl2_sink: Check for null string when loading SDL audio deviceslat9nq1-1/+4
Attempting to place a null string into a vector of strings causes an error that closes the application. Don't.
2022-10-16video_core: Fix spelling of "synchronize"Morph2-5/+5
2022-10-16general: Fix spelling of "unknown"Morph3-13/+13
2022-10-15fix a tiny spelling mistakeKyle Kienapfel1-1/+1
Kreato pointed this out over on discord.
2022-10-14audio_core: Revert sink name to sdl2Narr the Reg1-2/+2
2022-10-14CMake: Try add library "LZ4::lz4_shared" if "lz4::lz4" is unavailableKyle Kienapfel1-1/+5
Right now this looks like a distro specific problem, but we'll have to see. Over on Gentoo: with lz4 1.9.3 there is a lz4::lz4 library target, with 1.9.4 it's no longer mentioned in the cmake files provided by the package. (/usr/lib64/cmake/lz4) arch and openSUSE have lz4 1.9.4 available so I checked there, they only have .pc files for pkg-config, so asking for "lz4::lz4" works as usual MSVC does require "lz4::lz4" to be asked for
2022-10-13renderer_(opengl/vulkan): Fix tessellation clockwise parameterMorph3-6/+6
This should be assigned CW only on Triangles_CW rather than not Triangles_CCW, making CCW the default winding order rather than CW.
2022-10-13settings: Update aspect_ratio rangeMorph1-1/+1
Since 16:10 was added, the maximum value is now 4.
2022-10-13result: enforce reference check specializationLiam1-4/+3
2022-10-13kernel: remove KWritableEventLiam37-232/+151
2022-10-12k_server_session: preliminary support for userspace server sessionsLiam9-49/+346
2022-10-12Add implementation of svcCreateSessionLiam2-1/+103
2022-10-12general: preliminary support for hblLiam6-6/+124
2022-10-11syncpoint_manager: ensure handle is removable before removingLiam1-1/+11
2022-10-10Fix stencil func registers, make clip control equivalent to how it was before, but surely wrong.Kelebek18-44/+51
2022-10-10yuzu: Add 16:10 aspect ratioNarr the Reg3-0/+8
2022-10-09input_common: have an unique vector in callback statusgerman773-6/+19
2022-10-09Choose the SDL audio backend when Cubeb reports too high of a latencyKelebek17-32/+95
2022-10-09core_timing: use high-precision sleeps on non-Windows targetsLiam1-0/+4
2022-10-08kernel: add expanded result macrosLiam1-6/+114
2022-10-08fsp_srv: stub GetCacheStorageSizeLiam2-1/+14
2022-10-08IFriendService: stub CheckFriendListAvailabilityLiam1-1/+12
2022-10-07video_core: don't block rendering on screenshotsLiam1-1/+7
2022-10-07configure_graphics: Fix graphics API selection when a game is runningMorph1-3/+4
The graphics API setting should not be changed when a game is running.
2022-10-07Update 3D regsKelebek129-2043/+3974
2022-10-07nfp_types: silence -Wtype-limitsLiam1-1/+1
2022-10-07Revert "vulkan: automatically use larger staging buffer sizes when possible"liamwhite2-60/+27
2022-10-06vulkan_blitter: Fix pool allocation double free.Byte3-25/+10
2022-10-06maxwell_dma: remove warnings from implemented functionalityLiam1-2/+0
2022-10-06General: address feedbackFernando Sahmkow30-165/+167
2022-10-06state_tracker: workaround channel setup for homebrewLiam5-4/+9
2022-10-06general: rework usages of UNREACHABLE macroLiam3-27/+28
2022-10-06nvdisp: End system frame after requesting to swap buffersMorph1-1/+1
Fixes frametime reporting
2022-10-06address_space: Rename va_start to virt_startMorph2-5/+5
Avoids conflicting with the va_start macro
2022-10-06address_space: Address feedbackMorph3-195/+237
2022-10-06general: Format licenses as per SPDX guidelinesMorph38-121/+93
2022-10-06NvHostChannels: improve hack for supporting multiple channels.Fernando Sahmkow2-2/+11
2022-10-06Address Feedback from bylaws.Fernando Sahmkow3-7/+3
2022-10-06Nvflinger: correct duplication.Fernando Sahmkow4-5/+5
2022-10-06Core: Fix get nvmap object random crashVonChenPlus12-35/+66
2022-10-06General: Fix clang format.Fernando Sahmkow7-18/+14
2022-10-06Common: Fix variable shadowing.Fernando Sahmkow1-5/+5
2022-10-06Vulkan Swapchain: Overall improvements.Fernando Sahmkow3-6/+17
2022-10-06NvDec: Fix regressions.Fernando Sahmkow6-5/+31
2022-10-06Vulkan Texture Cache: Limit render area to the max width/height of the targets.Fernando Sahmkow4-9/+29
2022-10-06ImageBase: Basic fixes.Fernando Sahmkow1-8/+5
2022-10-06General: Fix compilation for GCCLiam White16-42/+56
2022-10-06VideoCore: Implement formats needed for N64 emulation.Fernando Sahmkow6-10/+10
2022-10-06Buffer Cache: Deduce vertex array limit from memory layout when limit is the highest possible.Fernando Sahmkow3-4/+12
2022-10-06VideoCore: Add option to dump the macros.Fernando Sahmkow1-0/+1
2022-10-06NVDRV: Further improvements.Fernando Sahmkow16-159/+278
2022-10-06Buffer Cache: Basic fixes.Fernando Sahmkow1-15/+22
2022-10-06Decoders: Improve overall speed.Fernando Sahmkow1-4/+11
2022-10-06DMA & InlineToMemory Engines Rework.bunnei21-242/+323
2022-10-06Maxwell3D: Add small_index_2Fernando Sahmkow1-0/+2
2022-10-06Memory Manager: ensure safety of GPU to CPU address.Fernando Sahmkow1-0/+3
2022-10-06MemoryManager: Fix errors popping out.Fernando Sahmkow3-4/+18
2022-10-06Shader Decompiler: implement better tracking for Vulkan samplers.Fernando Sahmkow1-9/+59
2022-10-06Shader Decompiler: Check for shift when deriving composite samplers.Fernando Sahmkow6-11/+46
2022-10-06Shader Decompiler: Fix dangerous behavior of invalid iterator insertion.Fernando Sahmkow1-3/+3
2022-10-06MemoryManager: Finish up the initial implementation.Fernando Sahmkow2-50/+138
2022-10-06OpenGL: Fix TickWorkFernando Sahmkow1-0/+4
2022-10-06VideoCore: Refactor fencing system.Fernando Sahmkow20-167/+154
2022-10-06MemoryManager: initial multi paging system implementation.Fernando Sahmkow6-209/+343
2022-10-06Vulkan: Fix Scissor on ClearsFernando Sahmkow1-1/+8
2022-10-06NVDRV: Further refactors and eliminate old code.Fernando Sahmkow18-242/+12
2022-10-06NVDRV: Refactor Host1xFernando Sahmkow33-173/+201
2022-10-06VideoCore: Refactor syncing.Fernando Sahmkow44-252/+648
2022-10-06Texture Cache: Fix GC and GPU Modified on Joins.Fernando Sahmkow1-3/+5
2022-10-06Texture cache: Fix the remaining issues with memory mnagement and unmapping.Fernando Sahmkow12-16/+63
2022-10-06Texture cache: Fix dangling references on multichannel.Fernando Sahmkow3-27/+36
2022-10-06Refactor VideoCore to use AS sepparate from Channel.Fernando Sahmkow10-152/+171
2022-10-06General: Rebase fixes.Fernando Sahmkow1-7/+6
2022-10-06VideoCore: Extra Fixes.Fernando Sahmkow3-3/+5
2022-10-06NVDRV: Remake ASGPUFernando Sahmkow8-239/+882
2022-10-06NVDRV: Update copyright notices.Fernando Sahmkow4-7/+13
2022-10-06MemoryManager: Temporary Fix for NVDEC.Fernando Sahmkow1-1/+1
2022-10-06NvHostCtrl: Fix merge of nvflinger.Fernando Sahmkow1-1/+2
2022-10-06VideoCore: Update MemoryManagerFernando Sahmkow4-167/+86
2022-10-06Common: implement MultiLevelPageTable.Fernando Sahmkow4-0/+171
2022-10-06VideoCore: Fix channels with disk pipeline/shader cache.Fernando Sahmkow11-71/+87
2022-10-06OpenGl: Implement Channels.Fernando Sahmkow9-118/+186
2022-10-06NVHOST_CTRl: Implement missing method and fix some stuffs.Fernando Sahmkow4-6/+35
2022-10-06VideoCore: implement channels on gpu caches.Fernando Sahmkow50-809/+1461
2022-10-06NVASGPU: Fix Remap.Fernando Sahmkow1-0/+8
2022-10-06NVDRV: Fix clearing when destroying.Fernando Sahmkow3-14/+9
2022-10-06NVMAP: Fix the Free return parameters.Fernando Sahmkow3-15/+18
2022-10-06NVDRV: Fix Open/Close and make sure each device is correctly created.Fernando Sahmkow14-199/+291
2022-10-06NVDRV: Implement new NvMapFernando Sahmkow18-277/+307
2022-10-06NVDRV: Refactor and add new NvMap.Fernando Sahmkow20-45/+558
2022-10-06NVDRV: Cleanup.Fernando Sahmkow4-32/+40
2022-10-06NVDRV: Implement QueryEvent.Fernando Sahmkow10-40/+133
2022-10-06NvHost: Remake Ctrl Implementation.Fernando Sahmkow7-170/+312
2022-10-06NvHost: Try a different approach to blocking.Fernando Sahmkow2-10/+7
2022-10-06NvHost: Fix some regressions and correct signaling on timeout.Fernando Sahmkow1-25/+19
2022-10-06Texture Cache: Add ASTC 10x5 Format.Fernando Sahmkow6-0/+23
2022-10-05Show error from cpp-httplib when we don't have a response to read (report errors while connecting to API) (#8999)Kyle Kienapfel1-1/+2
Co-authored-by: Kyle Kienapfel <Docteh@users.noreply.github.com>
2022-10-04vk_scheduler: wait for command processing to completeLiam1-2/+4
2022-10-04service: nfp: Fix errors to pass unit testingNarr the Reg6-42/+112
2022-10-04common: remove "yuzu:" prefix from thread namesLiam19-23/+23
2022-10-02shader_recompiler: add extended LDC to GLASM backendLiam1-4/+21
2022-10-02service: mii: Copy only valid name bytesgerman771-3/+18
2022-10-02service: nfp: Implement mount target and open application area errors, minor fixesNarr the Reg5-19/+124
2022-10-02nfp: Multiple fixes against HWgerman779-62/+163
2022-10-02service: nfp: address commentsgerman779-26/+29
2022-10-02service: nfp: Rewrite and implement applet callsgerman7713-1263/+1542
2022-10-02core: hid: Add nfc support to emulated controllergerman774-3/+123
2022-10-02yuzu: Use virtual amiibo driver instead of nfp servicegerman771-25/+26
2022-10-02input_common: Enable virtual amiibo drivergerman774-0/+102
2022-10-02input_common: Create virtual amiibo drivergerman776-0/+244
2022-10-02MacroHLE: Add MultidrawIndirect HLE Macro.Fernando Sahmkow1-1/+62
2022-10-02macro_jit_x64: fix miscompilation of bit extraction operationsLiam1-37/+9
2022-10-02Qt: work around Qt5's font choice for ChineseKyle Kienapfel1-0/+16
On Windows there are currently two fonts used. The first, does the Menu, QTreeView and Tooltips Second is Everything else which is a default font. From inspecting QApplication::font() at runtime Windows 10 English: QFont(MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0) Windows 11 Japanese: MS UI Gothic,9 ,-1,5,50,0,0,0,0,0 Windows 11 Traditional Chinese: PMingLiU,9 ,-1,5,50,0,0,0,0,0 Windows 11 Simplified Chinese: SimSun,9 ,-1,5,50,0,0,0,0,0 Windows 11 Korean: Gulim,9 ,-1,5,50,0,0,0,0,0 I initially investigated dynamically changing the font when the UI language is English, but this was getting quite messy Qt6 makes changes to default font in some situations, so this PR is being narrowed in scope to only effect Chinese font choices. This change only effects rendering of Latin/Cyrillic characters.
2022-10-01Fix "controller.colors_state.right" being "left"Zwip-Zwap Zapony1-1/+1
2022-10-01macro_jit_x64: cancel exit for taken branchLiam1-11/+5
2022-09-26service: vi: Retrieve vsync event once per displayMorph5-14/+42
The display vsync event can only be retrieved once per display. Returns VI::ResultPermissionDenied if we attempt to retrieve the vsync event for the same display. Prevents games such as .hack//G.U. Last Recode from consuming all the handles in the handle table by spamming vsync event retrievals and allows it to go in game.
2022-09-26service: vi: Move VI results into its own fileMorph2-16/+25
2022-09-25core/loader: Return nullptr if file is nullptrMerry1-0/+4
2022-09-25vulkan: automatically use larger staging buffer sizes when possibleLiam2-27/+60
2022-09-25service: hid: Partially implement palma controllerNarr the Reg7-33/+842
2022-09-23yuzu: sort input profiles by nameNarr the Reg1-0/+2
2022-09-23chore: fix some typosAndrea Pappacoda5-6/+6
Fix some typos reported by Lintian
2022-09-22build(room): simplify yuzu-room installationAndrea Pappacoda1-1/+1
CMake is able to automatically install binaries in the correct location. Also see my older patch, https://github.com/yuzu-emu/yuzu/commit/af94bf4a594b6a3599fae1d78e5d283b9f602032 Cc: @FearlessTobi
2022-09-22sockets: Make fd member variable protectedLioncash2-6/+17
Other things shouldn't be able to directly mess around with the descriptor
2022-09-22Do not try to pause core timing from the audio thread when using single-coreKelebek11-2/+7
2022-09-21yuzu: Silence some clang warningsNarr the Reg4-8/+8
2022-09-21audio_renderer: Make GetCommandBuffer() take a u32Lioncash2-2/+2
This function is only ever called with unsigned types, and all of the other interface functions take session_id as a u32, so this makes the class a little more consistent.
2022-09-21audio_manager: Forward declare result typeLioncash2-1/+3
Moves the include into the cpp file to lessen header dependencies.
2022-09-21audio_manager: Remove redundant cast in ThreadFunc()Lioncash1-3/+5
We can just use a local here to get rid of a second cast.
2022-09-21audio_manager: move std::functions in SetOutManager/SetInManagerLioncash1-2/+2
Prevents unnecessary reallocations in the event the captured variables are larger than the internal std::function buffer.
2022-09-21audio_manager: Remove unused forward declarationsLioncash2-10/+0
Allows us to get rid of some unnecessary forward declarations and includes.
2022-09-21audio_manager: Remove unused sessions_started member variableLioncash1-2/+0
This isn't used, so it can be removed.
2022-09-21audio_manager: Remove dependence on system stateLioncash3-10/+4
This isn't used by the class, so this can be removed for the time being.
2022-09-20Address some review commentsFearlessTobi7-52/+38
2022-09-20video_core: Fix legacy to generic location unpairedFengChen5-15/+31
2022-09-20video_core: Generate mipmap texture by drawingFengChen29-8/+259
2022-09-19yuzu qt: Add option to disable startup Vulkan checklat9nq7-45/+66
The startup check apparently confuses other programs when yuzu launches 2 processes and then quickly closes one of them. Though this isn't really our issues it's also not a big deal for me to add an option to work around that issue.
2022-09-18cmake: fix git detectionAlexandre Bouvier1-27/+2
2022-09-16core: implement HwOpus GetWorkBufferSizeForMultiStreamExFengChen2-1/+38
2022-09-16astc: Enable parallel CPU astc decodingMorph1-21/+35
Given the issues with GPU accelerated ASTC decoding with NVIDIA's latest drivers, parallelize astc decoding on the CPU. Uses half the available threads in the system for astc decoding.
2022-09-16audio_renderer: Pass command buffer by const referenceLioncash4-4/+4
This is just being copied and isn't modified at all.
2022-09-16sink_stream: Mark GetQueueSize as constLioncash1-1/+1
2022-09-16node_states: Mark relevant member functions as constLioncash1-2/+2
2022-09-16i3dl2/reverb: Mark relevant member functions as constLioncash2-4/+4
These two don't modify member state.
2022-09-16behavior_info: Mark CopyErrorInfo as constLioncash4-6/+6
This doesn't modify member state. We can also mark the parameter of AppendError as const as well, since it isn't modified.
2022-09-16audio_device: Mark GetDeviceVolume as constLioncash2-2/+2
This doesn't modify instance state.
2022-09-16audio_render_manager: Mark several functions as constLioncash2-6/+6
2022-09-16audio_in: Mark several functions as constLioncash4-18/+18
These functions don't modify class state, so we can mark them as such
2022-09-16audio_out: Mark several functions as constLioncash4-16/+17
These don't affect class state, so we can mark them as such.
2022-09-16audio_buffers: Pass by const-ref in AppendBuffersLioncash3-13/+17
This function doesn't modify the passed in buffer, so we can make that explicit.
2022-09-16device_session: Convert for loop into ranged for in AppendBuffersLioncash1-5/+5
Simplifies the indexing code a little bit.
2022-09-16device_session: Pass arguments by const-ref in relevant functionsLioncash3-7/+7
These functions don't modify the passed in audio buffers, so we can signify that in the interface.
2022-09-16UI: move icons from default into colorful theme.Kyle Kienapfel1-8/+13
colorful theme has been default theme for awhile. having colorful theme try and grab icons from other theme doesn't work on Linux. Also adding two additional icons, info is to hint to the user that they should hit verify after pasting in a token, sync is to show that the verification is occurring.
2022-09-15audio_core: Amend documentation tagsLioncash28-112/+105
Resolves a wackload of -Wdocumentation warnings due to mismatching tags and whatnot.
2022-09-15audio_device: Mark member functions as const where applicableLioncash3-10/+10
These member functions don't modify any internal state.
2022-09-15audio_device: Make AudioDeviceName constructor constexprLioncash5-17/+30
These are used as read-only arrays, so we can make the data read-only and available at compile-time. Now constructing an AudioDevice no longer needs to initialize some tables
2022-09-15video_core: Modify astc texture decode error fill valueFengChen2-2/+2
2022-09-15UI: Fix link to TAS help pageKyle Kienapfel1-0/+3
Tools -> TAS -> Configure TAS Thanks to Rei on discord for the fix. Basically: openExternalLinks is a checkbox in Qt Creator
2022-09-14common: do not link to xbyak on non-amd64 architecturesliushuyu1-1/+2
2022-09-13compressor: Simplify memset in InitializeCompressorEffectLioncash1-1/+1
Provides equivalent behavior while being significantly smaller.
2022-09-13compressor: Mark params parameters as constLioncash1-3/+3
These functions don't modify the parameters.
2022-09-13compressor: Remove unneeded casts in ApplyCompressorEffectLioncash1-2/+1
Same behavior, but also silences a -Wcast-qual warning, since the second cast casts away const.
2022-09-13Remove pause callbacks from coretimingKelebek115-144/+29
2022-09-12Remove a pragma once from a cpp fileKelebek11-2/+0
2022-09-11input_common: Increase mapping timer from 2.5 seconds to 4 secondsgerman771-1/+1
2022-09-11dedicated_room: fix token padding ...liushuyu1-2/+12
... mebedtls' base64 routine has a strange behavioral issue where if the input is invalid, it will not report it as invalid, but rather returning a bunch of garbage data. This new round-tripping padding method should eliminate such issue.
2022-09-11fix black iconNarr the Reg1-0/+2
2022-09-10yuzu: Multiple room UI improvementsgerman7718-59/+176
2022-09-10Align index buffe size when vertex_buffer_unified_memory enableFengChen1-1/+1
2022-09-09ldn: Initial implementationFearlessTobi15-124/+1132
2022-09-08core/CMakeLists.txt: Remove duplicate files.SachinVin1-6/+0
2022-09-08CMake: explicitly link mbedcrypto for yuzu-roomKyle Kienapfel1-1/+1
Doesn't appear to effect anything regular, but in both Linux and Windows builds it looks like our project has all the libraries available for linking. If this feature is turned off, there is only one thing that quit working, when linking yuzu-room it couldn't find a function called mbedtls_base64_decode mbedtls is split into three libraries for some reason: mbedtls mbedx509 mbedcrypto mbedtls_base64_decode is in mbedcrypto
2022-09-07core: nfp: Remove magic numbersgerman773-105/+103
2022-09-07core: nfp: Workaround for lack of multiple nfp interfacesgerman771-1/+3
2022-09-07core: nfp: Correct date and amiibo nameNarr the Reg4-18/+36
2022-09-07core: nfp: Implement Convert and RecreateApplicationArea, accuracy fixesNarr the Reg10-257/+356
2022-09-07core: nfp: Implement amiibo encryptiongerman777-276/+1227
2022-09-06yuzu: input: fix invert symbol on axis and order options alphabeticallyNarr the Reg1-13/+14
2022-09-06input_common: Add support for analog toggleNarr the Reg4-0/+15
2022-09-05core: hid: Fix GC triggers overwritting ZL and ZR buttonsNarr the Reg1-0/+15
2022-09-05mini_dump: Address review feedbacklat9nq4-63/+71
Uses fmt::print as opposed to std::fprintf. Adds a missing return. static's a single-use function. Initializes structs as opposed to std::memset where possible. Fixes CMake linkage. Co-authored-by: Lioncash <mathew1800@gmail.com> mini_dump: Use a namespace Co-authored-by: Lioncash <mathew1800@gmail.com>
2022-09-05vcpkg,cmake: Use vcpkg for dbghelplat9nq1-1/+1
2022-09-05mini_dump: Check for debugger before spawning a childlat9nq2-63/+37
mini_dump: Clean up mini_dump: Fix MSVC error mini_dump: Silence MSVC warning C4700 Zero initialize deb_ev. mini_dump: Add license info
2022-09-05mini_dump: Cleanup and add commentslat9nq3-43/+87
Removes some unnecessary code. wip
2022-09-05yuzu: Use a debugger to generate minidumpslat9nq18-91/+360
yuzu: Move mini_dump out of core startup_checks: Better exception handling
2022-09-04Don't stall with nvdecKelebek14-2/+35
2022-09-04input_common: sdl: Always check for motion on reconnectNarr the Reg1-4/+7
2022-09-03core: ns: Implement pl:s serviceNarr the Reg6-26/+27
2022-09-03Qt: Make General->Debug scrollableKyle Kienapfel3-4/+9
Configuration -> General -> Debug is getting a bit crowded. yzct12345 submit this originally, so I'm tagging them as a co-author. The original #6714 also modifies the Controls -> Player N sections, but it looks like more work is needed to make the current area scrollable. Co-authored-by: yzct12345 <87620833+yzct12345@users.noreply.github.com>
2022-09-02Rework audio output, connecting AudioOut into coretiming to fix desync during heavy loads.Kelebek123-842/+551
2022-09-02Address review commentsFearlessTobi11-27/+26
2022-09-01Demote services from warning/info to debug to reduce log spam:Kelebek15-16/+16
GetCurrentFocusState SetClockSpeed EnableSixAxisSensorUnalteredPassthrough IsSixAxisSensorUnalteredPassthroughEnabled Get, GetOld SetAndWait, SetAndWaitOld IocParam IocFree
2022-09-01Silence std::aligned_storage warnings as it's deprecated in C++23,Kelebek11-1/+1
replace it with alignas() and a C array
2022-08-31style: General style changes to match with the rest of the codebaseMorph2-10/+7
2022-08-31(shader/pipeline)_cache: Raise shader/pipeline cache versionMorph2-2/+2
Since the following commit: https://github.com/yuzu-emu/yuzu/commit/a83a5d2e4c8932df864dd4cea2b04d87a12c8760 , many games will refuse to boot unless the shader/pipeline cache has been invalidated.
2022-08-27core/ldn_types: Minor corrections and additionsFearlessTobi1-1/+16
2022-08-27yuzu/chat_room: Make font size biggerFearlessTobi1-0/+4
2022-08-27dedicated_room: Correctly handle token decodingFearlessTobi1-0/+12
Correctly handle token decoding when '=' has been trimmed by the backend server. Co-Authored-By: liushuyu <liushuyu011@gmail.com>
2022-08-27yuzu/multiplayer: Warn when game is running or no network interface is selectedFearlessTobi11-19/+81
2022-08-27core/socket_proxy: Correct broadcast behaviorFearlessTobi1-1/+7
Broadcasts should only be sent when the broadcast IP is used. They should also only be received when SO_BROADCAST is enabled.
2022-08-27yuzu: Display current game version in multiplayer roomFearlessTobi6-11/+38
Makes it easier for users to recognize connection errors caused by different game versions.
2022-08-27network: Use lower timeout for enet_host_serviceFearlessTobi2-2/+2
This allows us to have a 10x higher throughput of packets by using a much shorter waiting time.
2022-08-27core/bsd: Correctly unbind methods in destructorFearlessTobi1-1/+5
Prevents yuzu from crashing when the BSD service is created a second time.
2022-08-27core/acc: Make CheckAvailability use LOG_DEBUGFearlessTobi1-1/+1
Previously it was spamming the logs in certain multiplayer games like Puyo Puyo Tetris.
2022-08-27yuzu_room: Remove dependency on coreFearlessTobi11-9/+13
2022-08-25video_core: add option for pessimistic flushingLiam9-1/+32
2022-08-25video_code: support rectangle textureFengChen14-15/+62
2022-08-24Implement AudRenU:RequestUpdateAuto, and use C descriptors when B reports as empty.Kelebek11-6/+21
2022-08-24video_core: vulkan: rasterizer: Workaround on viewport swizzle on AMDNarr the Reg1-1/+8
2022-08-23yuzu: Force camera output to be saved on a buffer (#8805)Narr the Reg2-2/+38
2022-08-23core:filesystem: speed up IDirectory servicevonchenplus1-1/+2
2022-08-22hid: core: Add missing function table namesgerman771-0/+6
2022-08-21core/file_sys: fix alignment of BuildIdLiam2-3/+3
2022-08-20Qt: Retranslate GameList header and Filter lineKyle Kienapfel3-7/+37
Didn't notice this until I was trying to change the default font to Comic Sans MS when language is set to English in yuzu.
2022-08-20video_core: support framebuffer crop rect top not zerovonchenplus2-12/+25
2022-08-20core: implement clkrst servicevonchenplus2-0/+184
2022-08-20code: dodge PAGE_SIZE #defineKyle Kienapfel17-119/+116
Some header files, specifically for OSX and Musl libc define PAGE_SIZE to be a number This is great except in yuzu we're using PAGE_SIZE as a variable Specific example `static constexpr u64 PAGE_SIZE = u64(1) << PAGE_BITS;` PAGE_SIZE PAGE_BITS PAGE_MASK are all similar variables. Simply deleted the underscores, and then added YUZU_ prefix Might be worth noting that there are multiple uses in different classes/namespaces This list may not be exhaustive Core::Memory 12 bits (4096) QueryCacheBase 12 bits ShaderCache 14 bits (16384) TextureCache 20 bits (1048576, or 1MB) Fixes #8779
2022-08-19video_core: implement R16G16B16X16 texture formatLiam1-1/+1
2022-08-19core/file_sys: fix BuildId paddingLiam2-11/+7
2022-08-19yuzu: Allow longer controller profile namesNarr the Reg1-1/+1
2022-08-16common: remove unneeded x86-specific headerliushuyu1-1/+0
2022-08-15core/socket_proxy: Final nitsFearlessTobi1-8/+7
2022-08-15core: network: Address review commentsgerman775-32/+31
2022-08-15yuzu: Fix crash on shutdownFearlessTobi2-6/+4
Previously, accessing the room_network when it was already freed would crash the emulator on shutdown. Co-Authored-By: Narr the Reg <5944268+german77@users.noreply.github.com>
2022-08-15internal_network: Fix mingw compilationFearlessTobi1-4/+5
Apparently, "interface" is a reserved keyword on this compiler.
2022-08-15core, yuzu: Address first part of review commentsFearlessTobi9-71/+70
2022-08-15core/socket_proxy: Fix compilationFearlessTobi1-1/+1
2022-08-15Make copyright headers SPDX-compliantFearlessTobi6-12/+14
2022-08-15core, network: Add ability to proxy socket packetsFearlessTobi28-526/+1028
2022-08-15web_service: Correct jwt issuer stringFearlessTobi1-1/+3
2022-08-15dedicated_room: Initial implementationFearlessTobi4-0/+418
2022-08-12Do some log memes to help perceived volumeKelebek12-2/+5
2022-08-12Allow audio volume up to 200%Kelebek14-9/+7
2022-08-12ips_layer: Delimit parsed hex value stringMorph1-1/+2
Delimits the hex value string on spaces, slashes, carriage returns or newlines, allowing for comments to be added in-line.
2022-08-12review pass on CheckDarkMode functionKyle Kienapfel2-4/+4
2022-08-12core: ldn: Address review comments part 2german772-334/+297
2022-08-09arm_dynarmic: Fix nullptr fastmem arenasMerry2-7/+11
Unable to enable fastmem of exclusive access without a valid fastmem arena.
2022-08-09Qt: tweak ui filesKyle K2-2/+3
make about dialog a bit taller for full message on more systems for direct_connect.ui hedging bets here, there is a text field for port number that possibly shouldn't be translated, marking as such, but also adding a translation note for the event that it makes sense to translate the placeholder text to something other than the default multiplayer direct connect port.
2022-08-09video_core/textures/decoders: Avoid SWIZZLE_TABLEMerry2-15/+48
2022-08-08hid: core: Properly emulate controller color and battery levelNarr the Reg4-25/+97
2022-08-08core: ldn: Address review commentsNarr the Reg4-56/+46
2022-08-08Make vsync setting work for VulkanDJRobX2-3/+4
2022-08-08core/arm: fix build errorLiam2-2/+10
2022-08-07ldn: Add better stubs and more data typesFearlessTobi6-72/+773
Co-Authored-By: Narr the Reg <5944268+german77@users.noreply.github.com> Co-Authored-By: Morph <39850852+Morph1984@users.noreply.github.com>
2022-08-07arm_dynarmic_cp15: Implement CP15DMB/CP15DSB/CP15ISBMerry2-4/+29
2022-08-07yuzu: Fix fmt 9.0.0 issueslat9nq2-3/+4
2022-08-06hid: core: Delay the stop vibration command when testingNarr the Reg1-0/+4
2022-08-05Controller bugfixes in profile select (#8716)Steve3-5/+10
* Controller bugfixes in profile select, closes #8265 2 fixes for using a controller in profile select dialog. Pressing 'B' cancels the launch of the game Using controller to select a profile now correctly sets the index to use for the launch * Added brackets to if statements as requested.
2022-08-05Linux: handle dark system themes nicelyKyle K4-14/+77
yuzu's default theme doesn't specify everything, which is fine for windows, but in linux anything unspecified is set to the users theme. Symptoms of this are that a linux user with a dark theme won't think to change the theme to a dark theme when first using yuzu Idea here is to try and support arbitrary themes on linux. preliminary work on a "default_dark" theme, used only as overlay for any themes that are measured to be dark mode. Other work done: FreeDesktop standard icon names: plus -> list-add delete refresh, we use view-refresh remove duplicated icons for qdarkstyle_midnight_blue referencing icon aliases in the qrc files is the way to go Note: Dynamic style changing doesn't appear to work with AppImage
2022-08-04Qt5 work around for suzhou numeralsKyle Kienapfel1-0/+9
When windows is told to display Standard digits as suzhou, it is showing incorrect information in yuzu, file sizes and the CPU speed limiter are effected by this. See #8698 for some screenshots. Setting number format to Chinese (Simplified, Hong Kong SAR) is one way to see this issue in action. Fixes #8698
2022-08-03renderer_vulkan: add format fallbacks for R16G16B16_SFLOAT, R16G16B16_SSCALED, R8G8B8_SSCALEDLiam5-273/+337
2022-08-02vk_texture_cache: return VK_NULL_HANDLE for views of null imagesLiam1-0/+12
2022-08-02core_timing: Sleep in discrete intervals, yield during spinMorph1-12/+13
2022-08-02Add missing looping event schedule signalKelebek11-5/+9
2022-08-02Make coretiming waiting more accurateKelebek12-11/+31
2022-08-02Rework multi-core vsyncKelebek12-17/+30
2022-08-02common: Use PROJECT_SOURCE_DIR to find CMakeModuleslat9nq1-3/+3
Fixes CMake configuration when yuzu is a submodule of another project.
2022-08-01core/loader: remove ELF loaderLiam5-313/+0
2022-08-01build(externals): rename Findopus to FindOpusAndrea Pappacoda1-1/+1
This better matches upstream's FindOpus.cmake file, and it will make using upstream's FindOpus.cmake file easier.
2022-07-31Properly write out the command buffer when serving close requestNikita Strygin1-2/+5
2022-07-30renderer_opengl: delete shader source after linkingLiam1-0/+1
2022-07-30Translate english pluralsKyle Kienapfel3-6/+14
Turns out that for Qt to properly handle plurals in English a translation needs to be provided, otherwise the user is left with messages such as "Building: 2 shader(s)" Plurals for other all other languages are handled on transifex. I wrote the README.md to just refer to it as a translation collaboration site just in case we ever switch. These translations being out of date won't pose any technical problems so I believe it is fine to handle them manually on a "best effort" basis. The files are generated into the source directory so that the relative filenames are correct. The generated file is added to .gitignore
2022-07-30video_core: stop waiting for shader compilation on user cancelLiam2-2/+2
2022-07-30audio_core: fix -Wuninitialized when compiling with ASanLiam1-4/+4
2022-07-29common: move forwarded value into SPSCQueueLiam1-1/+1
2022-07-29Add missed shader defines. Fixes Xenoblade Chronicles 3 booting with Vulkan.Kelebek11-2/+3
2022-07-28video_core: differentiate between tiled and untiled framebuffer sizes for unaccelerated copiesLiam1-9/+7
2022-07-28Revert Coretiming PRs 8531 and 7454 (#8591)Maide5-118/+69
2022-07-28implement pause on system suspend (#8585)snek2-1/+43
2022-07-28Avoid depop out of boundsKelebek12-2/+2
2022-07-27Merge pull request #8592 from devsnek/sig-handlerssnek2-0/+71
exit gracefully on sigint/sigterm
2022-07-27yuzu: Add incremental steps to volume hotkeysNarr the Reg1-2/+16
2022-07-27chore: make yuzu REUSE compliantAndrea Pappacoda180-487/+390
[REUSE] is a specification that aims at making file copyright information consistent, so that it can be both human and machine readable. It basically requires that all files have a header containing copyright and licensing information. When this isn't possible, like when dealing with binary assets, generated files or embedded third-party dependencies, it is permitted to insert copyright information in the `.reuse/dep5` file. Oh, and it also requires that all the licenses used in the project are present in the `LICENSES` folder, that's why the diff is so huge. This can be done automatically with `reuse download --all`. The `reuse` tool also contains a handy subcommand that analyzes the project and tells whether or not the project is (still) compliant, `reuse lint`. Following REUSE has a few advantages over the current approach: - Copyright information is easy to access for users / downstream - Files like `dist/license.md` do not need to exist anymore, as `.reuse/dep5` is used instead - `reuse lint` makes it easy to ensure that copyright information of files like binary assets / images is always accurate and up to date To add copyright information of files that didn't have it I looked up who committed what and when, for each file. As yuzu contributors do not have to sign a CLA or similar I couldn't assume that copyright ownership was of the "yuzu Emulator Project", so I used the name and/or email of the commit author instead. [REUSE]: https://reuse.software Follow-up to 01cf05bc75b1e47beb08937439f3ed9339e7b254
2022-07-25network: Address review commentsFearlessTobi5-199/+203
2022-07-25network, yuzu: Make copyright headers SPDX-compliantFearlessTobi37-111/+74
2022-07-25network, yuzu: Improve variable naming and style consistencyFearlessTobi14-47/+53
2022-07-25yuzu_cmd: Fix compilationFearlessTobi2-13/+1
2022-07-25network: Move global state into a seperate classFearlessTobi21-96/+150
Co-Authored-By: Narr the Reg <5944268+german77@users.noreply.github.com>
2022-07-25common: multiplayer: Use GameInfo typegerman7711-62/+60
2022-07-25Address second part of review commentsFearlessTobi9-103/+92
2022-07-25Address first part of review commentsFearlessTobi14-133/+231
2022-07-25Fix compilation on linux gccFearlessTobi6-31/+32
2022-07-25web_service: Fix -Wmissing-field-initializersFearlessTobi1-1/+1
2022-07-25core: Fix -Wunused-variableFearlessTobi1-1/+3
2022-07-25common, core: fix -Wmissing-field-initializersFearlessTobi2-5/+5
2022-07-25yuzu: Hide multiplayer button and room statusFearlessTobi2-16/+3
2022-07-25yuzu: Add ui files for multiplayer roomsFearlessTobi67-49/+4499
2022-07-25network: Add initial files and enet dependencyFearlessTobi12-0/+2890
2022-07-25Address commentsNarr the Reg2-17/+18
2022-07-25kernel: unlayer CPU interrupt handlingLiam13-152/+64
2022-07-24fix compiler errorsgerman772-12/+14
2022-07-24service: irs: Implement clustering processorgerman776-7/+320
2022-07-24qt: reset progress bar after shader compilationLiam1-0/+4
2022-07-24qt_software_keyboard: Fix infinite loop when moving between buttonsMorph1-0/+14
There was a bug where, when using the numeric keyboard, moving between buttons resulted in an infinite loop, resulting in a stuck state. This was due to prev_button being the only one enabled in that row or column, causing the condition in the while loop to always be true. To fix this, detect whether we have returned to that initial row/column and break out of the loop.
2022-07-24applet/swkbd: Implement optional symbol keysMorph5-4/+67
These are only used in the numeric keyboard, and correspond to the keys to the left and right of the "0" key on the numeric keyboard.
2022-07-24yuzu: Add webcam support and rebase to latest masterNarr the Reg8-16/+43
2022-07-24service: irs: Move to IRS namespace and minor fixesgerman7719-76/+70
2022-07-24service: irs: Split processors and implement ImageTransferProcessorgerman7718-291/+1091
2022-07-24core: hid: Add cammera supportgerman776-3/+423
2022-07-24yuzu: Hook qt camera to camera drivergerman7713-1/+481
2022-07-24input_common: Add camera drivergerman7711-5/+298
2022-07-23ci,CMake: Drop Conan support for vcpkglat9nq1-2/+3
Between packages breaking, Conan always being a moving target for minimum required CMake support, and now their moves to Conan 2.0 causing existing packages to break, I suppose this was a long time coming. vcpkg isn't without its drawbacks, but at the moment it seems easier on the project to use for external packages. Mostly removes the logic for Conan from the root CMakeLists file, leaving basic find_package()'s in its place. Sets only the find_package()'s that require CONFIG mode as necessary. clang and linux CI now use the vcpkg toolchain file configured in the Docker container when possible. mingw CI turns off YUZU_TESTS because there's no way on the container to run Windows executables on a Linux host anyway, and it's not easy to get Catch2 there.
2022-07-22Project AndioKelebek1269-8436/+33703
2022-07-19video_core: use correct byte size for framebufferLiam1-5/+8
2022-07-19Update configure_input.uiMatías Locatti1-1/+1
2022-07-18implement resume messageGus Caplan4-0/+23
2022-07-17hle: service: nvflinger: Fix implicit conversion.bunnei1-1/+4
2022-07-17yuzu: settings: Remove framerate cap and merge unlocked framerate setting.bunnei10-135/+15
- These were all somewhat redundant.
2022-07-17hle: service: nvflinger: Factor speed limit into frame time calculation.bunnei1-1/+8
- This allows the %-based "Limit Speed Percent" setting to work with MC emulation. - This is already supported for SC emulation.
2022-07-16Enable the use of MSG_DONTWAIT flag on RecvImplLink45651-1/+19
2022-07-16core/arm: skip watchpoint checks when reading instructionsLiam2-6/+6
2022-07-15common/setting: Make ranged a property of the typemerry6-58/+59
- Avoids new GCC 12 warnings when Type is of form std::optional<T> - Makes more sense this way, because ranged is not a property which would change over time
2022-07-15KCodeMemory: Mark virtual methods as overrideMerry1-3/+3
2022-07-15common_funcs: Mark padding as [[maybe_unused]]Merry1-4/+6
2022-07-15nvflinger: Polymorphic destructor requried for abstract class IBinderMerry1-0/+1
2022-07-15dynarmic: Abort watchpoints ASAPMerry4-8/+3
2022-07-15kernel: Ensure all uses of disable_count are balancedLiam3-10/+21
2022-07-15kernel: be more careful about initialization path for HLE threadsLiam2-1/+8
2022-07-15kernel: fix single-core preemption pointsLiam6-40/+28
2022-07-15kernel: fix issues with single core modeLiam9-189/+225
2022-07-15kernel: use KScheduler from mesosphereLiam12-602/+563
2022-07-14service: fatal: Add function tablegerman771-1/+7
2022-07-14service: btdrv,bcat,btm: Update service tables to 14.0.0german773-4/+13
2022-07-14service am: Update service tables to 14.0.0german771-0/+3
2022-07-14service: ac: Replace intances of ProfileData with UserDatagerman773-24/+22
2022-07-12startup_checks: Use WaitForSingleObject and more cleanuplat9nq1-6/+9
2022-07-11core: hid: Add fallback for dualjoycon and pro controllersgerman772-1/+35
2022-07-11startup_checks: Use GetEnvironmentVariableAlat9nq1-4/+3
Solves MSVC compile error. Also drops need string use for comparison.
2022-07-10startup_checks: Clean uplat9nq1-9/+6
Adds some comments, removes unused includes, and removes last bits of logging since this is before the logging backend starts up.
2022-07-10startup_checks: Implement unix side codelat9nq2-17/+48
Wow fork() is nice, isn't it?
2022-07-10yuzu: Simplify broken Vulkan handlinglat9nq9-115/+65
2022-07-10yuzu: Check Vulkan on startup with a childlat9nq3-1/+78
2022-07-10yuzu: Rename check_vulkan to startup_checkslat9nq4-3/+3
2022-07-10PRKelebek15-11/+9
2022-07-10Rework CoreTimingKelebek113-82/+154
2022-07-10common: fix bitfield aliasing on GCC/ClangLiam1-0/+9
2022-07-10kernel: fix usage of waiter_list in FinalizeLiam1-3/+9
2022-07-06guard against div-by-zeroMarshall Mohror1-2/+5
2022-07-06common/x64: Use TSC clock rate from CPUID when availableMarshall Mohror3-1/+19
The current method used to estimate the TSC is fairly accurate - within a few kHz - but the exact value can be extracted from CPUID if available.
2022-07-06gpu_thread: Use the previous MPSCQueue implementationMorph2-4/+3
The bounded MPSCQueue implementation causes crashes in Fire Emblem Three Houses, use the previous implementation for now.
2022-07-06qt_web_browser: Fix button inputs with QtWebEngineMorph1-2/+6
Button inputs were broken as button was assumed to be the bit position of NpadButton prior to the input rewrite. Since this was changed to use NpadButton directly, we should count the number of trailing zeros to determine the bit position.
2022-07-06renderer_(gl/vk): Implement ASTC_10x6_UNORMMorph7-1/+16
- Used by Monster Hunter Rise Update 10.0.2
2022-07-05CI: fix cachingliushuyu1-1/+7
2022-07-02Core timing: use only one thread.Fernando Sahmkow2-12/+2
2022-07-02common/fiber: make fibers easier to useLiam9-170/+79
2022-06-30cpu_manager: properly check idle on return from preemptionLiam2-1/+8
2022-06-30gdbstub_arch: Directly access SP registerlat9nq1-2/+6
Currently to access the SP register, RegRead and RegWrite rely on a out-of-bounds array access to reach the next element in a struct. As of writing only git versions of GCC catch this error. Specify the SP register when we want to access it in these functions.
2022-06-30settings: Consolidate RangedSetting's with regular oneslat9nq8-320/+232
The latest git version of GCC has issues with my diamond inheritance shenanigans. Since that's now two compilers that don't like it I thought it'd be best to just axe all of it and just have the two templates like before. This rolls the features of BasicRangedSetting into BasicSetting, and likewise RangedSetting into Setting. It also renames them from BasicSetting and Setting to Setting and SwitchableSetting respectively. Now longer name corresponds to more complex thing.
2022-06-30Adress Feedback.Fernando Sahmkow3-19/+29
2022-06-29Revert "vulkan_device: Block AMDVLK's VK_KHR_push_descriptor"lat9nq1-11/+0
2022-06-29service: nifm: Stub GetInternetConnectionStatusgerman771-1/+41
2022-06-29service: ptm: Rewrite PSM and add TSgerman7710-84/+183
2022-06-29input_common: sdl: lower vibration frequency and use it's own unique threadgerman773-3/+12
2022-06-29service: hid: Correct some mistakes and add more validationsNarr the Reg5-40/+76
2022-06-28Native clock: Use atomic ops as before.Fernando Sahmkow2-24/+29
2022-06-28Native Clock: remove inaccuracy mask.Fernando Sahmkow2-6/+1
2022-06-28Address feedback.Fernando Sahmkow1-13/+13
2022-06-28Core: Protect each event from race conditions within it.Fernando Sahmkow2-0/+2
2022-06-28Core: Fix tests.Fernando Sahmkow3-2/+5
2022-06-28Core: add missing include.Fernando Sahmkow1-0/+1
2022-06-28Core/Common: Corrections to core timing and add critical priority.Fernando Sahmkow3-5/+11
2022-06-28Core: Reimplement Core Timing.Fernando Sahmkow3-55/+93
2022-06-28Common: improve native clock.Fernando Sahmkow3-29/+29
2022-06-27video_core: Replace VKUpdateDescriptorQueue with UpdateDescriptorQueuegerman7714-33/+33
2022-06-27video_core: Replace VKSwapchain with Swapchaingerman775-25/+23
2022-06-27video_core: Replace VKQueryCache with QueryCachegerman776-28/+27
2022-06-27video_core: Replace VKScheduler with Schedulergerman7735-111/+110
2022-06-27video_core: Replace VKBlitScreen with BlitScreengerman773-51/+51
2022-06-27video_core: Replace VKFenceManager with FenceManagergerman773-15/+14
2022-06-27core: kernel: Replace instances of KPageLinkedList with KPageGroupgerman7711-64/+63
2022-06-27core: Replace all instances of ResultCode with Resultgerman77140-1176/+1136
2022-06-26Re-add missing `case` and braces, and trim whitespacecomex1-1/+3
2022-06-26Update src/core/hle/kernel/svc.cppcomex1-6/+14
Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
2022-06-26Support InfoType_MesosphereCurrentProcesscomex1-0/+14
2022-06-25kernel: clean up waiting implementationLiam2-4/+5
2022-06-25core/arm: better support for backtrace generationLiam5-15/+51
2022-06-25gdbstub: fix register pokesLiam1-0/+1
2022-06-23kernel: make current thread pointer thread localLiam13-52/+69
2022-06-22KPageTable: Remove extraneous assertMorph1-1/+0
Since start is always 0 and VAddr is unsigned, we can safely remove this assert.
2022-06-22tweak API usage in qt_web_browser.cppKyle Kienapfel1-3/+3
In testing future versions of Qt I forgot to compile with `YUZU_USE_QT_WEB_ENGINE`, so with that flag enabled there are two issues that cropped up. 1. yuzu currently uses setRequestInterceptor, added in Qt 5.6, deprecated in 5.13 with this explaination at https://doc.qt.io/qt-5/qwebengineprofile-obsolete.html Interceptors installed with this method will call QWebEngineUrlRequestInterceptor::interceptRequest on the I/O thread. Therefore the user has to provide thread-safe interaction with the other user classes. For a duration of this call ui thread is blocked. Use setUrlRequestInterceptor instead. 2. QWebEngineSettings::globalSettings() pointer no longer exists in later versions of Qt From what I can tell, QtNXWebEngineView doesn't need to set these globally, when we make changes to settings(), QtWebEngineView::page() creates the page object if it doesn't exist yet. I don't see the page object being destroyed or otherwise replaced, except via destroying the QtNXWebEngineView object. The globalSettings() make sense if Pages or Views objects are being created outside of yuzu's control. To test this I've compared what BrowseNX and Odyssey's Action guide do in mainline 1049 and this PR. For now we're going to go up the chain to QWebEngineProfile::defaultProfile()->settings()
2022-06-22core/arm: increase minimum_run_cyclesLiam2-2/+2
2022-06-22core/arm: re-enable cycle countingmerry2-6/+20
2022-06-22dynarmic: Stop ReadCode callbacks to unmapped addressesLiam4-24/+64
2022-06-20service: am: Stub PerformSystemButtonPressingIfInFocusNarr the Reg2-1/+24
Used by Ring Fit Adventure
2022-06-18kernel: wait for threads to stop on pauseLiam3-0/+22
2022-06-17core: fix initialization in single core, sync GPU modeLiam4-0/+13
2022-06-16Make yuzu-cmd respect log_filter settingNikita Strygin1-0/+6
Because logging infrastructure initializes before the loading of the config, it reads the default setting for log_filter and ignores the one set in config. To change log_filter after logging initialization some additional calls need to be made.
2022-06-16Implement ExitProcess svcNikita Strygin1-1/+2
Currently this just stops all the emulation This works under assumption that only application will try to use ExitProcess, with services not touching it If application exits - it quite makes sense to end the emulation
2022-06-16core/debugger: memory breakpoint supportLiam18-54/+510
2022-06-16common: param_package: Demote DEBUG to TRACE for gettersNarr the Reg1-3/+3
2022-06-16kernel: fix some uses of disable_countLiam4-14/+7
2022-06-15bounded_threadsafe_queue: Use constexpr capacity and maskMorph2-87/+74
While this is the primary change, we also: - Remove the mpsc namespace and rename Queue to MPSCQueue - Make Slot a private struct within MPSCQueue - Remove the AlignedAllocator template argument, as we use std::allocator - Replace instances of mask + 1 with capacity, and mask + 2 with capacity + 1
2022-06-15vk_compute_pass: Explicitly cast to VkAccessFlagsMorph1-25/+26
According to the standard, a narrowing conversion is an implicit conversion from an integer or unscoped enumeration type to an integer type that cannot represent all the values of the original type, except when the value is a literal or constant expression. MSVC, unlike GCC or Clang, determines this to be a narrowing conversion despite the enumeration exclusively containing values that fit within the range of a 32 bit integer, emitting a warning since designated initializers prohibit narrowing conversions. To solve this, explicitly cast to the type we are initializing.
2022-06-15kernel: notify debugger on break SVCLiam1-0/+7
2022-06-15core: centralize profile scope for DynarmicLiam3-7/+2
2022-06-14main: Eliminate variable shadowingMorph1-3/+2
2022-06-14kernel: implement KProcess suspensionLiam12-212/+199
2022-06-14vk_compute_pass: Use VK_ACCESS_NONEMorph1-1/+1
This enumeration was introduced in Vulkan 1.3, prefer using this instead of defaulting the enum. Also resolves a narrowing conversion warning on MSVC.
2022-06-14wait_tree: Eliminate variable shadowingMorph2-12/+12
2022-06-14configure_ringcon: Eliminate variable shadowingMorph1-4/+4
2022-06-14configure_touch_from_button: Eliminate variable shadowingMorph2-3/+3
2022-06-14configure_per_game: Eliminate variable shadowingMorph2-4/+4
2022-06-14configure_input_player: Eliminate variable shadowingMorph1-39/+39
2022-06-14configure_dialog: Eliminate variable shadowingMorph2-5/+4
2022-06-14bootmanager: Eliminate variable shadowingMorph1-1/+1
2022-06-14game_list: Eliminate variable shadowingMorph5-19/+19
2022-06-14vk_compute_pass: Silence Wextra warningMorph1-1/+1
Silences a warning about using enumerated and non-enumerated types in a conditional expression.
2022-06-14kernel: fix passthrough of local captures in lambdaLiam1-1/+3
2022-06-14common/assert: rework ASSERT handling to avoid std::function usageLiam2-35/+20
2022-06-14general: fix compilation on MinGW GCC 12Liam2-6/+5
2022-06-14common/assert: add unlikelyLiam1-1/+1
2022-06-14general: fix compilation on GCC 12Liam2-2/+2
2022-06-14kernel: ensure class token lambda exit is unreachableLiam1-0/+1
2022-06-14kernel: fix inconsistency in AutoObjectTraits macro definitionsLiam1-4/+7
2022-06-14common: Don't test ASSERT conditions inlineLiam2-32/+36
2022-06-14common: Change semantics of UNREACHABLE to unconditionally crashLiam72-173/+182
2022-06-14structured_control_flow: Remove constexpr Flow::Blocklat9nq1-6/+0
This seems to be unsupported in newer libstdc++ versions due to Flow::Block's base class being a non-literal type. It's not clear to me why this was permitted in earlier versions.
2022-06-14yuzu_cmd: Eliminate variable shadowingMorph5-7/+7
2022-06-14audio_core: Remove -Werror=unused-parameterMorph1-1/+0
Removing this as we don't enforce unused parameter warnings elsewhere in the project, and explicitly specify -Wno-unused-parameter in the main CMakeLists.
2022-06-14CMakeLists: Make variable shadowing a compile-time errorMorph6-16/+5
Now that the entire project is free of variable shadowing, we can enforce this as a compile time error to prevent any further introduction of this logic bug.
2022-06-14common: Eliminate variable shadowingMorph1-2/+2
GCC/Clang treats variables within lambdas as potentially shadowing those outside the lambda, despite them not being captured inside the lambda's capture list.
2022-06-14yuzu: Eliminate variable shadowingMorph10-25/+25
2022-06-14web_service: Eliminate variable shadowingMorph2-12/+12
2022-06-12core/debugger: allow remote connectionsLiam1-1/+1
2022-06-12gdbstub_arch: Add missing virtual destructorLioncash1-0/+1
The class is used polymorphically, so it's undefined behavior to delete instances of GDBStubA64 and GDBStubA32 from the base class pointer.
2022-06-11log the MSVC runtime version when running on MSVC buildKyle Kienapfel2-0/+30
This might be useful information, not 100% sure. [ 0.958068] Frontend <Info> yuzu\main.cpp:GMainWindow:275: yuzu Version: yuzu Development Build | master-0b9ef3c0b-dirty [ 0.958095] Frontend <Info> yuzu\main.cpp:LogRuntimes:220: MSVC Compiler: 1931 Runtime: 14.32.31326.0
2022-06-11UI: retranslate the game list placeholderKyle Kienapfel2-1/+16
This is the "Double-click to add a new folder to the game list" message that shows up when users first launch yuzu and is most likely never seen again. Previously this message was not re-translated.
2022-06-10service: hid: Fix gesture regressionNarr the Reg2-4/+3
2022-06-10yuzu-cmd: ignore bogus timeous from SDLLiam1-1/+9
2022-06-10core/debugger: fix a number of shutdown deadlocksLiam9-7/+72
2022-06-10core/debugger: support operation in yuzu-cmdLiam3-0/+15
2022-06-09kernel: fix KCodeMemory initializationLiam3-26/+118
2022-06-09CpuManager: simplify pausingLiam3-95/+36
2022-06-07core/debugger: fix asio write usageLiam1-2/+2
2022-06-07core/debugger: fix crash due to incorrect lambda captureLiam1-8/+9
2022-06-07input_common: Replace usage of string guid to common uuidNarr the Reg2-33/+38
2022-06-06deprecate usage of QDesktopWidget for going fullscreenKyle Kienapfel1-3/+15
Idea works as follows, while going fullscreen we compare the current window geometry with available screens and ask for an intersection rectangle, we go fullscreen where most of the window is located GuessCurrentScreen could also potentially be used to see which screen the window is on for dynamic DPI handling
2022-06-06hle: service: nvflinger: buffer_queue_consumer: Always free released buffers.bunnei3-31/+3
2022-06-05common: consolidate ELF structure definitionsLiam5-263/+371
2022-06-04configure_graphics: Remove unused includelat9nq1-1/+0
2022-06-04gdbstub: add missing library list commandLiam1-22/+28
2022-06-03gpu_thread: Move to bounded queueLevi Behunin3-4/+185
2022-06-02Maxwell3D: Fix 3D semaphore counter type 0 handlingBilly Laws2-3/+3
Counter type 0 actually releases the semaphore payload rather than a constant zero as was previously thought. This is required by Skyrim.
2022-06-02core/debugger: Support reading guest thread namesLiam4-14/+172
2022-06-02gdbstub: fix target descriptionsLiam2-10/+87
2022-06-02ui: Status bars dock button becomes dock/undock buttonKyle Kienapfel2-5/+11
For people not used to the Yuzu UI it's not always clear if the emulated console is docked or not. The other items update their text when clicked, this PR brings the DOCK button in line with this. DOCK -> DOCKED or HANDHELD
2022-06-01core/debugger: Define defaulted virtual destructorsMorph3-2/+6
Resolves an MSVC warning where a virtual destructor is not defined in the base class with virtual functions.
2022-06-01core/debugger: Improved stepping mechanism and misc fixesLiam15-122/+247
2022-06-01gdbstub: Explicitly cast return type to u8Morph1-2/+2
Otherwise, the addition promotes the returned value to an int instead of keeping it as a u8.
2022-06-01fix UI opening fullscreen after certain crashesKyle Kienapfel1-0/+4
Sometimes when yuzu crashes, it restarts with the games list in fullscreen, which would be fine, except there isn't an easy way to exit this. It also doesn't occur often enough for qt-config.ini files to be in good supply. UILayout\geometry value in qt-config.ini is the culprit, at least for the one provided. Proposed fix is to simply check isFullScreen when yuzu is starting up, and take it out of full screen immediately
2022-06-01core/debugger: Implement new GDB stub debuggerLiam27-42/+1500
2022-05-31service: hid: Improve stub of IRSNarr the Reg2-21/+460
2022-05-30main: Insert warning text on broken Vulkanlat9nq1-1/+6
Co-authored-by: Schplee <24275329+Schplee@users.noreply.github.com>
2022-05-30main: Save config on broken Vulkan detectlat9nq1-0/+2
Prevents possible issues if someone were to open yuzu repeatedly over and over again.
2022-05-30yuzu-qt: Make has_broken_vulkan only for crasheslat9nq5-11/+17
Being able to catch and handle a Vulkan exception is not what this is for.
2022-05-30vulkan_library: Add debug logginglat9nq1-0/+4
2022-05-30yuzu-qt: Attempt to workaround broken Vulkan installationslat9nq9-46/+166
This does a few things in order to make the default setting Vulkan workable. - When yuzu boots, it just opens the Vulkan library. - If it works, all good and we continue with Vulkan as the default. - If something breaks, a new file in the config directory will be left behind (this is deleted normally). - If Vulkan is not working, has_broken_vulkan is set to true. - The first time this happens, a warning is displayed to notify the user. - This forces use of OpenGL, and Vulkan cannot be selected. - The Shader Backend selector is made accessible for use in custom configurations. - To disable has_broken_vulkan, the user needs to press a button in Graphics Configuration to manually run the Vulkan device enumeration.
2022-05-30default_ini: Reflect new renderer backend default settinglat9nq1-1/+1
2022-05-30settings: Set Vulkan to the default renderer backendlat9nq1-1/+1
2022-05-30motion touch ui: move remaining connection out of .ui fileKyle K2-18/+3
Two reasons for this: 1. Out of 7 connections, 6 are in ConfigureMotionTouch::ConnectEvents, this is the outlier. 2. Qt6 doesn't moc the connection properly
2022-05-29Update some files with Qt 5.15.2 best practices in mindKyle K8-17/+22
There was some discussion about updating to Qt6 and I figured I would work on some smaller parts. For Windows platform the WinMain function has moved from the Qt5::WinMain to a new one called Qt6::EntryPointPrivate Also Qt5 supports versionless CMake targets https://www.qt.io/blog/versionless-cmake-targets-qt-5.15 These other changes in this commit are to support Qt6, but in ways that don't mess with Qt5. src/yuzu/bootmanager.cpp: Qt6 complains about not being able to know to use QPoint or QPointF, picking QPoint src/yuzu/bootmanager.h: Qt6 prefers that QStringList.h be included rather than an empty class definition src/yuzu/configuration/configure_system.cpp: toULongLong intends to return unsigned 64 bit integer, but Settings::values.rng_seed is only 32 bits wide src/yuzu/game_list.cpp: Qt6 returns a different datatype for QStringList.length than Qt5, it used to be int, but in Qt6 its now qsizetype src/yuzu/loading_screen.cpp: Qt5's for QStyleOption.init say to switch to initFrom. The QStyleOption.init doesn't exist in Qt6 src/yuzu/main.cpp: Another QPointer and QStringList.size, lets standardize on size()
2022-05-29Logging: Report Post Windows 10 2004 versions, like Windows 11Kyle K1-1/+26
Qt5 and Qt6 don't really do a good job of reporting Windows versions past the 2004 version. Current: Windows 10 Version 2009 This Patch: Windows 10 Version 21H1 (Build 19043.1706) Also: Windows 11 Version 21H2 (Build 22000.675) Fixes: #8362
2022-05-28yuzu-qt: Call -Wl,--subsystem,windows directlylat9nq1-1/+1
-mwindows doesn't work with Clang. tpoechtrager/wclang resolves this by just using MinGW-GCC to link the executable, however this prevents us from using LLVM-exclusive tools when building yuzu. Solution is to send the linker argument we need from -mwindows directly to the linker. From https://gcc-help.gcc.gnu.narkive.com/FogklN5J/gcc-wl-subsystem-windows-mwindows-options
2022-05-27service: hid: Implement ResetIsSixAxisSensorDeviceNewlyAssignedgerman775-6/+125
Needed by Nintendo Switch Sports
2022-05-27service: hid: Implement LoadSixAxisSensorCalibrationParameter and GetSixAxisSensorIcInformationgerman775-3/+136
Needed by Nintendo Switch Sports
2022-05-27service: hid: Implement EnableSixAxisSensorUnalteredPassthrough and IsSixAxisSensorUnalteredPassthroughEnabledgerman774-2/+88
Needed by Nintendo Switch Sports
2022-05-27service: hid: Add error handling to sixaxis functionsgerman773-31/+55
2022-05-27service: hid: Refractor sixaxis functionsgerman772-185/+88
2022-05-27service: hid: Implement MergeSingleJoyAsDualJoy according to REgerman774-65/+57
2022-05-27service: hid: Add error handling to setNpadAssignment and variantsgerman773-23/+27
2022-05-27service: hid: Quick RE fixes and commentsgerman774-54/+68
2022-05-27path_util: Resolve `-Wpointer-bool-conversion` warninglat9nq1-3/+1
Clang (rightfully) warns that we are checking for the existence of pointer to something just allocated on the stack, which is always true. Instead, check whether GetModuleFileNameW failed. Co-authored-by: Mai M <mathew1800@gmail.com>
2022-05-25vulkan_device: Workaround extension buglat9nq1-1/+6
A bug occurs in yuzu when VK_KHR_workgroup_memory_explicit_layout is available but 16-bit integers are not supported in the host driver. Disable usage of the extension when this case arises.
2022-05-25vulkan_device: Block AMDVLK's VK_KHR_push_descriptorlat9nq1-0/+11
Recent AMD Vulkan drivers (22.5.2 or 2.0.226 for specifically Vulkan) have a broken VK_KHR_push_descriptor implementation that causes a crash in yuzu. Disable it for the time being.
2022-05-23input_common: Make vibration request asyncNarr the Reg4-7/+63
2022-05-23input_common: touch: Rewrite touch driver to support multiple touch pointsgerman778-92/+140
2022-05-19UI: Translate hotkey labels in configurationKyle K2-26/+40
Another request from GillianMC. The translated strings have been placed in a separate "Hotkeys" context as an alternative to having to add the tr function to the Config class, or adding them to ConfigureHotkeys context which is quite long. The English strings get attached to the items in the Action column as "data", and are used for RetranslateUI and saving the hotkey configuration.
2022-05-17video_core: Support new VkResultAlexandre Bouvier1-0/+2
2022-05-16qt_software_keyboard: Address review feedbacklat9nq1-14/+14
Use auto and a more descriptive variable name. Secondly, fix some C++ misconceptions or constructing too many objects. Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: Lioncash <mathew1800@gmail.com>
2022-05-16about dialog: Fix the logo in a multiplatform wayKyle K2-3/+19
The Icon was renamed in #8283 for Linux builds, and the fix proposed in #8312 would in turn break the icon for Windows users. I've decided to fix the aboutdialog.ui file via qtcreator. I'm not sure its important to have the yuzu icon inside the About dialog grabbed from the local Qt theme, but I've reword how the code works for that, and we can just delete those lines. I've also thrown the yuzu.png through pngcrush to remove this warning libpng warning: iCCP: known incorrect sRGB profile Credit to abouvier for bringing bug up.
2022-05-16main: Use Common::U16StringFromBufferlat9nq1-2/+4
See ffd3afcf2
2022-05-16qt_software_keyboard: Use Common::U16StringFromBufferlat9nq1-14/+15
See ffd3afcf2
2022-05-16string_util: Add U16StringFromBufferlat9nq2-0/+6
Qt's QString::toStdU16String doesn't work when compiling against the latest libstdc++, at least when using Clang. This function effectively does the same thing as the aforementioned one.
2022-05-14general: Avoid ambiguous format_to compilation errorsLioncash3-3/+3
Ensures that we're using the fmt version of format_to. These are also the only three outliers. All of the other formatters we have are properly qualified.
2022-05-13time_zone_manager: Use s8 for month length tablesMorph1-4/+3
Using this smaller type saves 512 bytes in the compiled executable.
2022-05-13video_core/surface: Use u8 for PixelFormat block tablesMorph1-3/+3
Using this smaller type saves 33280 bytes in the compiled executable.
2022-05-13codecs/vp9: Use u8 for norm and map lutsMorph1-4/+4
Using this smaller type saves 1536 bytes in the compiled executable.
2022-05-13command_generator: Use u8 for tap index lutMorph1-8/+8
Using this smaller type saves 1024 bytes in the compiled executable.
2022-05-11maxwell_dma: use fallback if remapping is enabledLiam1-3/+6
2022-05-10video_core/macro: clear code on upload address assignmentLiam3-0/+10
2022-05-09service: notifa: Implement most part of this servicegerman772-8/+172
Implements partially RegisterAlarmSetting, UpdateAlarmSetting, LoadApplicationParameter, DeleteAlarmSetting. Needed for Fitness `Boxing 2: Rhythm & Exercise` and `Ring Fit Adventure`.
2022-05-09VideoCore: Add option to dump the macros.Fernando Sahmkow4-0/+44
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2022-05-08video_core/macro_jit_x64: warn on invalid parameter accessLiam1-3/+21
2022-05-07OpenGL: implement face flips according to NDCLiam1-4/+3
2022-05-07maxwell_dma: fix bytes per pixelLiam1-3/+3
2022-05-06service: hid: Fix motion refresh rateNarr the Reg2-2/+6
2022-05-06service: hid: Disable correctly motion inputgerman771-50/+41
2022-05-06vk_rasterizer: fix stencil test when two faces are disabledLody1-2/+2
2022-05-03hle/result: Update std::expected replacement messageMorph1-1/+1
std::expected is included in C++23
2022-05-03hle/result: Add ResultRange overload in ResultValMorph1-1/+3
Also marks the implicit conversion operator as constexpr instead of consteval as the constructor is not constant evaluated.
2022-05-03hle/result: Implement ResultRangeMorph1-0/+42
A ResultRange defines an inclusive range of error descriptions within an error module. This can be used to check whether the description of a given ResultCode falls within the range. The conversion function returns a ResultCode with its description set to description_start.
2022-05-02Revert "gc_adapter: fix libusb import on GCC11.2"Morph1-4/+0
This reverts commit f72f4377f4cbbe45e5a43bb67c7245737ffa135f.
2022-05-02gc_adapter: fix libusb import on GCC11.2Levi Behunin1-0/+4
Just to silence an intermittent error. GCC11.2 complains cannot find 'libusb.h' during a fresh build.
2022-05-02ui: retranslate the network tabKyle K2-2/+11
Looks like it was just missed when it was added, as currently the Network Tab only has one item RetranslateUI is used more commonly throughout the project
2022-05-01ui: let system locale control format of Custom RTCKyle K1-3/+0
The Custom RTC widget is under the influence of the computers System Locale. The format strings are not necessarily related. As a small example, setting the Windows Language to Dansk, and then trying to use yuzu in English the requested AM/PM indicator is simply not shown The display format for the Custom RTC field needs to be removed from src/yuzu/configuration/configure_system.ui modifying the display format needs to be moved to src/yuzu/configuration/configure_system.cpp
2022-04-28GCC 12 fixesLiam3-4/+4
2022-04-28chore: add missing SPDX tagsAndrea Pappacoda33-357/+90
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
2022-04-27Changes to language order in General -> UI -> Interface LanguageKyle K1-6/+67
Language List is from Dolphin, specifically https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/DolphinQt/Settings/InterfacePane.cpp#L30 Any languages that are compiled in, but not in the list will be at the end.
2022-04-27service: hid: Stub IsFirmwareUpdateNeededForNotificationgerman772-1/+21
Used in Fitness Boxing 2: Rhythm & Exercise (0100073011382000)
2022-04-27yuzu: Config allow to delete single axis directions when buttons are mapped to a stickNarr the Reg2-3/+24
2022-04-27yuzu: config: Set default range to 95%Narr the Reg3-6/+6
2022-04-26renderer_vulkan: Update screen info if the framebuffer size has changedMorph1-0/+5
2022-04-25service: jit: document and clean upLiam3-132/+225
2022-04-24kernel: svc: Replace -1ULL with 0xFFFFFFFFFFFFFFFFMorph1-1/+1
Resolves the C4146 compiler warning on MSVC.
2022-04-24Remove unused PrepareReschedule functionMerry7-20/+0
2022-04-24service: hid: Ensure all structs are initializedNarr the Reg16-104/+105
2022-04-23service: hid: Access shared memory directlyNarr the Reg21-305/+347
2022-04-23hotkeys: Trigger actions on a separate threadNarr the Reg1-3/+5
2022-04-23general: Convert source file copyright comments over to SPDXMorph1366-4208/+2745
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-21core/arm: separate backtrace collectionLiam6-90/+98
2022-04-21input_common: Ignore boost uninitialized local variableNarr the Reg1-0/+9
2022-04-19Prevent the mouse cursor from leaving the window when mouse panning is enabledPurple2-2/+41
2022-04-19ui: translate hat directionsKyle K1-1/+19
QObject ends up being its own translation context. But this works in our favor. GetButtonName and GetDirectionName will share one translation the directions such as "Left" "Right" and the ConfigureInputPlayer context will contain translations that show up in the form, in places that aren't those buttons.
2022-04-18service: hid: Improve accuracy of sixaxis functionsNarr the Reg6-99/+363
2022-04-18yuzu: mention GPLv3.0+ in about dialogAndrea Pappacoda1-1/+1
Follow-up to 284934ebfdf5e530c960cf69969172ff76f40bea Fixes #8218
2022-04-18bootmanager: Don't create another screenshot request if previous one is not done yetgerman773-0/+13
2022-04-17ui: Fix Game Compatibility list translationsKyle K3-3/+6
Reported by GillianMC on Discord. Looks to be a small quirk in the QT API. setText(QObject::tr(status.text)); bringing up QObject breaks the link with the GameListItemCompat
2022-04-16yuzu: Call ignore event after ensuring it's initializedNarr the Reg2-2/+2
2022-04-16yuzu: Add custom ringcon configurationgerman7719-65/+992
2022-04-16hidbus: Implement hidbus and ringcongerman7714-26/+1679
2022-04-14video_core: implement formats for N64 emulationFernando Sahmkow8-7/+102
2022-04-14buffer_cache: cap vertex buffer sizesLiam1-1/+14
2022-04-14maxwell3d: add small_index_2 registerLiam2-1/+11
2022-04-13dynarmic: Fix single core modemerry2-2/+2
Regression introduced in a5d040df3d. Closes #8201.
2022-04-13service: jit: Implement the JIT serviceLiam5-9/+784
2022-04-12ui: Touching QPalette::Text broke dark -> light UI. don't doKyle K1-2/+0
2022-04-12core: hle: kernel: k_thread: Rework dummy thread waiting.bunnei2-28/+21
2022-04-12core: hle: service: Allocate a service thread.bunnei1-1/+2
2022-04-12hle: kernel: k_spin_lock: Remove unused ThreadPause.bunnei1-28/+0
2022-04-12hle: kernel: Use std::mutex instead of spin locks for most kernel locking.bunnei10-32/+23
2022-04-12service: sfdnsres: add missing includes for some BSDs after 82d46a974ad4Jan Beich1-0/+4
src/core/hle/service/sockets/sfdnsres.cpp: In function 'Service::Sockets::NetDbError Service::Sockets::AddrInfoErrorToNetDbError(s32)': src/core/hle/service/sockets/sfdnsres.cpp:66:10: error: 'EAI_NODATA' was not declared in this scope; did you mean 'EAI_NONAME'? 66 | case EAI_NODATA: | ^~~~~~~~~~ | EAI_NONAME src/core/hle/service/sockets/sfdnsres.cpp: In function 'std::vector<unsigned char> Service::Sockets::SerializeAddrInfo(const addrinfo*, s32, std::string_view)': src/core/hle/service/sockets/sfdnsres.cpp:127:53: error: 'sockaddr_in' does not name a type; did you mean 'SockAddrIn'? 127 | const auto addr = *reinterpret_cast<sockaddr_in*>(current->ai_addr); | ^~~~~~~~~~~ | SockAddrIn src/core/hle/service/sockets/sfdnsres.cpp:127:64: error: expected '>' before '*' token 127 | const auto addr = *reinterpret_cast<sockaddr_in*>(current->ai_addr); | ^ src/core/hle/service/sockets/sfdnsres.cpp:127:64: error: expected '(' before '*' token 127 | const auto addr = *reinterpret_cast<sockaddr_in*>(current->ai_addr); | ^ | ( src/core/hle/service/sockets/sfdnsres.cpp:127:65: error: expected primary-expression before '>' token 127 | const auto addr = *reinterpret_cast<sockaddr_in*>(current->ai_addr); | ^ src/core/hle/service/sockets/sfdnsres.cpp:127:84: error: expected ')' before ';' token 127 | const auto addr = *reinterpret_cast<sockaddr_in*>(current->ai_addr); | ^ | ) src/core/hle/service/sockets/sfdnsres.cpp:148:53: error: 'sockaddr_in6' does not name a type; did you mean 'SockAddrIn6'? 148 | const auto addr = *reinterpret_cast<sockaddr_in6*>(current->ai_addr); | ^~~~~~~~~~~~ | SockAddrIn6 src/core/hle/service/sockets/sfdnsres.cpp:148:65: error: expected '>' before '*' token 148 | const auto addr = *reinterpret_cast<sockaddr_in6*>(current->ai_addr); | ^ src/core/hle/service/sockets/sfdnsres.cpp:148:65: error: expected '(' before '*' token 148 | const auto addr = *reinterpret_cast<sockaddr_in6*>(current->ai_addr); | ^ | ( src/core/hle/service/sockets/sfdnsres.cpp:148:66: error: expected primary-expression before '>' token 148 | const auto addr = *reinterpret_cast<sockaddr_in6*>(current->ai_addr); | ^ src/core/hle/service/sockets/sfdnsres.cpp:148:85: error: expected ')' before ';' token 148 | const auto addr = *reinterpret_cast<sockaddr_in6*>(current->ai_addr); | ^ | )
2022-04-11ui: Set Link Color when setting themeKyle K3-0/+20
Long story short, QT doesn't allow the link colors to be set via their stylesheets. There are two ways to work with this, specify the color manually for every link (See the About dialog) The other way is to change the default palette. IsDarkTheme is copy/pasted from src/yuzu/debugger/wait_tree.cpp
2022-04-10dynarmic: Fix race when switching page tablesmerry4-57/+84
2022-04-09hle: kernel: Invalidate entire icache in UnmapProcessMemory and UnmapCodeMemory (fixes #8174)tech-ticks4-15/+34
2022-04-09core: extract symbol readingLiam4-129/+231
2022-04-08hle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession.bunnei6-13/+46
- These are not managed elsewhere, and need to be tracked and closed on emulation shutdown.
2022-04-08hle: kernel: k_server_port: Release ref-counted host emulation members on Destroy.bunnei1-0/+3
2022-04-08hle: kernel: k_auto_object: Move unregister with kernel to after Destroy.bunnei1-3/+2
- Destructor is no longer invoked, so our object counting was off.
2022-04-08hle: service: sm: Remove manual tracking of KServerPorts.bunnei2-8/+1
2022-04-08hle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking.bunnei1-1/+1
2022-04-08service: sfdnsres: Implement DNS address resolutiontech-ticks2-5/+197
2022-04-08CMakeLists: Enforce C4505 and C5245Morph1-0/+2
These are similar to Wunused-function on gcc/clang
2022-04-08core: hid: Fix double lock on softlock and forced updatesNarr the Reg1-2/+12
2022-04-07service: bsd: Add keepalive socket optiontech-ticks4-0/+10
2022-04-07patch_manager: Apply layered exefs patches from 'atmosphere' SD directorytech-ticks1-25/+38
2022-04-07core: hid: Replace lock_guard with scoped_lockNarr the Reg3-44/+44
2022-04-07core/hle: Standardize scoped_lock initializersMerry5-23/+23
2022-04-07yuzu/util: Replace lock_guard with scoped_lockMerry1-1/+1
2022-04-07web_service: Replace lock_guard with scoped_lockMerry1-2/+2
2022-04-07video_core: Replace lock_guard with scoped_lockMerry11-18/+18
2022-04-07input_common: Replace lock_guard with scoped_lockMerry2-29/+29
2022-04-07core: Replace lock_guard with scoped_lockMerry2-14/+14
2022-04-07core/hle: Replace lock_guard with scoped_lockMerry4-13/+13
2022-04-07common: Replace lock_guard with scoped_lockMerry3-5/+5
2022-04-07core: hid: Reduce the amount of dataracesgerman776-176/+246
2022-04-07fix: remove #pragma once in .cpp fileAndrea Pappacoda1-2/+0
2022-04-07service: jit: stub JIT serviceLiam8-1/+88
2022-04-07OpenGL: fix S8D24 to ABGR8 conversionsLiam6-4/+58
2022-04-06service: hid: Partially revert #8123german771-0/+4
2022-04-06k_system_control: Fix data racelat9nq1-3/+3
`return distribution(gen)` is a data race between a read and a write in two threads, reported by TSan. Remove static random number generators so they aren't using the same generator.
2022-04-05dynarmic: Print stack trace on unrecognised instruction or other exceptionmerry2-0/+4
2022-04-05build: remove -fconceptsAndrea Pappacoda1-6/+0
It was needed on GCC versions not supporting `-std=c++20`, but GCC 10 and newer (required to compile yuzu) don't need it anymore
2022-04-05Revert "texture_cache/util: Remove unneeded ReadBlockUnsafe"bunnei1-0/+1
2022-04-04shader_recompiler: Decrease indirect cbuf limit to match hardwareLiam1-1/+1
2022-04-04texture_cache/util: Remove unneeded ReadBlockUnsafeameerj1-1/+0
This call was reading GPU memory into the dst buffer, which is then overwritten by the SwizzleTexture call.
2022-04-04OpenGL: fix croppingLiam3-1/+10
2022-04-04Vulkan: crop to screen dimensions if crop not explicitly requestedLiam1-2/+3
2022-04-04OpenGL: propagate face flip conditionLiam1-4/+10
2022-04-04OpenGL: flip front faces if Z scale is invertedLiam1-2/+3
2022-04-04k_auto_object: Fix data racelat9nq1-1/+1
Change the memory order to acqure-release when we decrement the reference count. Prevents a race with line 89 reported by TSan.
2022-04-04k_thread: Fix data racelat9nq2-3/+4
TSan reports a data race between writing at cpp:1162 and reading at h:262. Make the thread_state atomic to prevent this.
2022-04-04k_process: Fix data racelat9nq1-1/+1
TSan reported a race between thread 36 and thread 34, a read at :225 and a write at :225 respectively. Make total_proces_running_time_ticks atomic to avoid this race.
2022-04-04kernel: Fix current_process racelat9nq1-4/+4
TSan reported a race at :258 and :803, so make current_process an atomic pointer.
2022-04-04k_scheduler_lock: Fix data racelat9nq1-1/+2
TSan reports a race between the main thread and T37 during IsLockedByCurrentThread and when it's set at the end of Lock(), respectively. Set owner_thread to an atomic pointer to fix it. Co-authored-by: bunnei <bunneidev@gmail.com>
2022-04-03native_clock: Internal linkage for FencedRDTSCMerry1-2/+4
__forceinline required on MSVC for function to be inlined
2022-04-03native_clock: Use lfence with rdtscmerry1-14/+33
2022-04-03arm_dynarmic: Use HaltReason for svc calls and reschedulesmerry4-27/+19
2022-04-03dynarmic: Better interruptsmerry6-22/+27
2022-04-03service: npad: Default initialize shared memorygerman771-48/+48
2022-04-02native_clock: Use writeback from CAS to avoid double-loadingmerry1-4/+6
2022-04-02atomic_ops: Implement AtomicCompareAndSwap with writebackmerry1-0/+73
2022-04-02native_clock: Use AtomicLoad128Merry1-2/+2
2022-04-02atomic_ops: Implement AtomicLoad128Merry1-0/+17
2022-04-02configure_per_game_addons: Set tree view minimum section size to 150pxmerry1-0/+1
2022-04-02configure_hotkeys: Make first column stretch and not last columnmerry1-3/+4
Also configure minimum width of columns to be 150px.
2022-04-02fix: typosAndrea Pappacoda5-10/+10
2022-04-02configure_per_game_addons: Stretch first column and not lastmerry1-1/+4
This provides more sensible column widths.
2022-04-02hle: service: nvflinger: buffer_queue_producer: Cleanup & fixes.bunnei2-61/+42
2022-04-02hle: service: nvflinger: consumer_base: Cleanup & fixes.bunnei2-15/+17
2022-04-02hle: service: nvflinger: buffer_queue_producer: Cleanup & add GetReleasedBuffers.bunnei2-10/+38
2022-04-02hle: service: nvflinger: buffer_queue_core: Cleanup & fixes.bunnei2-3/+0
2022-04-02hle: service: nvflinger: Use correct logger namespace.bunnei1-2/+2
2022-04-02hle: service: nvdrv: Create a service thread where appropriate.Morph1-1/+1
2022-04-02hle: service: vi: Create a service thread where appropriate.bunnei1-1/+2
2022-04-02hle: service: bsd: Create a service thread where appropriate.bunnei1-1/+2
2022-04-02hle: service: filesystem: Create a service thread where appropriate.bunnei1-5/+8
2022-04-02hle: service: audio: Create a service thread where appropriate.bunnei2-4/+6
2022-04-02hle: service: Add option for service interfaces to create or use the default thread.bunnei5-11/+29
2022-04-02hle: kernel: Create a default thread for services that do not need their own host thread.bunnei2-4/+26
2022-04-02applets/web: Keep foreground (websession) web applet openMorph1-0/+8
This is a hack to keep the foreground (websession) web applet open in games using these such as Super Mario 3D All-Stars.
2022-04-01shader_compiler: support const buffer indirect addressing in GLSLLiam4-9/+38
2022-04-01audio_core: remove time stretcherAndrea Pappacoda6-137/+3
Also drop the SoundTouch dependency
2022-04-01shader_recompiler: support const buffer indirect addressing on OpenGL SPIR-VLiam3-17/+14
2022-04-01GPU Garbage Collection: Fix regressions.Fernando Sahmkow2-3/+1
2022-03-31service: hid: Remove inaccurate behavior on initializationgerman773-18/+21
2022-03-31service: hid: Signal event on AcquireNpadStyleSetUpdateEventHandleNarr the Reg1-0/+4
2022-03-29nvhost_ctrl: Only mark EventState::Busy as BadParameterameerj1-1/+1
Fixes an svc break in Kirby and the Forgotten Land with async GPU enabled.
2022-03-29yuzu_cmd: Start the logging backendlat9nq1-0/+1
2022-03-29yuzu: Only override fullscreen setting if gamepath or argument is providedgerman771-3/+10
2022-03-29gl_rasterizer: Avoid scenario locking already owned mutexameerj1-3/+3
gpu.TickWork() may lock the texture_cache and buffer_cache mutexes, which are owned by the thread prior to invoking TickWork(). Defer invoking gpu.TickWork() until the scope ends, where the owned mutexes are released.
2022-03-27registered_cache: Prevent nullptr dereference when accumulating filesMorph1-2/+4
For whatever reason, nca_file/dir can be nullptr in the list of files/dirs. I have not determined the cause of this yet, so add a nullptr check for these prior to dereferencing them.
2022-03-27arm_dynarmic_64: Invalidate on all coresmerry1-2/+4
2022-03-27build: cleanup installation of yuzu and yuzu-cmdAndrea Pappacoda2-2/+2
Explicitly specifying an install destination is not needed anymore since CMake 3.14. By removing the hardcoded ${CMAKE_INSTALL_PREFIX}/bin it is also now possible to override the install destination via the command line. For example, you can now install yuzu to /usr/games with -DCMAKE_INSTALL_BINDIR=games
2022-03-26Revert "Memory GPU <-> CPU: reduce infighting in the texture cache by adding CPU Cached memory."bunnei6-65/+4
2022-03-26configure_cpu: More descriptive text for Paranoid optionmerry1-1/+1
2022-03-26hle: kernel: k_page_table: Fix implementations of LockForCodeMemory & UnlockForCodeMemory.bunnei1-48/+12
2022-03-26hle: kernel: k_page_table: Implement LockMemoryAndOpen & UnlockMemory.bunnei2-0/+124
2022-03-26configuration: Add Paranoid CPU accuracy levelmerry4-45/+63
Disables most optimizations for the paranoid.
2022-03-26hle: kernel: svc: MapProcessMemory: Fix usage of KPageLinkedList to use physical address space.bunnei1-2/+5
2022-03-26hle: kernel: svc: CreateCodeMemory: Remove log of 'out' host pointer.bunnei1-2/+2
- This does not seem terribly useful and is inconsistent with other usage.
2022-03-26hle: kernel: k_code_memory: Fix usage of KPageLinkedList to use physical address space.bunnei1-1/+2
2022-03-26hle: kernel: k_page_table: Implement MakeAndOpenPageGroup & MakePageGroup.bunnei2-0/+83
2022-03-26hle: kernel: k_page_table: Add IsHeapPhysicalAddress method.bunnei1-0/+8
2022-03-26hle: kernel: k_page_linked_list: Add Empty method.bunnei1-0/+4
2022-03-26hle: kernel: svc: UnmapProcessCodeMemory: Fix inverted alignment check.bunnei1-1/+1
2022-03-26hle: service: nvflinger: buffer_queue: Remove AutoLock and fix free buffer tracking.bunnei5-181/+130
2022-03-26hle: service: nvflinger: buffer_queue_consumer: Use scoped_lock instead of unique_lock.bunnei1-2/+2
2022-03-26hle: service: nvflinger: consumer_base: Use scoped_lock instead of unique_lock.bunnei1-4/+4
2022-03-26hle: service: nvflinger: Remove unused BufferQueue.bunnei2-360/+0
2022-03-25Memory: Don't protect reads on Normal accuracy.Fernando Sahmkow1-1/+1
2022-03-25Texture Cache: Add Cached CPU system.Fernando Sahmkow5-3/+64
2022-03-25GC: Address Feedback.Fernando Sahmkow7-29/+37
2022-03-25hle: nvflinger: ConsumerBase: Mark ctor as explicit.bunnei1-1/+1
2022-03-25hle: vi: NativeWindow: Fix trivially copyable issues.bunnei1-4/+4
2022-03-25hle: nvdrv: nvdata: buffer_queue_producer: Minor cleanup.bunnei1-11/+11
2022-03-25hle: nvdrv: nvdata: Cleanup NvFence static assert.bunnei1-1/+1
2022-03-25hle: nvflinger: Remove unused unordered_map include.bunnei1-1/+0
2022-03-25hle: nvflinger: buffer_queue_consumer: AcquireBuffer: Fix typo.bunnei1-1/+1
2022-03-25hle: nvflinger: Merge Rect with Common::Rectangle.bunnei6-90/+54
2022-03-25hle: nvflinger: buffer_queue_core: Declare default dtor.bunnei2-0/+3
2022-03-25hle: nvflinger: buffer_queue_producer: DequeueBuffer: Remove unnecessary lock.bunnei1-3/+1
2022-03-25hle: nvflinger: consumer_base: StillTracking: Should be const.bunnei2-2/+3
2022-03-25hle: nvflinger: graphic_buffer_producer: Remove unnecessary pragma pack.bunnei1-2/+0
2022-03-25hle: nvflinger: parcel: Reserve token size.bunnei1-1/+2
2022-03-25hle: nvflinger: buffer_queue_core: StillTracking: Take const reference.bunnei4-7/+7
2022-03-25hle: nvflinger: buffer_queue_core: Cleanup locking.bunnei1-2/+2
2022-03-25hle: nvflinger: Use std::chrono for present_ns.bunnei7-25/+30
2022-03-25hle: nvflinger: Migrate android namespace -> Service::android.bunnei35-79/+76
2022-03-25hle: nvflinger: BufferQueueProducer: Handle SetPreallocatedBuffer with empty buffer.bunnei1-7/+10
- Used by Naruto Ultimate Ninja Storm.
2022-03-25hle: vi: Integrate new NVFlinger and HosBinderDriverServer service.bunnei17-723/+286
2022-03-25hle: nvflinger: Add implementation for HosBinderDriverServer service.bunnei3-0/+75
2022-03-25hle: nvflinger: Add implementation for BufferQueueProducer class.bunnei3-2/+1021
2022-03-25hle: nvflinger: Add implementation for BufferQueueCore class.bunnei3-0/+235
2022-03-25hle: nvflinger: Add implementation for BufferQueueConsumer class.bunnei3-0/+263
2022-03-25hle: nvflinger: Add implementation for QueueBufferInput and QueueBufferOutput structs.bunnei3-0/+100
2022-03-25hle: nvflinger: Add implementation for BufferItemConsumer class.bunnei3-0/+87
2022-03-25hle: nvflinger: Add implementation for ConsumerBase class.bunnei3-0/+190
2022-03-25hle: nvflinger: Add implementation for BufferSlot class.bunnei2-0/+40
2022-03-25hle: nvflinger: Add implementation for BufferItem class.bunnei2-0/+47
2022-03-25hle: nvflinger: Move implementation for Parcel to its own header.bunnei2-0/+172
2022-03-25hle: nvflinger: Add android buffer queue definitions to its own header.bunnei2-0/+22
2022-03-25hle: nvflinger: Add IBinder interface.bunnei2-0/+43
2022-03-25hle: nvflinger: Add IConsumerListener interface.bunnei2-0/+27
2022-03-25hle: nvflinger: Add ProducerListener interface.bunnei2-0/+17
2022-03-25hle: nvflinger: Add android window enumerations to its own header.bunnei2-0/+54
2022-03-25hle: nvflinger: Add android Status flags to its own header.bunnei1-0/+28
2022-03-25hle: nvflinger: Move BufferTransformFlags to its own header.bunnei4-18/+29
2022-03-25hle: nvdrv: Rename Fence to NvFence to avoid naming conflicts.bunnei4-17/+13
2022-03-25hle: nvflinger: Move PixelFormat to its own header.bunnei11-33/+50
2022-03-25hle: nvflinger: Add implementation for GraphicBuffer class.bunnei2-0/+101
2022-03-25hle: nvflinger: Add implementation for Fence class.bunnei2-0/+34
2022-03-25hle: nvflinger: Add implementation for Rect class.bunnei2-0/+76
2022-03-25common: logging: Add a logger for NVFlinger.bunnei2-0/+2
2022-03-25Garbage Collection: Final tuning.Fernando Sahmkow6-24/+36
2022-03-25Buffer Cache: Tune to the levels of the new GC.Fernando Sahmkow6-6/+78
2022-03-25Garbage Collection: Redesign the algorithm to do a better use of memory.Fernando Sahmkow13-32/+156
2022-03-24configure_debug: Fix typolat9nq1-2/+2
I thought I removed the double-asterisks in db637b5a4c02772eb827ed01a6ecb430e4b65daa but I am apparently mistaken. This corrects that. While we're at it, capitalize `All` in the previous setting.
2022-03-24Vulkan: Use 3D helpers for MSAA scaling on NV drivers 510+ameerj3-7/+8
Nvidia Vulkan drivers 510+ crash when blitting MSAA images. Fall-back to 3D scale helpers for MSAA image scaling.
2022-03-24buffer_cache: reset cached write bits after flushing invalidationsLiam1-1/+2
2022-03-23dead_code_elimination_pass: Remove unreachable Phi argumentsameerj3-0/+36
2022-03-23Add include to fix compilingShoegzer1-0/+1
2022-03-23Revert "dynarmic: Reduce size of code caches"bunnei2-4/+4
2022-03-22Include <bit> header when std::count{r,l}_zero is usedBilly Laws3-0/+4
Needed for compilation with older libc++ releases
2022-03-22shader_recompiler/dead_code_elimination: Add DeadBranchElimination passameerj1-9/+62
This adds a pass to eliminate if(false) branches within the shader code
2022-03-22applets/swkbd: Split software keyboard initializationMorph2-160/+349
Since the CalcArg struct has been updated with a new size and fields, we have to split the initialization of the keyboard into multiple functions. This also adds support for parsing the new CalcArg struct used by updated versions of Monster Hunter Rise.
2022-03-22applets/swkbd: Add new inline software keyboard typesMorph1-6/+66
These were added in newer firmware versions.
2022-03-22applets/mii: Remove unused includeMorph1-1/+0
2022-03-22applets/mii: Remove frontend parametersMorph2-17/+4
These are unused for now as we do not support a frontend implementation.
2022-03-22applets/mii: Cleanup MiiEdit applet implementationMorph2-44/+85
This also enables proper support for MiiEdit applets which are used in games with firmware versions prior to 10.2.0 by handling the 2 different versions of applet inputs and outputs.
2022-03-22applets/mii: Cleanup MiiEdit applet typesMorph1-23/+44
2022-03-22applets/mii: Move MiiEdit applet types into its own fileMorph4-54/+70
2022-03-22service: Move mii enums and structs into its own fileMorph7-308/+312
Moves these into types.h, since other files also make use of these types.
2022-03-22applets: Rename Mii to MiiEditMorph8-47/+49
2022-03-22qt_web_browser: Add missing includesameerj1-0/+3
2022-03-22input_common: Map sticks correctly when mapped sidewaysNarr the Reg10-0/+127
2022-03-22codec: Plug GPU decoder memory leakameerj1-0/+2
2022-03-22codec: Disable HW_FRAMES method check on Windowsameerj1-14/+19
It was reported that this method causes crashes on certain Linux decoding backends, hence the check to avoid it. This subsequently caused Windows GPU decoders to never be selected and always fall back to CPU decoding, disable the check on Windows for now.
2022-03-20BufferCache: Find direction of the stream buffer increase.Fernando Sahmkow1-6/+14
2022-03-20general: Fix clang/gcc build errorsameerj12-4/+17
2022-03-20yuzu_cmd: Reduce unused includesameerj5-9/+0
2022-03-20yuzu: Reduce unused includesameerj45-104/+5
2022-03-20web_service: Reduce unused includesameerj1-1/+0
2022-03-20input_common: Reduce unused includesameerj4-4/+0
2022-03-20shader_recompiler: Reduce unused includesameerj69-106/+7
2022-03-19common: Reduce unused includesameerj30-32/+8
2022-03-19video_core: Reduce unused includesameerj75-139/+12
2022-03-19common: Reduce unused includesameerj8-12/+0
2022-03-19core: Reduce unused includesameerj38-54/+8
2022-03-18Address review commentsLiam1-1/+1
2022-03-18shader_recompiler/EXIT: skip render targets with no outputsLiam2-0/+8
2022-03-18general: Reduce core.h includesameerj8-12/+23
2022-03-18KHandleTable: Optimize table entry layoutMorph2-30/+12
Since the handle type is not being used, we can reduce the amount of space each entry takes up by 4 bytes.
2022-03-18shader_recompiler/EXIT: increment output register on failed enable testLiam1-0/+1
2022-03-18vk_texture_cache: Do not reinterpret DepthStencil source imagesameerj1-5/+0
Fixes star pointer interactions in Super Mario Galaxy on some drivers, notably Nvidia. Co-Authored-By: Fernando S. <1731197+fernandos27@users.noreply.github.com>
2022-03-18yuzu qt: Save disable_web_applet settinglat9nq4-3/+6
The web applet causes multiple issues with the rest of the application. Disable it by default and add a debug option to re-enable it until a proper solution can be found.
2022-03-17main: Update Disable Web Applet warninglat9nq1-3/+2
2022-03-17configure_debug: Add option to set disable_web_appletlat9nq2-42/+57
Allow the user to configure the web applet usage ahead of booting the application.
2022-03-17yuzu: Move disable_web_applet to UISettingslat9nq3-5/+3
2022-03-17Address review commentsLiam4-52/+36
2022-03-17shader_recompiler: Use functions for indirect const buffer accessesLiam5-39/+94
2022-03-17Address review commentsLiam1-16/+15
2022-03-16Address review commentsLiam2-2/+2
2022-03-16shader_recompiler: Implement LDC.IS address modeLiam1-2/+12
2022-03-16Vulkan: convert S8D24 <-> ABGR8Liam5-2/+41
2022-03-15bsd: Allow inexact match for address length in AcceptImplValeri1-2/+2
Minecraft passes in zero for length, but this should account for all possible cases
2022-03-15emu_window_sdl2: Set window size to display dimensions for exclusive fullscreenlat9nq1-6/+7
Since SDL2 does not automatically resize the canvas when entering fullscreen mode, resize the window to desktop display dimensions.
2022-03-15yuzu_cmd: Allow user to specify config file locationlat9nq3-10/+27
Adds an option `-c` or `--config` with one required argument that allows the user to specify to where the config file is located. Useful for scripts that run specific games with different preferences for settings.
2022-03-15default_ini: List use_extended_memory_layout in default config filelat9nq1-1/+5
2022-03-15core: hle: kernel: init_slab_setup: Move CalculateSlabHeapGapSize to global namespace.bunnei1-6/+6
2022-03-15core: hle: kernel: Allocate dummy threads on host thread storage.bunnei2-8/+6
- Fixes a crash where on subsequent boots, long-lived host threads would have their dummy threads freed.
2022-03-15core: hle: kernel: Downgrade dangling objects warning to debug.bunnei1-2/+2
- It is not impossible to leak kernel objects, so this is not really any issue anymore (albeit, still interesting).
2022-03-15core: hle: kernel: Make object list container global and ensure it is reset on each emulation session.bunnei1-7/+9
2022-03-15core: hle: kernel: Remove server session tracking.bunnei4-37/+1
- These are now allocated/managed by emulated memory, so we do not need to track and free them on shutdown.
2022-03-15core: hle: kernel: k_process: Remove handle table finalize, reset page table.bunnei1-3/+3
2022-03-15core: hle: kernel: k_process: Implement thread local storage accurately.bunnei3-111/+99
2022-03-15core: hle: kernel: k_page_table: Add implementations of MapPages, UnmapPages, and FindFreeArea for TLS.bunnei2-2/+141
2022-03-15core: hle: kernel: k_slab_heap: Refresh to use guest allocations.bunnei2-125/+107
2022-03-15core: hle: kernel: Update init_slab_heap, use device memory, and add KThreadLocalPage and KPageBuffer.bunnei4-55/+92
- Refreshes our slab initialization code to latest known behavior. - Moves all guest kernel slabs into emulated device memory. - Adds KThreadLocalPage and KPageBuffer, which we will use for accurate TLS management.
2022-03-15core: hle: kernel: k_page_buffer: Add KThreadLocalPage primitive.bunnei3-0/+179
2022-03-15core: hle: kernel: k_page_buffer: Add KPageBuffer primitive.bunnei2-0/+35
2022-03-15core: hle: kernel: k_thread: Ensure host Fiber is freed.bunnei1-0/+3
2022-03-15core: hle: kernel: k_server_session: Ensure SessionRequestManager is freed.bunnei1-0/+3
2022-03-15core: hle: service: kernel_helpers: Use system resource limit.bunnei1-10/+1
2022-03-15core: hle: service: sm: Fix KPort reference count.bunnei1-0/+2
2022-03-15core: hle: kernel: k_thread: Update to reflect tree changes.bunnei1-3/+3
2022-03-15core: hle: kernel: Use weak_ptr where possible for SessionRequestHandler and SessionRequestManager.bunnei7-14/+25
2022-03-15core: hle: kernel: k_memory_layout: Update kernel slab memory sizes.bunnei1-3/+3
2022-03-15core: hle: kernel: svc_types: Add ThreadLocalRegionSize.bunnei1-0/+2
2022-03-15core: hle: kernel: k_condition_variable: Update to reflect tree changes.bunnei1-1/+1
2022-03-15core: hle: kernel: k_address_arbiter: Update to reflect tree changes.bunnei1-3/+3
2022-03-15common: tree: Various updates.bunnei1-284/+341
2022-03-15common: intrusive_red_black_tree: Various updates.bunnei1-181/+210
2022-03-15shader: add support for const buffer indirect addressingLiam2-18/+68
2022-03-15maxwell_3d: Implement a safer CB data uploadameerj2-70/+12
This makes constant buffer uploads safer and more accurate by updating the GPU memory as soon as the CB Data method is invoked. The previous implementation was deferring the updates until a different maxwell 3d method was detected, then writing all CB data at once.
2022-03-14Maxwell3D: Link to override constant definition in nouveaubyte[]1-0/+2
2022-03-14Maxwell3D: restore original topology when topology overrides are disabledbyte[]1-0/+2
2022-03-14Maxwell3D: Use override constants from nouveauLiam2-2/+37
This fixes some incorrect rendering in Sunshine
2022-03-13dynarmic: Reduce size of code cachesMerry2-4/+4
2022-03-13Shader decompiler: do constant propgation before texture pass.Fernando Sahmkow1-2/+2
2022-03-13Shader decompiler: Fix storage tracking in deko3d.Fernando Sahmkow1-1/+2
2022-03-12config: Write dynarmic exclusive memory configsameerj1-0/+2
Ensures the configs are written and saved between boots
2022-03-12rescaling_pass: Fix rescaling Color2DArray ImageFetch offsetsameerj1-2/+27
ImageFetch offsets for 2D array coordinates have a different composite size than the coordinates. The rescaling pass was not taking this into account. Fixes broken shaders when scaling is enabled in Astral Chain, and likely other titles.
2022-03-12emit_spirv, vk_compute_pass: Resolve VS2022 compiler errorsameerj2-2/+3
2022-03-12Maxwell3D: Restrict topology override effect to after the register is setLiam2-1/+5
2022-03-11cpu_detect: Add additional x86 flags and telemetryWunkolo4-29/+86
Adds detection of additional CPU flags to cpu_detect and additions to telemetry output. This is not exhaustive but guided by features that [dynarmic utilizes](https://github.com/merryhime/dynarmic/blob/bcfe377aaa5138af740e90af5be7a7dff7b62a52/src/dynarmic/backend/x64/host_feature.h#L12-L33) as well as features that are currently utilized but not reported to telemetry(invariant_tsc). This is intended to guide future optimizations. AVX512 in particular is broken up into its individual subsets and some other processor features such as [sha](https://en.wikipedia.org/wiki/Intel_SHA_extensions) and [gfni](https://en.wikipedia.org/wiki/AVX-512#GFNI) are added to have some forward-facing data-points. What used to be a single `CPU_Extension_x64_AVX512` telemetry field is also broken up into individual `CPU_Extension_x64_AVX512{F,VL,CD,...}` fields.
2022-03-11common/telemetry: Update `AddField` name type to `string_view`Wunkolo1-3/+4
Non-owning `string_view` is flexable and avoids some of the many redundant copies made over `std::string`
2022-03-11Maxwell3D: mark index buffers as dirty after updating countsLiam1-0/+2
2022-03-11TextureCacheRuntime: allow converting D24S8 to ABGR8Liam1-1/+2
I can't see how this would be useful, but Galaxy uses it.
2022-03-11Maxwell3D: read small-index draw and primitive topology override registersLiam2-2/+30
This allows Galaxy and Sunshine to render for the first time.
2022-03-10backend: Ensure backend_thread is destructed before message_queueMerry1-1/+1
Ensures that stop_token signals that stop has been requested before destruction of conditional_variable
2022-03-10cpu_detect: Revert `__cpuid{ex}` array-type argumentWunkolo1-6/+6
Restores compatibility with MSVC's `__cpuid` intrinsic.
2022-03-09cpu_detect: Add missing `lzcnt` detectionWunkolo1-0/+1
2022-03-09cpu_detect: Refactor cpu/manufacturer identificationWunkolo2-24/+38
Set the zero-enum value to Unknown Move the Manufacterer enum into the CPUCaps structure namespace Add "ParseManufacturer" utility-function Fix cpu/brand string buffer sizes(!)
2022-03-09cpu_detect: Update array-types to `span` and `array`Wunkolo1-11/+13
Update some uses of `int` into some more explicitly sized types as well
2022-03-09cpu_detect: Utilize `Bit<N>` utility functionWunkolo1-32/+20
2022-03-09cpu_detect: Compact capability fieldsWunkolo1-20/+21
As this structure gets more explicit, bools can be bitfields and small enums can use smaller types for their span of values.
2022-03-09bit_util: Add `bit` utility functionWunkolo1-0/+7
Extracts a singular bit, as a bool, from the specified compile-time index.
2022-03-09hle: service: ldr: Use deterministic addresses when mapping NROs.bunnei2-24/+62
- Instead of randomization, choose in-order addresses for where to map NROs into memory. - This results in predictable behavior when debugging and consistent behavior when reproducing issues.
2022-03-08shader_recompiler/LOP3: Use brute force python results within switch/case.Markus Wick2-52/+620
Thanks to @asLody for optimizing this function. This raised the focus that this function should be optimized more. The current table assumes that the host GPU is able to invert for free, so only AND,OR,XOR are accumulated in the performance metrik. Performance results: Instructions 0: 8 1: 30 2: 114 3: 80 4: 24 Latency 0: 8 1: 30 2: 194 3: 24
2022-03-08hle: kernel: KPageTable: Improve implementations of MapCodeMemory and UnmapCodeMemory.bunnei2-47/+116
- This makes these functions more accurate to the real HOS implementations. - Fixes memory access issues in Super Smash Bros. Ultimate that occur when un/mapping NROs.
2022-03-08video_core: Cancel Scoped's exit call on GPU failurelat9nq1-0/+1
When CreateRenderer fails, the GraphicsContext that was std::move'd into it is destroyed before the Scoped that was created to manage its currency. In that case, the GraphicsContext::Scoped will still call its destructor at the ending of the function. And because the context is destroyed, the Scoped will cause a crash as it attempts to call a destroyed object's DoneCurrent function. Since we know when the call would be invalid, call the Scoped's Cancel method. This prevents it from calling a method on a destroyed object.
2022-03-08emu_window: Create a way to Cancel the exit of a Scopedlat9nq1-1/+10
If a GraphicsContext is destroyed before its Scoped is destroyed, this causes a crash as the Scoped tries to call a method in the destroyed context on exit. Add a way to Cancel the call when we know that calling the GraphicsContext will not work.
2022-03-07core: Don't shutdown a null GPUlat9nq1-1/+3
When CreateGPU fails, yuzu would try and shutdown the GPU instance regardless of whether any instance was actually created. Check for nullptr before calling its methods to prevent a crash.
2022-03-07MaxwellDMA: Implement semaphore operationsLody2-1/+21
2022-03-06gl_graphics_pipeline: Improve shader builder synchronization using fences (#7969)Ameer J2-21/+32
* gl_graphics_pipeline: Improve shader builder synchronization Make use of GLsync objects to ensure better synchronization between shader builder threads and the main context * gl_graphics_pipeline: Make built_fence access threadsafe * gl_graphics_pipeline: Use GLsync objects only when building in parallel * gl_graphics_pipeline: Replace GetSync calls with non-blocking waits The spec states that a ClientWait on a Fence object ensures the changes propagate to the calling context
2022-03-03loader: log the type of mismatching file-extensionBytesGalore1-1/+2
2022-03-03host_memory: Fix fastmem crashes in debug buildsMorph1-2/+2
It is possible for virtual_offset to not be 0 when the iterator is at the beginning, and thus, std::prev(it) may be evaluated, leading to a crash in debug mode. Co-Authored-By: Fernando S. <1731197+FernandoS27@users.noreply.github.com>
2022-03-01applet: mii: Simple implementation of mii appletgerman778-5/+272
2022-02-28hle: kernel: Re-create memory layout at initialization.bunnei1-41/+43
- As this can only be derived once.
2022-02-28hle: kernel: Remove unused pool locals.bunnei1-2/+0
2022-02-28hle: kernel: k_memory_manager: Rework for latest kernel behavior.bunnei6-173/+548
- Updates the KMemoryManager implementation against latest documentation. - Reworks KMemoryLayout to be accessed throughout the kernel. - Fixes an issue with pool sizes being incorrectly reported.
2022-02-28logging: Convert `backend_thread` into an `std::jthread`Wunkolo1-13/+5
Was getting an unhandled `invalid_argument` [exception](https://en.cppreference.com/w/cpp/thread/thread/join) during shutdown on my linux machine. This removes the need for a `StopBackendThread` function entirely since `jthread` [automatically handles both checking if the thread is joinable and stopping the token before attempting to join](https://en.cppreference.com/w/cpp/thread/jthread/~jthread) in the case that `StartBackendThread` was never called.
2022-02-27gl_fence_manager: Minor optimization to signal queryingameerj1-2/+1
Per the spec, bufSize is the number of integers that will be written, in this case, 1. Also, the length argument is optional if the information of the number of elements written is not needed.
2022-02-27dynarmic: Inline exclusive memory accessesmerry16-7/+113
Inlines implementation of exclusive instructions into JITted code, improving performance of applications relying heavily on these instructions. We also fastmem these instructions for additional speed, with support for appropriate recompilation on fastmem failure. An unsafe optimization to disable the intercore global_monitor is also provided, should one wish to rely solely on cmpxchg semantics for safety. See also: merryhime/dynarmic#664
2022-02-27hle: kernel: k_page_heap: GetPhysicalAddr can be const.bunnei1-2/+1
2022-02-27hle: kernel: k_page_heap: Remove superfluous consexpr.bunnei2-4/+4
2022-02-27hle: kernel: k_page_heap: Various updates and improvements.bunnei2-155/+192
- KPageHeap tracks physical addresses, not virtual addresses. - Various updates and improvements to match latest documentation for this type.
2022-02-27hle: kernel: Add initial_process.h header.bunnei2-0/+24
2022-02-27hle: kernel: board: nx: Add k_memory_layout.h header.bunnei2-0/+14
2022-02-27hle: kernel: k_system_control: Add GetRealMemorySize and update GetKernelPhysicalBaseAddress.bunnei2-1/+12
2022-02-27hle: kernel: k_memory_layout: Add GetPhysicalLinearRegion.bunnei1-0/+4
2022-02-27hle: kernel: k_memory_region_types: Update for new regions.bunnei1-1/+9
2022-02-26vulkan_device: Blacklist RADV on RDNA2 from VK_EXT_vertex_input_dynamic_stateAmeer J1-4/+21
RDNA2 devices running under the RADV driver were crashing when VK_EXT_vertex_input_dynamic_state was enabled. Blacklisting these devices until a proper fix is established.
2022-02-25maxwell_to_(gl/vk): Add 11_11_10 float vertex formatMorph2-0/+4
- Used by パワプロクンポケットR
2022-02-24vk_blit_screen: Add missing format bgra8Lody1-0/+2
2022-02-22service: am: Update enum names to match documentationNarr the Reg4-16/+51
2022-02-21hle: kernel: KSystemControl: Use 6GB memory layout when "use_extended_memory_layout" setting is enabled.bunnei1-20/+4
- This uses a larger 6GB DRAM memory layout, which is useful for some mods that require more memory.
2022-02-21core: device_memory: Use memory size reported by KSystemControl.bunnei3-7/+5
- That way, we can consolidate the memory layout to one place.
2022-02-21settings: Add a new "use_extended_memory_layout" setting.bunnei7-0/+22
- This will be used to enable emulation of a larger memory arrangement.
2022-02-21core: hle: kernel: Remove resource limit hack for PhysicalMemory.bunnei1-7/+0
- With prior changes, we now report the correct amount of physical memory available to the emulated process.
2022-02-21core: hle: kernel: KProcess: Pass in KResourceLimit on process creation.bunnei4-9/+30
- This allows us to have a resource limit per process, rather than use the global system resource limit.
2022-02-21core: hle: kernel: KEvent: Pass in owner KProcess on event creation.bunnei4-12/+8
- This is necessary to ensure resource limits are freed from the right process.
2022-02-21core: hle: kernel: KResourceLimit: Add a helper function for creating a KResourceLimit for a process.bunnei2-0/+22
2022-02-21vulkan_device: fix missing format in ANVvoidanix3-2/+21
Currently Mesa's ANV driver does not support VK_FORMAT_B5G6R5_UNORM_PACK16, implement an alternative for it.
2022-02-20yuzu: Remove amiibos on drag and dropgerman771-0/+10
2022-02-19fixup! core: hle: kernel: KPageTable: Improve Un/MapPhysicalMemory.bunnei3-38/+18
2022-02-19core: hle: kernel: KPageTable: Fix UnmapPages.bunnei1-3/+2
- Fixes a logic bug in KPageTable::UnmapPages.
2022-02-19core: hle: kernel: KPageTable: Improve Un/MapPhysicalMemory.bunnei3-113/+508
- Improves the implementations of MapPhysicalMemory and UnmapPhysicalMemory to more closely reflect latest HOS.
2022-02-17common: Add NullVisitor default constructorWunkolo1-0/+3
Addresses https://github.com/yuzu-emu/yuzu/issues/7881 to fix linux builds. `YUZU_NON_COPYABLE` deletes the `T(const T&)` constructor which will cause the implicitly defined default ctor/dtor to no-longer generate.
2022-02-15yuzu: config: Fix mapping issues with the enter keyNarr the Reg2-0/+6
2022-02-15Dump patched exefs rather than baseKelebek11-9/+9
2022-02-15kernel: svc: Add OutputDebugString32, CreateCodeMemory32, ControlCodeMemory32Sergi Granell2-4/+40
Very straightforward, they are just wrappers to the 64-bit version of the SVC.
2022-02-14common: fs_util: Add buffer to string view utility functionsMorph2-0/+26
These functions allow to construct a string view from an input buffer, avoiding the copy done by the non string view counterparts. However, callers must be cognizant of the viewed buffer's lifetime to avoid a use-after-free.
2022-02-14debugger: console: Set console output codepage to UTF-8Morph1-0/+1
This allows the console to display multi-byte encoded characters.
2022-02-13nfp: Allow files without password datagerman772-9/+24
2022-02-13program_metadata: Unpack FileAccessHeader and FileAccessControllat9nq2-15/+51
Avoids a reference binding to a misaligned addresses. Unpacking one requires unpacking the other, otherwise there'll be a misaligned address on the leftover one.
2022-02-12hid: Stub IsUsbFullKeyControllerEnabledlat9nq2-1/+12
Used by Splatoon 2, when opening the inventory from a LAN battle lobby. Reference: https://switchbrew.org/wiki/HID_services
2022-02-11audio_core: Update current process revisionlat9nq1-1/+3
Update CURRENT_PROCESS_REVISION from REV9 to REVA. Used by Nintendo Entertainment System - Nintendo Switch Online 6.0.0 and Super Nintendo Entertainment System - Nintendo Switch Online 3.0.0.
2022-02-11service/mnpp: Stub mnpp_appNarr the Reg6-0/+71
Used in Super Nintendo Entertainment System™ - Nintendo Switch Online
2022-02-10common: uuid: Use sizeof(u64) instead of 8 in Hash()Morph1-5/+5
2022-02-10nfp: Separate nfc tag from amiibo dataNarr the Reg3-44/+76
2022-02-09svc: Set unique names for function tablesNarr the Reg1-77/+77
2022-02-09hle: kernel: KCodeMemory: Remove unused QueryMemory.bunnei1-1/+0
2022-02-09hle: kernel: KCodeMemory: Correct m_page_group number of pages.bunnei1-2/+3
Credits to @xerpi for finding this issue and pointing it out on #7519.
2022-02-09nfp: Address compiler issuesgerman772-27/+27
2022-02-08nfp: Validate amiibo filesNarr the Reg2-41/+145
2022-02-08yuzu: Allow to open and remove the amiibogerman773-5/+24
2022-02-08nfp: Improve implementationgerman774-189/+672
2022-02-07nfp: Move IUser class to header and add missing enum and structsgerman772-257/+299
2022-02-07nfp: Sort functions by command numbergerman771-79/+79
2022-02-07yuzu: Mute audio when in backgroundgerman776-4/+27
2022-02-07yuzu: Add docked, GPU accuracy and adapting filter hotkeysgerman774-58/+68
2022-02-07yuzu: Add auto center on right clickgerman773-4/+30
2022-02-07input_common: Remove battery duplicated struct and update every button pressgerman776-34/+27
2022-02-05common: uuid: Return an invalid UUID if conversion from string failsMorph1-14/+39
The string constructor of UUID states: Should the input string not meet the above requirements, an assert will be triggered and an invalid UUID is set instead.
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph41-598/+415
This completes the removal of the old UUID implementation.
2022-02-05profile: Migrate to the new UUID implementationMorph14-127/+131
2022-02-05common: uuid: Add AsU128()Morph2-0/+9
This copies the internal bytes of the UUID into a u128 for backwards compatibility. This should not be used.
2022-02-05hle: ipc_helpers: Ignore -Wclass-memaccessMorph1-0/+8
This warning is triggered by GCC when copying into non-trivially default constructible types, as it uses the more restrictive std::is_trivial (which includes std::is_trivially_default_constructible) to determine whether memcpy is safe instead of std::is_trivially_copyable.
2022-02-05service: Migrate to the new UUID implementationMorph9-45/+36
2022-02-05input/hid: Migrate to the new UUID implementationMorph16-56/+57
2022-02-05common: Implement NewUUIDMorph3-0/+322
This is a fixed and revised implementation of UUID that uses an array of bytes as its internal representation of a UUID instead of a u128 (which was an array of 2 u64s). In addition to this, the generation of RFC 4122 Version 4 compliant UUIDs is also implemented.
2022-02-05config: Support motion inputslat9nq1-8/+28
Motion inputs were not being read in by the config when yuzu-cmd boots up. This adds support for those. While we're at it, make a reference to the current player controls to improve readability. Also updates the if statements in the Analog and Button loops with curly braces to keep the style consistent.
2022-02-04main: Always remove the frameless window flag when restoring UI stateMorph1-0/+2
For unknown reasons, this flag may persist after the application has been closed. Removing this flag when restoring the UI state ensures that a frameless window will not be shown on startup.
2022-02-04input_common: Remove unused core includeMorph1-1/+0
2022-02-04service: pm: Implement AtmosphereGetProcessInfotech-ticks2-1/+46
2022-02-02yuzu: config: Vibrate the controller while configuring vibration strengthNarr the Reg5-8/+95
2022-02-02texture_cache: Ensure has_blacklisted is always initializedLioncash1-1/+1
Resolves a -Wmaybe_uninitialized warning
2022-02-02texture_cache: Remove dead code within SynchronizeAliasesLioncash1-13/+1
Since these were being copied by value, none of the changes applied in the loop would be reflected. However, from the looks of it, this would already be applied within CopyImage() anyways, so this can be removed.
2022-02-02texture_cache: Amend unintended bitwise OR in SynchronizeAliasesLioncash1-1/+1
2022-02-02yuzu: ui: Improve battery symbolsNarr the Reg4-39/+59
2022-02-02common_types: Remove NonCopyable structLioncash1-10/+0
Now that we're moved over to the YUZU_ defines, we can get rid of this struct.
2022-02-02general: Replace NonCopyable struct with equivalentsLioncash12-129/+219
2022-02-02general: Move deleted copy/move constructor/assignment operators to public interfaceLioncash7-11/+9
This allows for better compiler errors, where the compiler will state a copy or move couldn't occur due to the relevant function being deleted. Previously a compiler would warn about the relevant function not being accessible (which, while true, isn't as informative as it could be).
2022-02-02hle: kernel: KPageTable: Migrate locks to KScopedLightLock.bunnei2-34/+46
- More accurately reflects real kernel behavior by using guest locks.
2022-02-02configure_filesystem: Add missing changeEvent() overrideLioncash2-0/+10
This allows the dialog to be retranslated during runtime if the language is changed.
2022-02-02configure_filesystem: Normalize member function casingLioncash3-8/+8
All other dialog types we have use CamelCase naming.
2022-02-02yuzu: Disable auto repeat on hotkeys againNarr the Reg1-0/+1
2022-02-01configure_motion_touch: Use functor versions of invokeMethodLioncash1-18/+20
Same behavior, but ensures that the functions we're calling exist, since they can be checked at compile-time.
2022-02-01configure_input_player: Eliminate variable shadowingLioncash1-4/+5
2022-02-01configure_input_player: std::move input setters in HandleClickLioncash1-1/+1
2022-02-01configure_input_player: Avoid unnecessary ParamPackage copiesLioncash1-6/+6
Avoids churning allocations.
2022-02-01yuzu/game_list: Use non-deprecated version of QString's split() functionLioncash1-1/+1
The previous overload of split() was deprecated in 5.14.
2022-02-01common/file: Remove [[nodiscard]] from Open()Lioncash1-3/+2
Since this has a void return value, there's nothing that can actually be used.
2022-02-01video_core/shader_cache: Remove unused algorithm includeLioncash1-1/+0
2022-02-01video_core/shader_cache: Take std::span in RemoveShadersFromStorage()Lioncash2-3/+3
Same behavior, but without the need to move into the function to avoid an allocation.
2022-02-01svc: Add 32 bit SynchronizePreemptionStateNarr the Reg1-1/+1
Used by Espgaluda II
2022-02-01Rasterizer: Refactor inlineToMemory.Fernando Sahmkow9-15/+16
2022-01-31Vulkan: Fix Scheduler Chunks when their FuncType is 0.Fernando Sahmkow2-4/+6
2022-01-31input_common: Use attributes for analog range modifiersgerman771-4/+26
2022-01-30common: wall_clock: Check precision against the emulated CPU and CNTFRQMorph2-8/+12
In addition to requiring nanosecond precision, using the native clock requires that the hardware TSC has a precision greater than the emulated CPU and its clock counter.
2022-01-30common: wall_clock: Utilize constants for ms, us, and ns ratiosMorph3-5/+9
2022-01-30input_common: Add home and hard touch press buttons to UDP controllersgerman774-3/+22
2022-01-30emit_glsl_atomic: Implement 32x2 fallback atomic opsameerj1-9/+55
2022-01-30lower_int64_to_int32: Add 64-bit atomic fallbacksameerj3-11/+76
2022-01-30shaders: Add U64->U32x2 Atomic fallback functionsameerj9-1/+469
2022-01-29GPU: Improve syncing.Fernando Sahmkow1-3/+10
2022-01-29Rasterizer: Implement Inline2Memory Acceleration.Fernando Sahmkow14-6/+122
2022-01-29Inline2Memory: Flush before writting buffer.Fernando Sahmkow2-2/+3
2022-01-29spirv_atomic: Define U32x2 storage buffers for 64-bit storage atomicsameerj2-3/+3
Some drivers do not support 64-bit atomics, and fallback to atomically modifying U32x2 vectors. This change ensures that U32x2 storage vectors are defined in the spir-v shader when 64-bit atomics are used. Fixes a hang on some devices, notably Intel GPUs, when booting Pokemon Legends Arceus
2022-01-28emit_spirv: Add Xfb execution mode when transform feedback is usedameerj1-3/+9
Fixes Transform Feedback on Vulkan AMD drivers.
2022-01-28hotkeys: Don't translate hotkey buttonsgerman771-16/+16
2022-01-28wall_clock: use standard wall clock if rtsc frequency is too lowgerman771-1/+3
2022-01-27buffer_cache: Reduce stream buffer allocations when expanding from the leftameerj1-0/+2
The existing stream buffer optimization accounts for size increases at the end of the allocated buffer. This adds the same optimization, increasing the size from the beginning of the buffer as well to reduce buffer allocations when expanding the same buffer from the left.
2022-01-27hle: kernel: KScheduler: Fix deadlock with core waiting for a thread lock that has migrated.bunnei2-23/+24
- Previously, it was possible for a thread migration to occur from core A to core B. - Next, core B waits on a guest lock that must be released by a thread queued for core A. - Meanwhile, core A is still waiting on the core B's current thread lock - resulting in a deadlock. - Fix this by try-locking the thread lock. - Fixes softlocks in FF8 and Pokemon Legends Arceus.
2022-01-27video_minimum_maximum: Implement src operand selectorsameerj1-12/+6
Used by Pokemon Legends: Arceus
2022-01-27input_common: Add DS5 to HD rumble listNarr the Reg1-2/+3
2022-01-26common/xbyak_api: Make BuildRegSet() constexprLioncash2-9/+9
This allows us to eliminate any static constructors that would have been emitted due to the function not being constexpr.
2022-01-25video_core/macro: Add missing <cstring> headerLioncash1-2/+3
Necessary since memcpy is used.
2022-01-25video_core/macro_interpreter: Move impl class to the cpp fileLioncash2-84/+86
Keeps the implementation hidden from the intended API and lessens the header dependencies on the interpreter's header.
2022-01-25video_core/macro_hle: Return unique_ptr directly from GetHLEProgram()Lioncash3-7/+7
Same behavior, but less code and header dependencies.
2022-01-25video_core/macro: Remove unused parameter from Execute()Lioncash3-4/+3
Simplifies the function interface.
2022-01-25video_core/macro_jit_x64: Remove unused impl class memberLioncash1-1/+0
Reduces the size of the impl class a tiny bit.
2022-01-25video_core/macro_jit_x64: Decouple PersistentCallerSavedRegs() from implLioncash1-5/+4
This doesn't depend on class state and can just be a regular function.
2022-01-25video_core/macro_jit_x64: Move impl class into cpp fileLioncash2-87/+86
Keeps the implementation internalized and also reduces API-facing header dependencies. Notably, this fully internalizes all of the xbyak externals.
2022-01-25video_core/macro_hle: Move impl class into cpp fileLioncash2-27/+19
Given it's intended to be an internal implementation class, we can move it into the cpp file to ensure that. This also lets us move some header dependencies into the cpp file as well.
2022-01-25gpu: Tidy up forward declarationsLioncash1-10/+0
Over time a few forward declarations became unnecessary, so we can remove these to tidy up the header a little bit.
2022-01-25gpu: Remove obsoleted CDMAPusher() accessorsLioncash1-6/+0
These were obsoleted in 2c47f8aa1886522898b5b3a73185b5662be3e9f3 but were accidentally overlooked.
2022-01-25vk_fsr: Replace comma operator with semicolonLioncash1-1/+1
Generally, we should be ending statements with a semicolon not a comma Resolves a clang diagnostic.
2022-01-25shader_recompiler: Remove unnecessary [[nodiscard]]Lioncash1-2/+1
Since ConvertLegacyToGeneric has a void return value, there's nothing that is actually returned by the function.
2022-01-24input_common/input_engine: Ensure PadIdentifier UUIDs have a valid initial stateLioncash1-1/+1
The default constructor of a UUID instance doesn't initialize the underlying array.
2022-01-24input_common/input_mapping: Simplify UUID validity checksLioncash1-3/+3
Makes the checks a little more intuitive to read and doesn't construct an extra UUID instance
2022-01-24input_common/input_mapping: Add missing includesLioncash2-1/+6
Ensures that the class always sees the types it needs.
2022-01-24input_common/input_mapping: Remove const from return valueLioncash4-4/+4
Top-level const on a return by value can inhibit move semantics, and is unnecessary.
2022-01-24input_common/input_mapping: Default constructorLioncash1-1/+1
2022-01-24input_common/main: Pass MappingData by const reference in callbacksLioncash2-3/+3
Avoids creating unnecessary 168 byte copies per callback invocation.
2022-01-24input_common/udp_client: Replace deprecated from_string()/to_ulong() functionsLioncash1-2/+2
These are deprecated and make_address variants and to_uint() should be used instead.
2022-01-24input_common/udp_client: Prevent unnecessary string copiesLioncash2-4/+4
We can also remove some redundant const on the return values, since these don't do anything
2022-01-24kernel/k_affinity_mask: Remove duplicated assertLioncash1-2/+0
This is already checked inside GetCoreBit()
2022-01-24input_common: Add option to configure gyro thresholdgerman774-6/+24
2022-01-24yuzu: Add setting to disable controller navigationgerman776-3/+28
2022-01-23Update FSR to 1.0.2Moonlacer1-1/+1
Updates yuzu's FSR implementation to 1.0.2
2022-01-23hle: kernel: KThread: Improve Increment/Decrement RunningThreadCount.bunnei3-24/+21
- Previously implementation was incorrect, and would occasionally underflow.
2022-01-23core: hle: kernel: KPageTable: Various improvements to MapPages and UnmapPages.bunnei1-22/+25
2022-01-23core: hle: kernel: KPageTable: MapProcessCode: Various cleanup.bunnei1-11/+12
2022-01-23core: hle: kernel: KPageTable: ReserveTransferMemory: Various cleanup.bunnei1-6/+6
2022-01-23core: hle: kernel: KPageTable: ResetTransferMemory: Various cleanup.bunnei1-6/+5
2022-01-23core: hle: kernel: KPageTable: SetMemoryAttribute: Various cleanup.bunnei1-2/+3
2022-01-22core: hle: kernel: KPageTable: Assert valid address on GetPhysicalAddr.bunnei1-1/+3
2022-01-22core: hle: kernel: KPageTable: Operate: Assert lock ownership.bunnei1-2/+2
2022-01-22core: hle: kernel: KPageTable: SetHeapSize: Cleanup & take physical memory lock.bunnei1-4/+7
2022-01-22core: hle: kernel: Refactor Un/MapPhysicalMemory to remove unnecessary methods.bunnei2-50/+39
2022-01-22core: hle: kernel: Rename Un/Map to Un/MapMeory.bunnei3-7/+6
2022-01-22yuzu: Add modifiers for keyboardNarr the Reg1-25/+34
2022-01-22hle: kernel: KThread: Ensure host (dummy) threads block on locking.bunnei4-0/+89
- But do not enter the priority queue, as otherwise they will be scheduled. - Allows dummy threads to use guest synchronization primitives.
2022-01-21service/wlan: Update function tablesLioncash1-1/+1
2022-01-21service/usb: Update function tablesLioncash1-27/+15
2022-01-21service/set: Update function tablesLioncash1-0/+2
2022-01-21service/ns: Update function tablesLioncash1-0/+6
2022-01-21service/nim: Update unknown function table entriesLioncash1-0/+6
2022-01-21service/friend: Update unknown function table entriesLioncash1-6/+6
2022-01-21service/filsystem: Update fsp-srv function tableLioncash1-0/+3
2022-01-21service/btm: Update function tablesLioncash1-0/+30
2022-01-21service/audio: Update audctl unknown function namesLioncash1-8/+8
2022-01-21service/am: Update omm function tablesLioncash1-0/+1
2022-01-21service/acc: Update unknown function namesLioncash2-4/+4
Switchbrew has the function names now.
2022-01-21Use Default Colorful theme by default outside of Windowsv19932-6/+11
On OSes with system-wide theming this allows yuzu to follow system style, regardless of its exact coloration, working well with both light and dark system themes. Dark /Colorful, on the other hand, forces dark theme regardless of user preferences set in system settings, making for a poor default. Use Colorful variation to keep in line with icon style of patron-voted Dark Colorful.
2022-01-21service: apm: Stub ISession SetCpuOverclockEnabledMorph1-1/+13
Since we don't currently support CPU overclocking within the emulated system, this can be stubbed for now, like APM IsCpuOverclockEnabled. - Used by Gravity Rider Zero
2022-01-21hle: kernel: Remove redundant tracking of dummy threads.bunnei1-9/+3
- These are already tracked by kernel's registered_objects member.
2022-01-21hle: kernel: KThread: DummyThread can be waited, ensure wait_queue is not nullptr.bunnei1-6/+6
2022-01-21hle: kernel: KThread: Decrease DummyThread priority to ensure it is never scheduled.bunnei3-2/+5
2022-01-21hle: kernel: service_thread: Ensure dummy thread is closed & destroyed on thread exit.bunnei1-0/+5
2022-01-21hle: kernel: KServerSession: Remove hack for CompleteSyncRequest.bunnei1-11/+0
- This does not appear to be necessary anymore.
2022-01-21hle: kernel: KServerSession: Simplify CompleteSyncRequest EndWait.bunnei2-12/+2
- 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-21hle: kernel: KThread: Ensure dummy threads never call EndWait.bunnei1-0/+5
- These are only used by host threads for locking and will never have a wait_queue.
2022-01-21hle: kernel: KScheduler: Ensure dummy threads are never scheduled.bunnei1-0/+5
- These are only used by host threads for locking.
2022-01-21hle: kernel: KThread: Rename thread_type_for_debugging -> thread_type.bunnei3-6/+6
- This will be used to ensure that we do not schedule dummy threads.
2022-01-20video_core: constify AVCodec for ffmpeg >= 5.0Jan Beich1-1/+1
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-19service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClampgerman771-1/+2
2022-01-19vulkan_device: Fix sType for VkPhysicalDeviceShaderAtomicInt64FeaturesGeorg Lehmann1-1/+1
2022-01-17input_common: Report battery for UDP controllersNarr the Reg2-0/+25
2022-01-17shader_recompiler: fix potential OOB accessv19932-6/+8
Found by static analysis with PVS-Studio. Original check wasn't actually checking for OOB and would segfault in case of it.
2022-01-17hle: remove no-op codeValeri1-2/+0
Found by static analysis with PVS-Studio. Nobody seems to really know what was it doing there.
2022-01-17input_common: nitpick about SetHatButton usageValeri1-1/+1
2022-01-17input_common: fix copy-paste errorValeri1-1/+1
Found by static analysis with PVS-Studio.
2022-01-17hid: fix std::transform callValeri1-1/+1
Found by static analysis with PVS-Studio.
2022-01-17uisettings: Add enumeration type for themesMorph2-3/+17
Eliminates the usage of a magic number to indicate the default index of the themes array,
2022-01-17config: Change default theme to Dark Colorfulgidoly1-2/+2
2022-01-17Correct assignment source for rotationsValeri1-1/+1
Found by static analysis with PVS-Studio
2022-01-17input_common: Reintroduce motion from mouse and use button namesgerman775-1/+64
2022-01-16astc_decoder: Combine FastReplicate functions to work around new NV driver bugameerj1-34/+46
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-16audio/stream: Adjust volume scale factorgerman771-2/+2
2022-01-16yuzu: Add volume up/down hotkeysgerman773-4/+16
2022-01-15Xbox controller default name nit pickgidoly1-2/+2
Discord User moon lacer pointed us that official name is 'Xbox' not 'XBox'
2022-01-15yuzu: Remove speed limit hotkeysgerman773-24/+2
2022-01-15hle: kernel: k_memory_manager: Clear pages on allocation & free.bunnei5-16/+34
- Heap pages should be zero'd. - Also explicitly passed along heap allocation option.
2022-01-15Change default name for ps controllersgidoly1-0/+6
Minor nitpick Code is from narr
2022-01-15core: hle: kernel: KThread: Integrate with KWorkerTask and implement DoWorkerTaskImpl.bunnei2-2/+28
- 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-15core: hle: kernel: KProcess: Integrate with KWorkerTask and add unimplemented DoWorkerTaskImpl.bunnei2-3/+9
2022-01-15core: hle: kernel: KThread: Replace Suspend with UpdateState & various updates.bunnei2-33/+26
- This makes our implementations of these more closely match HOS.
2022-01-15core: hle: kernel: Instantiate a kernel instance of KWorkerTaskManager.bunnei2-0/+18
2022-01-15core: hle: kernel: Add KWorkerTask and KWorkerTaskManager.bunnei4-0/+96
- These primitives are used to dispatch asynchronous kernel tasks from KThread and KProcess.
2022-01-15common: fiber: YieldTo: Avoid hard crash on nullptr previous_fiber.bunnei1-1/+4
- 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-15hle: kernel: Fix service_threads access to be thread safe V2.bunnei1-12/+11
- 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.
2022-01-14core/hid: Increment shake forceNarr the Reg1-1/+1
With the current settings 2p mode in pokemon let's go wasn't showing up. By making the shake more violent we can make it appear without any effort using the keyboard
2022-01-14hle: kernel: Fix service_threads access to be thread safe.bunnei1-7/+27
- CreateServiceThread and ReleaseServiceThread can be accessed by different threads, uses a lock to make this thread safe. - Fixes a rare crash in Pokemon Sword/Shield that can occur when a new service thread is being created while an old one is being destroyed.
2022-01-13service/hid: Decrease motion update rateNarr the Reg1-1/+2
Motion stops working in Mario Tennis in swing mode if the update rate is too fast even when HW it updates at the same speed. 10ms it's the minimum period that the game needs to start working again.
2022-01-12core/hid: Reduce gyro threshold even moreNarr the Reg1-1/+1
2022-01-12hle: kernel: k_page_table: Update SetProcessMemoryPermission.bunnei6-45/+68
2022-01-12hle: service: ldr: UnmapCodeMemory BSS only when set.bunnei1-3/+7
2022-01-12hle: kernel: k_page_table: ReadAndWrite -> UserReadWrite.bunnei3-18/+18
2022-01-12hle: kernel: k_page_table: Rename *ProcessCodeMemory -> *CodeMemory.bunnei4-20/+19
2022-01-12cmake: make tests optionalAlexandre Bouvier2-2/+5
2022-01-11common: bit_util: Add IsPow2 helper functionMorph1-0/+6
Makes use of std::has_single_bit() to check whether the value is a power of 2.
2022-01-10yuzu: main: Increase the open file limit on Windows to 8192Morph1-2/+2
This is a temporary solution for now to accommodate for mods containing more than 4096 files.
2022-01-10logging/log.h: move enum class formatter to a separate file ...liushuyu6-22/+32
... to common/logging/formatter.h
2022-01-09logging/log: use `underlying_type` instead of hardcoding typesliushuyu1-2/+4
2022-01-08core: hle: kernel: svc: Updates to SetMemoryAttribute and SetMemoryPermission.bunnei3-45/+46
2022-01-08input_common: Handle errors on TAS scriptsgerman771-7/+24
2022-01-08core: hle: kernel: k_page_table: Update CheckMemoryState.bunnei4-116/+166
2022-01-08logging: adapt to changes in fmt 8.1liushuyu3-7/+20
2022-01-07yuzu: Use pad parameter to choose the correct controllergerman772-9/+14
2022-01-07input_common: Fix udp motion not automapping to both sidesgerman771-8/+16
2022-01-07yuzu: Add controller hotkeysgerman7714-79/+580
2022-01-07core/hid: Add home and screenshot button supportgerman773-1/+46
2022-01-07core/hid: Set minimum gyro thresholdgerman771-0/+1
2022-01-07input_common: Use accelerometer data for mappinggerman771-2/+10
2022-01-05configure_per_game: Initialize tabs after loading custom configurationlat9nq1-15/+9
Changes tab initialization to happen after the configuration is loaded, which means that it no longer happens as member initializers in the ConfigurePerGame constructor. Removes the cluster of ??_tab->SetConfiguration's that I added earlier to get around this issue initially. Fixes a regression in #6774
2022-01-05video_core: Remove unnecesary maybe_unused flagNarr the Reg1-1/+1
2022-01-05glsl: Remove unreachable returnNarr the Reg1-1/+0
2022-01-04gpu: Add shut down method to synchronize threads before destructionameerj3-0/+15
2022-01-04ShaderDecompiler: Add a debug option to dump the game's shaders.Fernando Sahmkow8-1/+98
2022-01-04Revert "Merge pull request #7668 from ameerj/fence-stop-token"ameerj3-10/+15
This reverts commit e7733544779f2706d108682dd027d44e7fa5ff4b, reversing changes made to abbbdc2bc027ed7af236625ae8427a46df63f7e7.
2022-01-03gpu: Use std::stop_token in WaitFence for VSync threadameerj3-15/+10
Fixes a hang that may occur when stopping emulation and the VSync thread is blocked on the syncpoint condition variable.
2022-01-02core/hid: Add fallback to fullkey controllersgerman772-4/+36
2022-01-02controller_applet: Only populate supported controllersgerman772-53/+68
2022-01-02yuzu: Fix UI elements not updating correctlygerman771-2/+2
2022-01-01texture_cache/util: Fix s32 overflow when resolving overlapsameerj1-5/+5
2021-12-31video_core/memory_manager: Fixes for sparse memory managementameerj2-14/+12
2021-12-31video_core/memory_manager: Deduplicate Read/WriteBlockameerj2-47/+32
2021-12-31core: hle: kernel: Implement thread pinning.bunnei10-14/+140
- We largely had the mechanics in place for thread pinning, this change hooks these up. - Validated with tests https://github.com/Atmosphere-NX/Atmosphere/blob/master/tests/TestSvc/source/test_thread_pinning.cpp.
2021-12-30core/hid: Fix controller type validationgerman775-17/+23
2021-12-30glsl: Add boolean reference workaroundameerj6-2/+15
2021-12-30glsl_context_get_set: Add alternative cbuf type for broken driversameerj6-24/+35
some drivers have a bug bitwise converting floating point cbuf values to uint variables. This adds a workaround for these drivers to make all cbufs uint and convert to floating point as needed.
2021-12-30emit_glsl_integer: Use negation work aroundameerj1-2/+2
2021-12-30shader: Add integer attribute get optimization passameerj9-0/+86
Works around an nvidia driver bug, where casting the integer attributes to float and back to an integer always returned 0.
2021-12-28Empty spacesMatías Locatti1-1/+1
2021-12-28Changes to avoid warnings in SSE4.2 optimized SPIR-VMatías Locatti1-0/+9
2021-12-28Remove invalid assertion statementFeng Chen1-3/+0
2021-12-28Remove invalid header includeFeng Chen1-1/+0
2021-12-28Implement few type in bufferqueue query methodFeng Chen2-0/+9
2021-12-28core: hle: kernel: Updated implementation of svcSetHeapSize.bunnei6-83/+141
- Updates our svcSetHeapSize with latest HOS, furthermore allowing heap size to properly be extended/shrunk. - Validated with tests https://github.com/Atmosphere-NX/Atmosphere/blob/master/tests/TestSvc/source/test_set_heap_size.cpp.
2021-12-25emit_glasm_context_get_set: Fix GetAttribute return value type.ameerj1-4/+4
GetAttribute expects an F32 result type at the IR level, this fixes the return value of attributes which were not returning an F32
2021-12-25emit_glsl_floating_point: Fix FPNeg on newer Nvidia driversameerj1-2/+2
2021-12-24vk_texture_cache: Use 3D scale helpers for MSAA texture scaling on Intel Windows driversameerj4-20/+35
Fixes a crash when scaling MSAA textures in titles such as Sonic Colors Ultimate.
2021-12-24blit_image: Remove unused functionameerj2-50/+0
2021-12-24vk_texture_cache: Fix invalidated pointer accessameerj5-8/+21
The vulkan ImageView held a reference to its source image for rescale status checking. This pointer is sometimes invalidated when the texture cache slot_images container is resized. To avoid an invalid pointer dereference, the ImageView now holds a reference to the container itself.
2021-12-23core: hle: kernel: Implement SetMemoryPermission.bunnei4-1/+67
- Not seen in any games yet, but validated with kernel tests.
2021-12-23 core: hle: kernel: KThread: X18 should be a cryptographically random number.bunnei1-0/+2
- This was added with firmware 11.0.0 (https://switchbrew.org/wiki/11.0.0). - X18 is OR'd by kernel with 1, to make sure it is odd.
2021-12-22main: reword inhibit reasonliushuyu1-2/+3
2021-12-22main: fix wake lock in Flatpak ...liushuyu3-0/+63
... by using the XDP system
2021-12-22hle: kernel: svc: GetInfo: Fix error checking with IdleTickCount.bunnei1-14/+9
- Enforce tha the supplied handle is invalid, not valid. - This gets Witcher 3 booting.
2021-12-21Allow overriding SCM version infoAndrew Udvare1-0/+5
If the build is from a non-repository, these functions will return empty. This patch allows using defines to CMake to set version info such as -DGIT_BRANCH=master.
2021-12-19main: Refactor to reduce code duplication in ShowFullscreen()ameerj1-25/+16
2021-12-19main: Make render window borderless fullscreen toggle on the monitor it resides inameerj1-1/+1
Toggling borderless fullscreen on the separate render window made it fullscreen on the monitor which the main yuzu window resided in. This change allows the render window to go fullscreen on the monitor it resides in, independent of the main window location.
2021-12-19kernel: Manually destroy the current process during shut downameerj1-1/+4
Avoids a memory leak.
2021-12-18video_core/codecs: re-enable VAAPI/VDPAU on BSDs after 72aa418b0b41Jan Beich1-1/+1
2021-12-18core: loader: kip: Minimal changes to fix KIP loading.bunnei1-1/+7
- Allows us to boot KIP (kernal apps), useful for testing the kernel.
2021-12-18Address format clangvonchenplus3-38/+38
2021-12-18Vulkan: Fix the checks for primitive restart extension.Fernando Sahmkow3-21/+28
2021-12-18Remove spirv handle legacy related codevonchenplus4-190/+1
2021-12-18Remove glsl handle legacy related codevonchenplus3-103/+1
2021-12-18Vulkan: implement Logical Operations.Fernando Sahmkow2-3/+3
2021-12-18Vulkan: Implement VK_EXT_primitive_topology_list_restartFernando Sahmkow3-2/+40
2021-12-18core: hle: Remove global HLE lock.bunnei11-67/+1
- This was added early on as a hack to protect against some concurrency issues. - It's not clear that this serves any purpose anymore, and if it does, individual components should be fixed rather than using a global recursive mutex.
2021-12-17[input_common] Move variable declaration closer to usagevperus1-2/+2
MSVC supplied with VS2022 generates "warning C4189: 'CALIBRATION_THRESHOLD': local variable is initialized but not referenced" which is treated as an error. Circumvent it by moving constexpr variable directly into body of lambda function.
2021-12-16core/hid: Cancel any vibration after the testNarr the Reg5-23/+19
2021-12-16Suggestions from CrusadingNinjaMatías Locatti1-2/+2
2021-12-16Changed linkMatías Locatti1-1/+1
2021-12-16video_core/codecs: (re-spin) refactor ffmpeg searching and handlingliushuyu1-0/+6
2021-12-15Revert "video_core/codecs: refactor ffmpeg searching and handling in cmake"bunnei1-6/+0
2021-12-15yuzu/main: Fix host memory byte units. GB to GiBWunkolo1-4/+6
I have `134850146304` bytes of ram and Yuzu was saying that I had `125.59 GB` of ram. But `125.59` is actually the amount of gi**bi**bytes I have. In gi**ga**bytes I would have `134.9`. Additionally, I changed the `1024 / 1024 / 1024` here into the `_GiB` user-literals that I added a while ago(#6519). https://www.wolframalpha.com/input/?i=134850146304+bytes
2021-12-15core/hid: Fix faulty analog triggersNarr the Reg1-2/+2
2021-12-14input/SDL: Update SDL hintsValeri1-3/+4
SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED is no longer needed thanks to new default in SDL 2.0.18. SDL_HINT_JOYSTICK_HIDAPI_XBOX is reported to cause conflicts with native driver Xbox driver on Linux, and Xbox controllers don't benefit from hidapi anyways.
2021-12-14CI: fix CI on Linuxliushuyu1-3/+0
2021-12-14video_core/codecs: skip decoders that use hw frames ...liushuyu1-0/+9
... this would resolve some edge-cases where multiple devices are present and ffmpeg is unable to auto-supply the hw surfaces
2021-12-14common/input: Avoid numerous large copies of CallbackStatusLioncash9-129/+171
CallbackStatus instances aren't the cheapest things to copy around (relative to everything else), given that they're currently 520 bytes in size and are currently copied numerous times when callbacks are invoked. Instead, we can pass the status by const reference to avoid all the copying.
2021-12-14common/cpu_detect: Remove CPU family and modelMorph1-12/+0
We currently do not make use of these fields, remove them for now.
2021-12-14common/input: Remove unnecessary returnsLioncash1-6/+2
Given these return void, these can be omitted.
2021-12-14input_poller: Add missing override specifiersLioncash1-20/+19
2021-12-14input_mapping: Amend specification of parametersLioncash1-14/+14
param tags are supposed to specify the parameter name without any quoting. Silences several -Wdocumentation warnings.
2021-12-14input_poller: Remove several unnecessary @param tagsLioncash1-106/+106
Silences quite a bit of -Wdocumentation warnings, given the @param tag is only intended to be used to identify function parameters, not what it contains.
2021-12-14qt_software_keyboard: Fix out of bounds array accessMorph1-4/+19
We were unconditionally accessing the keyboard_buttons array, even if the bottom_osk_index was for the numberpad, leading to an out of bounds array access. Fix this by accessing the proper array for the current button when the index is for the numberpad.
2021-12-13tas_input: Avoid minor copies in Read/WriteCommandButtons()Lioncash1-2/+2
We don't need to copy the whole pair
2021-12-13tas_input: Remove unnecessary semicolonLioncash1-1/+1
Resolves a -Wextra-semi warning
2021-12-13tas_input: Execute clear() even if emptyLioncash1-3/+2
clear() when empty is simply a no-op, so we can get rid of the check here and let the stdlib do it for us.
2021-12-13tas_input: Remove unnecessary includesLioncash1-2/+2
Gets rid of indirect includes and includes only what the interface needs.
2021-12-13tas_input: std::move strings into vectorLioncash1-21/+24
While we're in the same area, we can also avoid performing std::stoi in a loop when it only needs to be performed once.
2021-12-13tas_input: Use istringstream over stringstreamLioncash1-2/+2
This is only using the input facilities, so we don't need to use the fully-fleged stringstream.
2021-12-13tas_input: Use u8string_view instead of u8stringLioncash2-6/+7
Same behavior, but without the potential for extra allocations.
2021-12-13tas_input: Remove unused std::smatch variableLioncash1-2/+0
This also means we can get rid of the dependency on <regex>
2021-12-13tas_input: Amend -Wdocumentation warningsLioncash2-28/+30
Parameters shouldn't have the colon by their name.
2021-12-13tas_input: Make TasAxes enum an enum classLioncash2-5/+14
Prevents these values from potentially clashing with anything in other headers.
2021-12-13input_engine: Fix typo in TriggerOnAxisChange() parameter nameLioncash1-1/+1
2021-12-13input_engine: Simplify PreSet* family of functionsLioncash2-24/+14
We can make use of try_emplace() to insert values only if they don't already exist.
2021-12-13input_engine: Avoid redundant map lookupsLioncash1-16/+24
We can use iterators to avoid looking up into maps twice in the getter functions. At the same time we can also avoid copying the ControllerData structs, since they're 264 bytes in size.
2021-12-13input_engine: Remove left-over namespace qualifiersLioncash1-3/+3
These types are part of the InputCommon namespace.
2021-12-13input_engine: Iterate by reference rather than by value where applicableLioncash1-10/+10
Avoids creating copies of several object instances (some of which being over 100 bytes in size).
2021-12-13input_engine: Take BasicMotion by const reference with SetMotion() and TriggerOnMotionChange()Lioncash3-6/+7
Copies the BasicMotion instance once instead of twice.
2021-12-13input_engine: std::move InputIdentifier in SetCallback()Lioncash1-1/+1
Allows avoiding std::function allocations.
2021-12-13input_engine: Pass LedStatus by const referenceLioncash3-3/+3
Avoids copies where reasonably applicable
2021-12-13input_engine: Pass VibrationStatus by const reference in SetRumble()Lioncash7-12/+12
Avoids creating copies of the struct where not necessary.
2021-12-13input_engine: std::move engine name where applicableLioncash15-29/+29
We can allow the name to be moved into, allowing allocations to be avoided.
2021-12-13input_engine: Remove callback clearing in constructorLioncash1-3/+1
The callback map is a member variable, so this will always be empty on initial construction.
2021-12-13input_engine: Remove unnecessary semi-colonsLioncash1-6/+6
Silences -Wextra-semi warnings
2021-12-13input_engine: Remove unnecessary returnLioncash1-3/+1
This is a void function, so it doesn't need this.
2021-12-13Remove erroneous #pragma onceValeri1-2/+0
2021-12-13service/hid: Improve console motion accuracyNarr the Reg6-20/+32
2021-12-12game_list: Add persistent setting for the favorites row expanded stateameerj3-7/+17
Previously, the favorites row was always expanded on launch. This change introduces a persistent setting that allows the favorites row's expanded state to be remembered between launches.
2021-12-11maxwell_to_vk: Add ASTC_2D_5X4_UNORMMorph1-1/+1
2021-12-10Fix blit image/view not compatibleFeng Chen1-1/+6
2021-12-09maxwell_to_vk: Add ASTC_2D_8X5_UNORMMorph1-1/+1
- Used by Lego City Undercover
2021-12-08profiler: Use QWheelEvent position().toPoint()Morph1-1/+1
QWheelEvent::pos() is deprecated. Make use of position().toPoint() instead.
2021-12-08renderer_vulkan: Add R16G16_UINTMorph2-1/+2
- Used by Immortals Fenyx Rising
2021-12-07Update k_code_memory.hitsmeft241-6/+6
2021-12-07make KCodeMemory::GetSourceAddress constitsmeft241-1/+1
Co-authored-by: Mai M. <mathew1800@gmail.com>
2021-12-07main: Update video core popupMatías Locatti1-8/+5
Old version had formatting issues, and I want to provide an answer to the most common reason this pops up in the first place, outdated drivers.
2021-12-07hle: kernel k_scheduler: EnableScheduling: Remove redundant GetCurrentThreadPointer calls.bunnei1-3/+5
2021-12-07hle: kernel k_process: Remove unnecessary .at usage with thread pinning methods.bunnei1-3/+3
2021-12-07hle: kernel: Remove unnecessary virtual specifier on NotifyAvailable.bunnei1-2/+2
2021-12-07hle: kernel: Remove unnecessary virtual specifier on EndWait.bunnei1-1/+1
2021-12-07hle: kernel: k_light_condition_variable: Revert unnecessary license comment changes.bunnei1-1/+1
2021-12-07hle: kernel: k_condition_variable: Revert unnecessary style changes.bunnei1-2/+2
2021-12-07hle: kernel: Remove unnecessary virtual specifier on CancelWait.bunnei6-14/+14
2021-12-07hle: kernel: service_thread: Force stop threads on destruction.bunnei1-1/+7
2021-12-07hle: kernel: k_light_lock: Implement CancelWait.bunnei1-5/+10
- Fixes a crash in Megadimension Neptunia VII.
2021-12-07hle: kernel: service_thread: Use std::jthread.bunnei1-18/+19
- Fixes a potential deadlock on service thread shutdown.
2021-12-07hle: kernel: k_thread: Skip reschedule on DisableDispatch with SC.bunnei1-0/+5
2021-12-07hle: kernel: k_thread: Rename sleeping_queue -> wait_queue.bunnei2-17/+13
2021-12-07hle: kernel: svc: Fix deadlock that can occur with single core.bunnei1-10/+8
2021-12-07hle: kernel: k_thread: Treat dummy threads as a special type.bunnei2-1/+4
2021-12-07hle: kernel: fix timing on thread preemptionFernandoS271-4/+2
2021-12-07hle: kernel: fix scheduling ops from HLE host thread.FernandoS271-3/+3
2021-12-07hle: kernel: Add a flag for indicating that the kernel is currently shutting down.bunnei6-0/+49
2021-12-07hle: kernel: KSynchronizationObject: Fix variable shadowing.bunnei1-8/+8
2021-12-07hle: kernel: Cleanup to match coding style.bunnei6-26/+21
2021-12-07hle: kernel: KProcess: Improvements for thread pinning.bunnei2-8/+26
2021-12-07hle: kernel: KThreadQueue: Remove deprecated code.bunnei1-63/+0
2021-12-07hle: kernel: KConditionVariable: Various updates & simplifications.bunnei2-121/+65
2021-12-07hle: kernel: KThread: Migrate to updated KThreadQueue (part 2).bunnei1-29/+19
2021-12-07hle: kernel: KThread: Migrate to updated KThreadQueue (part 1).bunnei3-60/+71
2021-12-07hle: kernel: KConditionVariable: Migrate to updated KThreadQueue.bunnei1-12/+55
2021-12-07hle: kernel: KServerSession: Migrate to updated KThreadQueue.bunnei2-5/+11
2021-12-07hle: kernel: KLightConditionVariable: Migrate to updated KThreadQueue.bunnei3-54/+87
2021-12-07hle: kernel: KLightLock: Migrate to updated KThreadQueue.bunnei2-35/+36
2021-12-07hle: kernel: KAddressArbiter: Migrate to updated KThreadQueue.bunnei1-43/+39
2021-12-07hle: kernel: KThread: Remove tracking of sync object from threads.bunnei6-41/+21
2021-12-07hle: kernel: Update KThreadQueue and migrate KSynchronizationObject.bunnei8-75/+251
2021-12-07core: hle: kernel: Disable dispatch count tracking on single core.bunnei3-5/+14
- This would have limited value, and would be a mess to handle properly.
2021-12-07core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard.bunnei1-1/+1
2021-12-07core: cpu_manager: Use invalid core_id on init and simplify shutdown.bunnei1-7/+3
2021-12-07core: hle: kernel: k_auto_object: Add GetName method.bunnei1-0/+4
- Useful purely for debugging.
2021-12-07core: hle: kernel: DisableDispatch on suspend threads.bunnei1-0/+3
2021-12-07core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling.bunnei1-14/+9
2021-12-07core: cpu_manager: Use KScopedDisableDispatch.bunnei1-7/+8
2021-12-07core: hle: kernel: Use CurrentPhysicalCoreIndex as appropriate.bunnei1-6/+2
2021-12-07core: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess.bunnei1-5/+0
2021-12-07core: hle: kernel: k_scheduler: Improve ScheduleImpl.bunnei1-6/+7
2021-12-07core: hle: kernel: k_scheduler: Improve Unload.bunnei1-17/+29
2021-12-07core: hle: kernel: k_process: DisableDispatch on main thread.bunnei1-0/+1
2021-12-07core: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary.bunnei2-0/+8
2021-12-07core: hle: kernel: k_thread: Add KScopedDisableDispatch.bunnei2-1/+47
2021-12-07core: hle: kernel: Ensure idle threads are closed before destroying scheduler.bunnei3-24/+22
2021-12-07core: hle: kernel: Reflect non-emulated threads as core 3.bunnei7-14/+17
2021-12-07CMakeLists: Specify /Zm200 when compiling in MSVCMorph1-0/+2
This increases the memory heap size for constructing precompiled headers to 2x the default.
2021-12-06service/notif: Add notif:a and stub ListAlarmSettings,Initializegerman776-0/+77
Used by ring fit adventure 1.2.0
2021-12-06fix formattingitsmeft241-1/+6
2021-12-06move private members below public membersitsmeft241-10/+11
2021-12-06fix formattingitsmeft241-4/+1
2021-12-06fix formattingitsmeft241-1/+1
Co-authored-by: Mai M. <mathew1800@gmail.com>
2021-12-06service/hid: Stub SetNpadCaptureButtonAssignment and ClearNpadCaptureButtonAssignmentgerman772-2/+35
Used by ring fit adventure 1.2.0
2021-12-06loader: Support loading subsdk{8,9}jam1garner1-2/+3
2021-12-06fix formattingitsmeft242-2/+2
2021-12-06Remove unnecessary includesitsmeft242-50/+13
2021-12-06emit_spirv: Reduce emit_spirv.h include overheadameerj20-3/+20
emit_spirv.h is included in video_core, which was propagating further includes that video_core did not depend on.
2021-12-06glasm: Move implemented instructions from not_implemented.cppameerj7-169/+220
2021-12-06shader_recompiler: Adjust emit_context includesameerj37-37/+37
2021-12-05service/hid: Implement SetNpadJoyAssignmentModegerman775-38/+174
2021-12-05Add copyright noticeitsmeft242-0/+8
2021-12-05shader_recompiler: Rename backend emit_context filesameerj7-6/+6
2021-12-05general: Add missing copyright noticesameerj5-0/+20
2021-12-05Add KCodeMemory to CMakeLists.txtitsmeft241-0/+2
2021-12-05vk_texture_cache: Add ABGR src format check for D24S8 conversionsameerj1-1/+5
2021-12-05renderer_opengl: Minor refactoring of filter selectionameerj1-30/+20
2021-12-05texture_cache: Fix image convert dimensions assertionameerj1-1/+12
2021-12-05blit_image: Refactor upscale factors usageameerj6-62/+53
The image view itself can be queried to see if it is being rescaled or not, removing the need to pass the upscale/down shift factors from the texture cache.
2021-12-05vk_texture_cache: Add a function to ImageView to check if src image is rescaledameerj2-4/+22
2021-12-05blit_image: Refactor ConvertPipeline functionsameerj2-29/+15
2021-12-05blit_image: Refactor ConvertPipelineEx functionsameerj2-33/+18
reduces much of the duplication between the color/depth variants
2021-12-05vk_blit_screen: Minor refactor of filter pipeline selectionameerj1-21/+16
2021-12-05Revert "Merge pull request #7395 from Morph1984/resolve-comments"ameerj3-16/+31
This reverts commit d20f91da11fe7c5d5f1bd4f63cc3b4d221be67a4, reversing changes made to 5082712b4e44ebfe48bd587ea2fa38767b7339cb.
2021-12-05kernel: svc: Implement Map/UnmapProcessMemory and Create/ControlCodeMemoryitsmeft2411-7/+636
Used by Skyline modding framework
2021-12-05core/hid: Add missing controller typegerman771-0/+2
2021-12-05Fixed #7502Adam Heinermann1-8/+9
2021-12-05core/hid: Ensure only valid npad are connectedgerman778-88/+147
2021-12-04Address feedbackFeng Chen5-17/+27
2021-12-04Texture Cache: Fix crashes on NVIDIA.Fernando Sahmkow1-3/+6
2021-12-04native_clock: Wait for less time in EstimateRDTSCFrequencyMorph1-18/+18
In my testing, waiting for 200ms provided the same level of precision as the previous implementation when estimating the RDTSC frequency. This significantly improves the yuzu executable launch times since we reduced the wait time from 3 seconds to 200 milliseconds.
2021-12-03video_core/cmake: link against libva explicitly ...liushuyu1-0/+1
... to fix build on Flatpak (and self-builds)
2021-12-03video_core/codecs: more fixes for VAAPI detection ...liushuyu1-63/+25
* skip impersonated VAAPI implementaions ("imposter detection") * place VAAPI priority below CUDA/NVDEC/CUVID
2021-12-03video_core/codec: address commentsliushuyu1-8/+12
2021-12-03video_core/codecs: more robust ffmpeg hwdecoder selection logicliushuyu1-10/+27
2021-12-03service: am: ISelfController: Stub SaveCurrentScreenshotMorph3-2/+15
- Used by Disney Magical World 2: Enchanted Edition
2021-12-02yuzu: Implement basic controller navigationgerman779-8/+285
2021-12-02general: Replace high_resolution_clock with steady_clockMorph7-13/+13
On some OSes, high_resolution_clock is an alias to system_clock and is not monotonic in nature. Replace this with steady_clock.
2021-12-02Support multiple videos playingFeng Chen6-41/+36
2021-11-30service: friend: Implement GetCompletionEventMorph1-2/+21
- Used by Super Bomberman R Online
2021-11-30input_common: Fix error with thread nameNarr the Reg1-2/+1
2021-11-30input_interpreter: Make use of NpadButton instead of a u64Morph2-9/+9
Allows us to be more explicit with the representation of button states and use the provided bit manipulation operators
2021-11-30npad: Return NpadButton in GetAndResetPressStateMorph3-7/+6
We were previously truncating this to a u32 as there were no known buttons that used the full 64 bits of this type. Fix this now that we know they are used.
2021-11-30core: hid: hid_types: Add "All" to NpadButtonMorph1-0/+2
This represents a bitmask for all pressed buttons
2021-11-30qt_controller: Make use of (Enable/Disable)AllControllerConfigurationMorph1-8/+5
This also moves the use of DisableConfiguration to the destructor.
2021-11-29core: hid: hid_core: Add (Enable/DIsable)AllControllerConfigurationMorph2-0/+32
2021-11-29general: Fix handheld typoMorph2-17/+17
2021-11-29core: hid: Mark constructors as explicitMorph2-2/+2
2021-11-29core: hid: Cleanup and amend documentationMorph4-69/+76
2021-11-29Revert of b01aa72vperus1-35/+39
Caused worker_thread to be stuck in Stage1Completed state until job's destruction.
2021-11-29[input_common] Add completion test for CalibrationConfigurationJobvperus3-9/+151
2021-11-29Add missing pixel format mappingFeng Chen1-0/+2
2021-11-29qt_controller: Fix input when the controller applet is ignoredgerman771-0/+3
2021-11-28Texture Cache: Secure insertions against deletions.Fernando Sahmkow1-3/+13
2021-11-28core/ns: Implement GetReadOnlyApplicationControlDataInterfaceNarr the Reg2-1/+26
Used in checkpoint homebrew
2021-11-28core/pdm: Stub QueryPlayStatisticsByApplicationIdAndUserAccountIdNarr the Reg4-0/+107
Used in checkpoint homebrew
2021-11-28settings: Add debug setting to enable all controllersgerman778-0/+75
2021-11-27core/hid: Stub GetUniquePadsFromNpadNarr the Reg1-1/+13
Used in checkpoint homebrew
2021-11-27Texture Cache: Redesigning the blitting system (again).Fernando Sahmkow3-23/+64
2021-11-27config: Remove vibration configurationgerman777-104/+3
2021-11-27applet/controller: Enable configuring mode while the applet is opengerman771-7/+12
2021-11-26input_common: Fully implement UDP controllersNarr the Reg12-40/+397
2021-11-26Texture Cache: Further fix regressions.Fernando Sahmkow1-11/+15
2021-11-25service/hid: Finish converting LIFO objects and address some nitsNarr the Reg14-95/+50
2021-11-25yuzu: Fix TAS from rebasegerman773-9/+11
2021-11-25input_common: Move button names to the frontendgerman7712-52/+160
2021-11-25input_common: Fix SDL controller with inverted axisgerman772-24/+8
2021-11-25bootmanager: Use cross-platform keyboard inputgerman773-39/+58
2021-11-25kraken: Address comments from reviewgerman7717-66/+54
Fix compiler bug
2021-11-25core/hid: Improve accuary of mouse implementationgerman7714-48/+79
2021-11-25core/hid: Fully implement native mousegerman7721-1039/+323
2021-11-25input_common: Allow keyboard to be backwards compatiblegerman7710-48/+115
2021-11-25core/hid: Improve accuracy of the keyboard implementationgerman7713-313/+682
2021-11-25core/hid: Fix keyboard alignmentgerman772-12/+14
2021-11-25core/hid: Remove usage of native types, fix a couple of errors with motiongerman7711-428/+632
2021-11-25settings: Remove includes of core.hgerman7710-57/+55
2021-11-25service/hid: Remove includes of core.h and settings.hgerman7729-67/+67
2021-11-25 UI nitsLevi Behunin1-9/+6
Set top margin to 6 on Right Stick, LeftStick, Face Buttons, D-Pad. Change property on Input Device QComboBox from minimumSize to minimumContentsLength.
2021-11-25service/hid: Add support for new controllersgerman772-2/+31
2021-11-25settings: Fix controller preview not displaying the correct controllergerman773-4/+7
2021-11-25core/hid: Rename NpadType to NpadStyleIndexgerman7715-215/+228
2021-11-25config: Cleanup and documentationgerman778-99/+46
2021-11-25input_common: Fix motion from 3 axisgerman771-0/+2
2021-11-25core/hid: Prevent Emulated controller from flapping with multiple inputs devicesgerman775-36/+77
2021-11-25core/hid: Fully emulate motion from buttongerman777-37/+97
2021-11-25second commit lion reviewgerman7728-42/+73
2021-11-25settings: Fix Debug controller type optionsgerman7713-95/+77
2021-11-25kraken: Address comments from reviewgerman7731-466/+534
start lion review
2021-11-25input_common: Revert deleted TAS functionsgerman777-48/+122
2021-11-25core/hid: Explain better what a temporary value doesgerman772-24/+28
2021-11-25input_common: Fix GC adapter initializationgerman771-12/+12
Fix GC controller
2021-11-25core/hid: Update structs to 13.1.0german7712-50/+107
2021-11-25core/hid: Add TAS inputgerman776-13/+82
2021-11-25input_common: Fix UDP uuidgerman773-2/+16
2021-11-25input_common: Add multiple vibration curvesgerman772-15/+28
2021-11-25core/hid: Rework battery mappingsgerman779-46/+109
2021-11-25input_common: Add manual update options to input devicesgerman775-0/+56
2021-11-25service/hid: Fix memory allocated incorrectlygerman775-7/+7
2021-11-25settings: Fix mouse and keyboard mappingsgerman7710-105/+102
2021-11-25web_applet: Replace HIDButton with NpadButtongerman773-36/+44
2021-11-25Morph review first wavegerman7723-136/+117
2021-11-25service/hid: Match shared memory closer to HWgerman772-26/+75
2021-11-25yuzu: Fix loading input profilesgerman772-0/+9
2021-11-25kraken: Address comments from reviewgerman7715-56/+56
review fixes
2021-11-25service/hid: Use ring buffer for gesturesgerman772-79/+52
2021-11-25service/hid: Fix gesture inputgerman778-91/+159
2021-11-25configuration: Migrate controller settings to emulated controllergerman7712-127/+141
2021-11-25core/hid: Fix rumble too strong at 1%german773-13/+48
2021-11-25core/hid: Only signal when neededgerman7711-153/+240
2021-11-25hid: Fix controller connection/disconnectiongerman7710-65/+226
2021-11-25core/hid: Documment some filesgerman774-52/+265
2021-11-25kraken: Fix errors from rebase and format filesgerman7720-53/+83
2021-11-25core/hid: Add output devicesgerman7720-144/+312
2021-11-25core: Update input interpretergerman774-54/+18
2021-11-25yuzu: Update overlay appletgerman772-16/+21
2021-11-25core/frontend: Update appletsgerman772-10/+15
2021-11-25core: Remove frontend/inputgerman771-217/+0
2021-11-25service/hid: Rewrite npad to use ring lifo and the emulated controllergerman772-890/+605
2021-11-25service/hid: Update console sixaxis to the emulated consolegerman772-28/+26
2021-11-25service/hid: Update mouse and keyboard to use ring lifo and the emulated devicegerman774-158/+71
2021-11-25service/hid: Update touch and gestures to use ring lifo and the emulated consolegerman774-370/+191
2021-11-25service/hid: Update debug pad, xpad, stubbed and controller base to use ring lifo and the emulated controllergerman777-166/+80
2021-11-25service/hid: Use remove duplicated code, update namesgerman772-64/+30
2021-11-25service/hid: Create ring LIFOgerman772-1/+55
2021-11-25Qt_applets: Use new inputgerman775-49/+68
2021-11-25settings: Cleanup settingsgerman776-9/+16
2021-11-25debugger/controller: Remove TASgerman772-46/+5
2021-11-25core/emu_window: Remove touch inputgerman772-113/+15
2021-11-25yuzu: Update frontendgerman7713-1010/+822
2021-11-25core: Register HIDgerman773-4/+25
2021-11-25core/hid: Add emulated controllersgerman779-0/+2025
2021-11-25yuzu_cmd: Use new inputgerman773-45/+39
2021-11-25yuzu: Use new input on main and bootmanagergerman773-68/+59
2021-11-25input_common: Rewrite main and add the new driversgerman772-49/+330
2021-11-25input_common: Remove obsolete filesgerman775-444/+0
2021-11-25input_common: Rewrite SDLgerman776-1757/+950
2021-11-25input_common: Rewrite udp clientgerman775-441/+54
2021-11-25input_common: Rewrite tas inputgerman775-840/+2
2021-11-25input_common: Rewrite gc_adaptergerman778-827/+848
2021-11-25input_common: Rewrite touchgerman773-0/+99
2021-11-25input_common: Rewrite mousegerman777-751/+217
2021-11-25input_common: Rewrite keyboardgerman7711-614/+95
2021-11-25input_common: Move touch and analog from button. Move udp protocolgerman7710-132/+172
2021-11-25input_common: Create input poller and mappinggerman776-0/+1305
2021-11-25input_common: Create input_enginegerman772-0/+585
2021-11-25core/hid: Move motion_input, create input converter and hid_typesgerman776-0/+1164
2021-11-25core/hid: Move input_interpreter to hidgerman774-4/+4
2021-11-25common: Rewrite and move core/frontend/input.h to commongerman772-0/+243
2021-11-25Refactor menu states and shortcuts in GMainWindow. (#7419)Adam Heinermann3-237/+175
Refactor menu states and shortcuts in GMainWindow. - Removed "Start", since it was always disabled unless it was "Continue" which has now been moved to "Pause". - Allow hotkeys to be used while in fullscreen. - Removed the load amiibo hotkey.
2021-11-25video_core/codec: address commentsliushuyu1-17/+11
2021-11-25video_core/codecs: fix multiple decoding issues on Linux ...liushuyu1-2/+47
* when someone installed Intel video drivers on an AMD system, the decoder will select the Intel VA-API decoding driver and yuzu will crash due to incorrect driver selection; the fix will check if the currently about-to-use driver is loaded in the kernel * when using NVIDIA driver on Linux with a ffmpeg that does not have CUDA capability enabled, the decoder will crash; the fix simply making the decoder prefers the VDPAU driver over CUDA on Linux
2021-11-22Texture Cache: Fix issue with blitting 3D textures.Fernando Sahmkow1-2/+4
2021-11-22arm: dynarmic: Cleanup icache op handlingjam1garner1-10/+9
2021-11-22arm: dynarmic: Implement icache op handling for 'ic iallu' instructionjam1garner1-0/+3
2021-11-22arm: dynarmic: Implement icache op handling for 'ic ivau' instructionjam1garner1-0/+18
2021-11-22const fixesAdam Heinermann2-3/+3
2021-11-22Apply clang formatAdam Heinermann1-1/+0
2021-11-22Added TAS controls to the menu under ToolsAdam Heinermann5-57/+153
2021-11-22Texture Cache: Correct conversion shaders.Fernando Sahmkow2-2/+2
2021-11-22Texture Cache: Always copy on NVIDIA.Fernando Sahmkow1-0/+5
2021-11-22TextureCache: Simplify blitting of D24S8 formats and fix bugs.Fernando Sahmkow10-195/+73
2021-11-21VulkanTexturECache: Use reinterpret on D32_S8 formats.Fernando Sahmkow1-2/+7
2021-11-21HostShaders: Fix D24S8 convertion shaders.Fernando Sahmkow6-23/+47
2021-11-21configure_general: Allow framerate cap to be used in custom game configsKewlan5-27/+99
2021-11-21TextureCache: Eliminate format deduction as full depth conversion has been supported.Fernando Sahmkow2-29/+5
2021-11-21kernel: svc: Move all IsValid functions to an anonymous namespaceMorph1-3/+15
2021-11-21kernel: svc: Implement SetProcessMemoryPermissionMorph1-1/+41
- Used by Skyline modding framework
2021-11-21kernel: KPageTable: Rename SetCodeMemoryPermission to SetProcessMemoryPermissionMorph4-8/+8
2021-11-21vk_texture_cache: Mark VkBufferUsageFlags as static constexprMorph1-3/+3
2021-11-21vk_blit_image: Consolidate CreatePipelineTargetEx functionsMorph2-28/+13
2021-11-21service: pm: Implement AtmosphereGetProcessIdMorph1-0/+24
- Used by Skyline modding framework
2021-11-21service: pm: Add all relevant result codesMorph1-3/+8
2021-11-21service: pm: Rename title id to program idMorph1-6/+6
2021-11-20Fix screenshot dimensions when at 1x scaleameerj5-20/+8
This was regressed by ART. Prior to ART, the screenshots were saved at the title's framebuffer resolution. A misunderstanding of the existing logic led to screenshot dimensions becoming dependent on the host render window size. This changes the behavior to match how it was prior to ART at 1x, with screenshots now always being the title's framebuffer dimensions scaled by the resolution scaling factor.
2021-11-20TextureCache: Refactor and fix linux compiling.Fernando Sahmkow3-9/+11
2021-11-20TextureCache: Assure full conversions on depth/stencil write shaders.Fernando Sahmkow3-6/+6
2021-11-20TextureCache: Implement buffer copies on Vulkan.Fernando Sahmkow6-9/+193
2021-11-20TextureCache: Add R16G16 to D24S8 converter.Fernando Sahmkow5-0/+38
2021-11-19TextureCache: Add B10G11R11 to D24S8 converter.Fernando Sahmkow5-13/+84
2021-11-19TextureCache: Further fixes on resolve algorithm.Fernando Sahmkow2-16/+17
2021-11-19Implement convert legacy to genericFeng Chen6-1/+108
2021-11-19TextureCache: Implement additional D24S8 convertions.Fernando Sahmkow6-0/+86
2021-11-19TextureCache: force same image format when resolving an image.Fernando Sahmkow2-2/+9
2021-11-19main: Fix default AA nameMorph1-4/+4
By default, no AA is applied, not FXAA
2021-11-19configure_graphics_ui: AMD's -> AMDMorph1-1/+1
AMD officially markets FSR as AMD FidelityFX™️ Super Resolution
2021-11-19main: Shorten AMD FSR status bar textMorph1-1/+1
AMD'S FIDELITYFX SR -> FSR
2021-11-19TextureCache: Fix regression caused by ART and improve blit detection algorithm to be smarter.Fernando Sahmkow2-10/+27
2021-11-19Vulkan: implement D24S8 <-> RGBA8 convertions.Fernando Sahmkow6-0/+166
2021-11-18renderer_vulkan: Implement S8_UINT stencil formatMorph3-0/+18
It should be noted that on Windows, only nvidia gpus support this format natively as of this commit.
2021-11-18gl_texture_cache: Round format conversion PBO to next power of 2ameerj1-1/+5
2021-11-18Fix crash on exit due to static scoped dummy threadsAdam Heinermann1-8/+14
2021-11-17renderer_opengl: Implement S8_UINT stencil formatMorph3-6/+25
2021-11-17video_core: Add S8_UINT stencil formatMorph4-3/+21
2021-11-17hotkeys: Don't allow hotkeys to spamgerman771-0/+2
2021-11-17Prevent window flickering when holding EscValeri1-1/+1
Reported on discord by Levlight. Don't try to exit fullscreen if it's already off.
2021-11-17Fix image update/download error when width too smallFeng Chen2-10/+18
2021-11-17texture_cache: Use pixel format conversion when supported by the runtimeameerj5-0/+15
2021-11-17gl_texture_cache: Make FormatConversionPass more genericameerj1-7/+12
This allows the usage of the FormatConversionPass to be applied to more than the previously used BGR conversion scenarios.
2021-11-17gl_texture_cache: Rename BGRCopyPass to FormatConversionPassameerj2-21/+18
2021-11-17TextureCache: Fix Automatic Anisotropic.Fernando Sahmkow1-6/+5
2021-11-17TextureCache: OGL query device memory if possible.FernandoS272-2/+14
2021-11-17TextureCache: Fix OGL cleaningFernando Sahmkow5-0/+43
2021-11-16TextureCache: Add automatic anisotropic filtering and refactor code.Fernando Sahmkow5-16/+22
2021-11-16TextureCache: Make a better Anisotropic setter.Fernando Sahmkow4-24/+21
2021-11-16Texture Cache: revert Image changes.Fernando Sahmkow1-0/+4
2021-11-16ShaderCache: Better fix for Shuffling gl_FragCoordFernando Sahmkow1-2/+13
2021-11-16HostShader: fix Gaussian filter.FernandoS271-2/+2
2021-11-16Texture Cahe/Shader decompiler: Resize PointSize on rescaling, refactor and make reaper more agressive on 4Gb GPUs.FernandoS275-22/+29
2021-11-16texture_cache: Refactor Render Target scaling functionameerj2-14/+24
2021-11-16gl_resource_manager: Ensure non EXT_framebuffer objects are createdameerj2-13/+8
2021-11-16Texture Cache: Fix memory usage on ScaleDown.FernandoS271-4/+0
2021-11-16OpenGL: Fix viewport/Scissor scaling on downscaling.FernandoS271-6/+28
2021-11-16Vulkan: fix regression.FernandoS271-14/+17
2021-11-16host_shaders: Misc copyright/style changesameerj4-10/+12
2021-11-16configure_graphics.ui: Cleanup scaling options and fix duplicate name warningameerj1-5/+5
2021-11-16FSR: Fix GCC build errorsameerj3-43/+50
2021-11-16Vulkan: Reimplement FSR constant generation functions to avoid GCC warningsMarshall Mohror2-9/+145
2021-11-16vk_blit_screen: Fix AA destruction orderameerj1-9/+10
2021-11-16Presentation: Only use FP16 in scaling shaders on supported devices in VulkanMarshall Mohror14-116/+197
2021-11-16renderer_vulkan/blit_image: Use generic color state on Depth to Color blitsameerj1-1/+1
Fixes Bayonetta 2 on AMD
2021-11-16vk_texture_cache: Refactor 3D scaling helpersameerj2-113/+74
2021-11-16gl_rasterizer: Fix ScissorTest and Clear when scalingameerj1-10/+6
2021-11-16gl_texture_cache: Simplify scaling proceduresameerj2-57/+28
2021-11-16OpenGlTextureCache: Fix state invalidation on rescaling.Fernando Sahmkow3-2/+17
2021-11-16VulkanBufferCache: Avoid adding barriers between multiple copies.Fernando Sahmkow3-5/+43
2021-11-16HostShader: Fix gaussian and add attribution.Fernando Sahmkow1-23/+19
2021-11-16Yuzu UI: Add button for Anti AliasFernando Sahmkow3-0/+45
2021-11-16Vulkan: Fix FXAA in AMD.Fernando Sahmkow1-2/+40
2021-11-16Texture Cache: Fix blitting.Fernando Sahmkow1-2/+2
2021-11-16Vulkan: Implement FXAAFernandoS273-22/+387
2021-11-16OpenGL: fix FXAA with scalingMarshall Mohror2-9/+31
2021-11-16OpenGL: Implement FXAAMarshall Mohror6-35/+194
2021-11-16Frontend: Add anti-aliasing method settingMarshall Mohror5-0/+70
2021-11-16Settings: Add anti-aliasing method settingMarshall Mohror2-0/+7
2021-11-16QtGUI: Add buttton to toggle the filter.FernandoS275-1/+61
2021-11-16VideoCore: Add gaussian filtering.FernandoS278-2/+140
2021-11-16TextureCache: Improve Reaper.FernandoS272-14/+26
2021-11-16Vulkan: fix waiting on semaphore.FernandoS271-1/+3
2021-11-16Update scaleforce to use FP16Marshall Mohror1-88/+55
2021-11-16VideoCore: Add more rescaling option.FernandoS273-7/+38
2021-11-16TextureCache: fix rescaling in aliases and overlap joins.FernandoS274-23/+48
2021-11-16Presentation: Fix turning FSR on and off in settingsMarshall Mohror1-0/+11
2021-11-16Video Core: fix building for GCC.Fernando Sahmkow5-24/+42
2021-11-16Vulkan Rasterizer: Fix clears on integer textures.FernandoS273-1/+84
2021-11-16Texture cache: fix Intel with rescaler.FernandoS271-2/+2
2021-11-16TextureCache: Fix blitting filter in Vulkan and correct viewport/scissor calculation when downscaling.FernandoS272-20/+44
2021-11-16Texture Cache: fix memory managment and optimize scaled downloads, uploads.Fernando Sahmkow7-28/+57
2021-11-16Texture Cache: ease the requirements of textures being blacklisted.Fernando Sahmkow2-22/+7
2021-11-16Vulkan: Fix Blit Depth StencilFernando Sahmkow2-14/+20
2021-11-16Texture Cache: Fix downscaling and correct memory comsumption.Fernando Sahmkow8-36/+147
2021-11-16Presentation: add Nearest Neighbor filter.Fernando Sahmkow6-14/+67
2021-11-16vulkan: Implement FidelityFX Super ResolutionMarshall Mohror11-17/+643
2021-11-16Texture Cache: Rescale conversions between depth and colorFernandoS276-25/+37
2021-11-16Texture cache: Fix memory consumption and ignore rating when a depth texture is rendered.Fernando Sahmkow3-7/+19
2021-11-16vulkan: Fix rescaling push constant usageameerj8-69/+78
2021-11-16Texture Cahe: Fix downscaling on SMO.Fernando Sahmkow5-0/+11
2021-11-16texture_cache_base: Remove unused function declarationsameerj1-8/+0
2021-11-16yuzu: Fix build errorsameerj1-1/+1
2021-11-16vk_texture_cache: Use 3D to scale images when blit is unsupportedameerj4-29/+87
2021-11-16texture_cache: Fix infinitely recursive ImageCanRescale checkameerj3-10/+13
2021-11-16vk_texture_cache: Fix BlitScale of non-2D imagesameerj1-10/+9
2021-11-16video_core: Refactor resolution scale functionameerj4-46/+34
2021-11-16texture_cache: Fix image resolves when src/dst are not both scaledameerj1-5/+8
2021-11-16yuzu_cmd: Read resolution_setup and scaling_filter from configlat9nq2-0/+25
Also adds descriptions and the settings to the default config.
2021-11-16video_core,yuzu: Move UpdateRescalingInfo call to video_corelat9nq3-5/+2
This only needs to happen once per game boot, so we can just call it during CreateGPU and be done with it, avoiding the need to call it in the frontends.
2021-11-16gl_texture_cache: Disable scissor test when scaling texturesameerj1-0/+8
Fixes a bug on BOTW where some objects were no longer being rendered after blitting
2021-11-16vk_texture_cache: Fix unsupported blit format error checkingameerj2-9/+9
2021-11-16vk_texture_cache: Fix early returns on unsupported scalesameerj2-19/+11
2021-11-16video_core: Misc resolution scaling related refactoringameerj8-47/+51
2021-11-16texture_cache: Refactor scaled image size calculationameerj2-12/+13
2021-11-16Texture Cache: Fix calculations when scaling.Fernando Sahmkow1-0/+12
2021-11-16gl_texture_cache: Fix BGR pbo size for scaled texturesameerj1-11/+10
2021-11-16rescaling_pass: Fix IR errors when unscalable texture types are encounteredameerj1-0/+28
2021-11-16Texture Cache: Fix Rescaling on MultisampleFernando Sahmkow3-8/+21
2021-11-16TextureCache: Base fixes on rescaling.Fernando Sahmkow2-4/+6
2021-11-16rescaling_pass: Logic simplification and minor style cleanupameerj2-33/+17
2021-11-16rescaling_pass: Scale ImageFetch offset if it existsameerj1-59/+37
Plus some code deduplication
2021-11-16rescaling_pass: Enable PatchImageQueryDimensions on fragment stagesameerj1-5/+4
2021-11-16vk_texture_cache: Simplify scaled image managementameerj2-107/+34
2021-11-16gl_texture_cache: Fix scaling backup logicameerj2-20/+16
2021-11-16vk_rasterizer: Fix scaling on Y_NEGATEameerj1-3/+9
2021-11-16vk_texture_cache: Use nearest neighbor scaling when availableameerj4-29/+36
2021-11-16gl_texture_cache: Fix depth and integer format scaling blitsameerj2-16/+61
2021-11-16gl_texture_cache/rescaling_pass: minor cleanupameerj3-16/+10
2021-11-16vk_texture_cache: Minor cleanupameerj2-11/+8
2021-11-16rescaling_pass: Fix and simplify shuffle/fragcoord passameerj1-26/+20
2021-11-16Shader: Don't rescale FragCoord if used by ShuffleFernando Sahmkow2-2/+55
2021-11-16image_info: Mark MSAA textures as non-rescalableameerj1-2/+2
Blitting or resolving multisampled images requires the dimensions of the src and dst to be equal for valid usage, making them difficult for resolution scaling using the current implementation.
2021-11-16bootmanager: Fix screenshot resolution factor usageameerj7-20/+13
Fixes screenshots at non integer scaling
2021-11-16gl_texture_cache: Simplify scalingameerj2-31/+39
We don't need to reconstruct new textures every time we ScaleUp/ScaleDown. We can scale up once, and revert to the original texture whenever scaling down. Fixes memory leaks due to glDeleteTextures being deferred for later handling on some drivers
2021-11-16Renderers: Unify post processing filter shadersameerj7-211/+36
2021-11-16gl_texture_cache: fix scaling on uploadameerj1-0/+7
2021-11-16Renderer: Implement Bicubic and ScaleForce filters.Fernando Sahmkow15-34/+620
2021-11-16Texture Cache: fix scaling on upload and stop scaling on base resolution.Fernando Sahmkow1-14/+32
2021-11-16shader, video_core: Fix GCC build errorsameerj3-14/+3
2021-11-16emit_spirv: Fix RescalingLayout alignmentameerj3-4/+8
2021-11-16TextureCache: Fix Buffer Views Scaling.Fernando Sahmkow2-5/+9
2021-11-16RescalingPass: Agregate pixels on texelFetch while on Fragment ShaderFernando Sahmkow1-3/+97
2021-11-16Texture Cache: Correctly fix Blits Rescaling.Fernando Sahmkow1-9/+12
2021-11-16shader: Fix TextureSize check on rescaling.Fernando Sahmkow1-27/+21
2021-11-16texture_cache: Disable dst_image scaling in BlitImageameerj1-5/+7
Fixes scaling in Super Mario Party
2021-11-16emit_spirv: Fix RescalingLayout alignmentameerj2-3/+3
2021-11-16shader: Properly scale image reads and add GL SPIR-V supportReinUsesLisp25-77/+228
Thanks for everything!
2021-11-16shader: Properly blacklist and scale image loadsReinUsesLisp5-11/+31
2021-11-16texture_cache: Add getter to query if image view is rescaledReinUsesLisp5-22/+12
2021-11-16vk_rasterizer: Minor style changeReinUsesLisp1-2/+2
2021-11-16gl_texture_cache: Fix scaling blitsReinUsesLisp1-20/+12
2021-11-16glsl/glasm: Pass and use scaling parameters in shadersReinUsesLisp9-28/+51
2021-11-16gl_rasterizer: Properly scale viewports and scissorsReinUsesLisp1-23/+24
2021-11-16gl_texture_cache: Fix multi layered texture Scaleameerj1-11/+15
2021-11-16gl_compute_pipeline: Add downscale factor to shader uniformsameerj1-0/+9
2021-11-16gl_rasterizer: Fix rescale dirty state checkingameerj1-4/+9
2021-11-16gl_graphics_pipeline: Add downscale factor to shader uniformsameerj4-5/+19
2021-11-16texture_cache: Fix blacklists on computeReinUsesLisp1-1/+1
2021-11-16texture_cache: Simplify image view queries and blacklistingReinUsesLisp16-192/+192
2021-11-16Vulkan: Fix downscaling Blit.Fernando Sahmkow1-14/+18
2021-11-16Texture Cache: Implement Rating System.Fernando Sahmkow5-15/+47
2021-11-16OpenGL: set linear mag filter when blitting a downscaled image.Fernando Sahmkow1-0/+1
2021-11-16Vulkan: Fix AA when rescaling.Fernando Sahmkow1-1/+1
2021-11-16Texture Cache: Implement Blacklisting.Fernando Sahmkow5-4/+90
2021-11-16main: Add resolution scale label in the status barMorph2-2/+12
Shows the resolution scale as "Scale: {}x" in the status bar, where {} is a floating point value representing the current resolution scaling factor.
2021-11-16vulkan: Implement rescaling shader patchingReinUsesLisp8-27/+103
2021-11-16vk_texture_cache: Properly scale blit source imagesReinUsesLisp1-2/+2
2021-11-16vk_graphics_pipeline: Use Shader::NumDescriptors when possibleReinUsesLisp1-18/+6
2021-11-16opengl: Use Shader::NumDescriptors when possibleReinUsesLisp3-46/+20
2021-11-16spirv: Implement rescaling patchingReinUsesLisp8-5/+86
2021-11-16shader/rescaling_pass: Patch more instructionsReinUsesLisp1-4/+101
2021-11-16shader: Add IsTextureScaled opcodeReinUsesLisp10-0/+34
2021-11-16texture_cache: Add image gettersReinUsesLisp2-0/+16
2021-11-16shader: Add copy constructor to instructionsReinUsesLisp4-1/+20
2021-11-16shader: Add integer division opcodesReinUsesLisp9-0/+37
2021-11-16common/settings: Remove unused scaling optionsReinUsesLisp2-18/+7
2021-11-16shader: Fix rescaling passReinUsesLisp1-1/+1
2021-11-16gl_texture_cache: Simplify rescalingameerj2-19/+15
2021-11-16texture_cache: Fix typo in aliased image rescalingameerj1-1/+1
2021-11-16vk_texture_cache: Simplify and optimize scaling blitsReinUsesLisp1-106/+62
2021-11-16vk_texture_cache: Fix scaling blit validation errorsReinUsesLisp1-81/+78
2021-11-16shader: Fix resolution scaling passReinUsesLisp5-35/+32
2021-11-16shader: Add resolution down factor opcodeReinUsesLisp9-0/+25
2021-11-16gl_texture_cache: Implement ScaleDownameerj2-26/+36
2021-11-16gl_texture_cache: Rescale fixes for multi-layered texturesameerj2-16/+32
2021-11-16Texture Cache: Implement Rescaling on Aliases and Blits.Fernando Sahmkow1-5/+53
2021-11-16Fix blits with mipsReinUsesLisp1-12/+16
2021-11-16Fix blitsReinUsesLisp1-10/+10
2021-11-16renderer_gl: Resolution scaling fixesameerj3-61/+107
2021-11-16TextureCache: Fix rescaling of ImageCopiesFernando Sahmkow3-18/+67
2021-11-16TextureCache: Modify Viewports/Scissors according to Rescale.Fernando Sahmkow6-35/+93
2021-11-16Settings: eliminate rescaling_factor.Fernando Sahmkow7-37/+19
2021-11-16Texture Cache: More rescaling fixes.Fernando Sahmkow4-84/+96
2021-11-16gl_texture_cache: WIP texture rescaleameerj2-3/+69
2021-11-16Texture Cache: Implement Vulkan UpScaling & DownScalingFernando Sahmkow6-42/+327
2021-11-16ShaderDecompiler: Add initial support for rescaling.Fernando Sahmkow2-0/+73
2021-11-16Settings: Add resolution scaling to settings.Fernando Sahmkow6-5/+155
2021-11-16VideoCore: Initial Setup for the Resolution Scaler.Fernando Sahmkow11-18/+255
2021-11-16Replace keys error pop upMatías Locatti1-2/+2
Fight me.
2021-11-14Replace "Light" theme by "Default"Romain Failliot2-25/+27
This reflects the current behavior: Light = System default. If your system is set to dark theme, then Light = Dark, which is a bit confusing for the end user. In this PR, I propose to change "Light" with "Default". This way, the user has "Default" and "Default Colorful", which will apply the system theme. Now that the Flatpak respects the system theme, I think this makes much more sense. I also simplified the theme update. Before the code was branching between the default theme and the others, but I think we can have something simpler by forcing the default theme if no theme is defined in the settings, or if the selected theme doesn't exist. And if there's an error, tell the theme name in the error message.
2021-11-13codes: Rename ComposeFrameHeader to ComposeFrameameerj7-14/+14
These functions were composing the entire frame, not just the headers. Rename to more accurately describe them.
2021-11-13vp8: Implement header compositionameerj4-6/+90
Enables frame decoding with FFmpeg
2021-11-13codecs: Add VP8 codec classameerj9-20/+90
2021-11-11program_metadata: Add default ThreadInfo kernel capabilityOatmealDome1-1/+4
2021-11-08applets/swkbd: Fix text check message encodingMorph1-7/+15
The text check message can be encoded in UTF-8.
2021-11-08applets/swkbd: Skip text checking if the text has been confirmedMorph8-26/+36
Confirm means that the text has already been checked by the application to be correct, but is asking the user for confirmation. The confirmation text itself seems to be corrupted though, this needs to be investigated. Fixes the software keyboard in Famicom Detective Club: The Missing Heir
2021-11-05service/pctl: Stub EndFreeCommunicationNarr the Reg1-1/+8
- Used by Just Dance 2022
2021-11-05vulkan_device: Add missing vulkan image format R5G6B5 in GetFormatPropertiesFeng Chen1-0/+1
- Used by Dragon Quest Builders
2021-11-05core: Reorder perf_stats destruction order on Shutdownameerj1-1/+1
Avoids the gpu_core using perf_stats after it's been freed.
2021-11-04general: Get the current process program id directly from the systemMorph21-56/+42
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
2021-11-04general: Rename GetTitleID to GetProgramIDMorph24-43/+46
2021-11-04service: aoc: Stub NotifyUnmountAddOnContentMorph2-1/+9
Used by Animal Crossing: New Horizons v2.0.0 DLC
2021-11-04service: aoc: Stub NotifyMountAddOnContent and NotifyMountAddOnContentMorph2-0/+21
Used by Animal Crossing: New Horizons v2.0.0 DLC
2021-11-04service/acc: Rename Unknown160 to InitializeApplicationInfoV2german773-3/+3
2021-11-04service: acc: Stub acc:u0 '160'Morph3-0/+9
- Used by Animal Crossing: New Horizons v2.0.0 Since the name is currently unknown, '160' is used as a placeholder.
2021-11-04core: Fix transitive include build errorsameerj5-0/+9
2021-11-04core: Remove unused includesameerj133-221/+1
2021-11-04Simply legacy attribute implementFeng Chen3-152/+125
2021-11-03svc: Correct WaitSynchronization num_handles param typeMorph2-4/+4
num_handles is a s32
2021-11-02general: Remove MakeResult helpersMorph13-69/+48
This is made obsolete by the presence of implicit constructors.
2021-11-02hle/result: Amend ResultVal documentationMorph1-12/+10
This amends the documentation slightly to reflect the updated interface.
2021-11-02hle/result: Reimplement ResultVal using Common::ExpectedMorph1-117/+63
Common::Expected effectively provides the same functions as ResultVal, so we can implement it with this. This can be replaced with std::expected with minimal effort should it be standardized in the C++ Standard Template Library.
2021-11-02common: Implement a subset of P0323 (std::expected)Morph2-0/+988
This implementation is based on and is a subset of the proposed implementation of std::expected https://github.com/TartanLlama/expected/blob/master/include/tl/expected.hpp
2021-11-02 Refactor Logging ImplLevi Behunin4-28/+41
Loop on stop_token and remove final_entry in Entry. Move Backend thread out of Impl Constructor to its own function. Add Start function for backend thread. Use stop token in PopWait and check if entry filename is nullptr before logging.
2021-11-02Shader Cahe: Fix Phi Nodes on GLASM.Fernando Sahmkow1-1/+1
2021-11-01ShaderCache: Fix Phi Nodes Type on OGL.Fernando Sahmkow3-2/+30
2021-11-01gl_rasterizer: Remove unused includesMorph1-4/+2
This removes unused includes, especially the core includes which were causing this file to be recompiled every time files included by those headers are modified.
2021-10-31ShaderCache: Order Phi Arguments from farthest away to nearest.Fernando Sahmkow5-0/+37
2021-10-31Support gl_FogFragCoord attributevonchenplus3-48/+58
2021-10-30yuzu qt: Disable the screensaver with SDL2lat9nq2-1/+23
Disables the screen saver when a game boots using SDL2 so that it works on any supported platform.
2021-10-30profile_manager: Resize any image bigger than 256pgerman771-0/+11
2021-10-29CMakeLists: Document the /GT compile optionMorph1-0/+1
2021-10-29file_sys: control_metadata: Add BrazilianPortugueseMorph2-2/+4
2021-10-29ns: language: Add BrazilianPortuguese to ApplicationLanguageMorph2-1/+26
It seems that Nintendo finally filled that last empty spot in ApplicationLanguage for a total of 16 supported languages.
2021-10-29gl_device: Force GLASM on NVIDIA drivers 495-496lat9nq1-0/+15
GLSL shaders currently do not render correctly on the recent NVIDIA drivers. This adds a check that forces assembly shaders for these drivers since they seem unaffected and adds a warning informing of the decision. Developers can disable the check by enabling graphics debugging.
2021-10-28hle/result: Declare copy/move constructor/assignment as noexceptMorph1-3/+3
While we're at it, we can also declare these copy/move constructor/assignment as noexcept.
2021-10-28hle/result: Add move assignment operator in ResultValMorph1-0/+20
ResultVal was missing a move assignment operator, add it.
2021-10-28hle/result: Remove cv-qualifiers from Arg in MakeResultMorph1-2/+2
This removes the const qualification for types when MakeResult(arg) is used in a const member function, allowing for automatic deduction and removing the need to manually specify the non-const type as the template argument.
2021-10-27Fix dangling kernel objects when exitingFeng Chen2-11/+13
2021-10-27Revert PR7009Feng Chen2-15/+5
2021-10-27Fix memory leakFeng Chen4-0/+38
2021-10-26Support gl_BackSecondaryColor attributevonchenplus3-0/+33
2021-10-26Support gl_FrontSecondaryColor attributevonchenplus3-0/+33
2021-10-26Support gl_BackColor attributevonchenplus3-0/+33
2021-10-26Geometry property removal and rewordingMoonlacer2-9/+1
2021-10-24TexturePass: Fix clamping of images as this allowed negative indices.Fernando Sahmkow1-1/+1
2021-10-24Fixed ARM_Dynamic_64 StepAndrew Strelsky1-1/+1
2021-10-24Fixup channel submit IOCTL syncpoint parametersBilly Laws2-21/+9
The current arguments worked by happenstance as games only ever submit one syncpoint and request one fence back, if a game were to do something other than this then the arguments would've been parsed entirely wrong.
2021-10-23Vulran Rasterizer: address feedback.Fernando Sahmkow1-3/+5
2021-10-23Revert "input_common: Fix data race on GC implementation"Fernando S2-120/+115
2021-10-22Fix vulkan viewport issueFeng Chen1-0/+1
2021-10-20common/alignment: Fix VS2022 compilationameerj1-1/+6
VS2022 seems to introduce an optimization when moving vectors to check for equality of the element values. AlignmentAllocator needed to overload the equality operator to fix compilation of its usage in vector moving.
2021-10-20input_common: Fix VS2022 compilation errorsameerj1-39/+35
2021-10-17emit_spirv_image: Fix depth image implicit lod sample in computeameerj1-5/+16
Ensures all drivers behave the same way in this case.
2021-10-17settings: Remove std::chrono usageameerj7-24/+20
Alleviates the dependency on chrono for all files that include settings.h
2021-10-17add_linkMoonlacer1-2/+2
remove_accident fix_whoopsie
2021-10-17Shader Compiler: avoid overflowed indices on indixed samplers.Fernando Sahmkow1-1/+2
2021-10-16SVC: Implement svcInfo:IdleTickCountFernando Sahmkow2-0/+22
Used by the Witcher 3
2021-10-16main: fix typo in warning messageRomain Failliot1-1/+1
2021-10-16main: Add missing make_unique for uiMorph1-1/+1
2021-10-16service/vi: Stub IHOSBinderDriver::TransactParcel GetBufferHistory (#7184)Feng Chen1-1/+11
2021-10-16qt_web_browser: Add missing QApplication includeMorph1-0/+1
2021-10-16NvHost/Core: Address Feedback.Fernando Sahmkow3-19/+27
2021-10-16Suspend temporallyFernandoS273-1/+31
2021-10-16NVHost_Ctrl: Force wait if the gpu falls behind too long.FernandoS272-0/+13
2021-10-15ui: fix crash when closing configure windowRomain Failliot1-2/+5
This crash happens 100% of the time (on Linux at least), you just need to open the configure window and click OK. It seems to happen when the tabs are destroyed and once all the tabs are destroyed, a final signal is sent with `index == -1`. So `debug_tab_tab` doesn't exist anymore when this happens, so the crash.
2021-10-15bootmanager: Forward declare System and SystemResultStatusMorph1-1/+5
2021-10-15yuzu: Construct system in GMainWindowMorph2-81/+83
2021-10-15core: Move ResultStatus outside of SystemMorph7-67/+69
Allows it to be a forward declaration in other header files.
2021-10-15yuzu_cmd: Remove remaining static system instancesMorph1-3/+2
2021-10-15core: Remove static system instanceMorph2-28/+5
2021-10-15Hide mouse cursor by defaultRomain Failliot1-1/+1
2021-10-15main: Slightly refactor NCA entry installation in InstallNCA (#7181)Creak1-8/+6
* main: Slightly refactor NCA entry installation in InstallNCA Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-10-15main: Use std::unique_ptr for uiMorph2-137/+142
2021-10-15configuration: Use std::make_unique instead of operator new for uiMorph13-14/+15
2021-10-15config: Read network_interfacelat9nq2-0/+9
Let's yuzu_cmd use a network interface. Also adds it to the default ini.
2021-10-15settings_ui: Better NVDEC Description For Each Video Rendering Option (#7165)Moonlacer1-3/+3
* better_description * Revert "better_description" This reverts commit 3a152a6ba6f2d6e02530b69a8194e4db302c8acd. * better_nvdec_wording * best_performance * update_word_stuff * another_update
2021-10-14string_util: Make use of std::string_view and add bounds checkingMorph2-5/+5
Makes use of std::string_view in StringFromFixedZeroTerminatedBuffer and add bounds checking
2021-10-14string_util: Prevent out of bounds access in u16string_view bufferMorph1-2/+2
2021-10-13KPageTable: Perform ranged invalidation when unmapping code memoryMorph1-0/+2
Co-Authored-By: Fernando S. <1731197+FernandoS27@users.noreply.github.com>
2021-10-12common/fs/path_util: Slightly refactor PathManagerImpl's constructorCreak1-12/+15
This moves all GenerateYuzuPath calls outside of the platofrm-specific #ifdefs, replacing them with assignments to paths.
2021-10-12Create local variables for mouse and wheel positionsRomain Failliot1-5/+9
2021-10-12Fix a few warningsRomain Failliot3-6/+5
- configure_input_player_widget.cpp: always better to use `const auto &` whenever possible - profiler.cpp: `ev->pos()` is deprecated, replace with `ev->position()`, which returns floats, thus the addition of `.toPoint()` (same as what's happening in `pos()`) - game_list.cpp: `QString::SplitBehavior` is deprecate, use `Qt::` namespace instead
2021-10-11input_common/sdl: Fix joystick rangegerman771-3/+4
2021-10-11main: Add option to reset window size to 900pameerj3-36/+53
2021-10-11applets/web: Fallback to loader to get the manual romfs if none is foundFeng Chen1-0/+10
2021-10-11vic: Use the minimum of surface/frame dimensions when writing the final frame to the GPUameerj1-16/+15
Addresses possible buffer overflow behavior.
2021-10-10h264: Use max allowed max_num_ref_frames when using CPU decodingFeng Chen1-1/+6
2021-10-09vic: Allow surface to be higher than frameValeri1-2/+3
Touhou Genso Wanderer Lotus Labyrinth R decodes 1920x1080 videos into 1920x1088 surface. Only allow mismatch for height, since larger width would result in increasingly offset rows and somewhat defeat entire purpose of this check.
2021-10-08Update configure_tas.uiLevi Behunin1-8/+0
Remove the geometry property again(7045) after 7090 re-added.
2021-10-08vic: Avoid memory corruption when multiple streams with different dimensions are decodedameerj1-0/+9
This is a work around to avoid buffer overflow errors until multi channel/multi stream decoding is supported.
2021-10-07vic: Refactor frame writing methodsameerj2-138/+146
2021-10-07discord_impl: Remove global system instanceslat9nq3-6/+13
2021-10-07game_list: Remove global instances of Core::Systemlat9nq5-13/+19
2021-10-07configuration: Add const qualifier where ablelat9nq18-31/+28
2021-10-07yuzu qt: Remove global system instances from config, WaitTree, mainlat9nq69-636/+688
2021-10-07kernel: hle_ipc: Foward declare KAutoObjectMorph2-1/+2
2021-10-07service: Reduce header include overheadMorph31-39/+11
2021-10-07vic: Implement RGBX frame formatameerj2-3/+15
2021-10-04Vulkan: Fix failing barrier on refresh.Fernando Sahmkow1-1/+2
2021-10-04RasterizerInterface: Correct size of CPU addresses to cache.FernandoS271-1/+1
2021-10-04Vulkan: Fix the master SemaphoreFernandoS271-4/+12
2021-10-03nvflinger: Use jthread and stop_token for VSync threadameerj2-32/+8
Avoids a destruction data race that may occur on the vsync thread
2021-10-03nvhost_ctrl: Refactor usage of gpu.LockSync()ameerj3-35/+16
This seems to only be used to protect a later gpu function call. So we can move the lock into that call instead.
2021-10-03gpu: Migrate implementation to the cpp fileameerj19-632/+875
2021-10-02service: am: Make use of Exit to exit the currently running applicationMorph1-2/+2
This also moves the call to the end to ensure services are properly destructed on exit.
2021-10-02yuzu: main: Register a callback for ExitMorph4-0/+17
2021-10-02core: Add Exit and ExitCallbackMorph2-0/+25
This allows ISelfController::Exit to stop the currently running application. This is typically used by homebrew to exit back to the homebrew menu after calling consoleExit with libnx.
2021-10-02service: Replace service event creation with ServiceContext::CreateEventMorph26-271/+367
The service context helps to manage all created events and allows us to close them upon destruction.
2021-10-02network: Do not log IP addressMorph1-2/+0
Logging this may be a privacy concern for some users.
2021-10-02common/logging: Reduce scope of fmt includeameerj4-1/+5
2021-10-02common/logging: Move Log::Entry declaration to a separate headerameerj12-17/+48
This reduces the load of requiring to include std::chrono in all files which include log.h
2021-10-01main: Don't add an extra separator when the title version is absentlat9nq1-2/+7
Some titles, such as homebrew, do not have any version string. Because yuzu hard codes the title bar string assuming a version string is preset, booting homebrew causes yuzu to add an extra separator with no content between. This uses a lambda expression to prevent that from happening.
2021-09-30prevent access violation from iob in Memory::IsValidVirtualAddressAndrew Strelsky1-1/+5
2021-09-29Fixed invalid iterator usageAndrew Strelsky1-1/+1
2021-09-29style: Remove extra space preceding the :: operatorMorph8-10/+10
2021-09-29CMakeLists: Remove BoxCat build optionMorph1-4/+0
2021-09-29settings: Remove BCAT settingsMorph5-17/+0
2021-09-29configure_network: Remove BCATMorph3-208/+0
2021-09-29service: bcat: Remove BoxCat BCAT implementationMorph4-631/+0
The current implementation of BoxCat as it stands is non-functional due to the reliance on a server providing BCAT files. This implementation will eventually be replaced with one that allows the use of local BCAT files dumped from a Nintendo Switch.
2021-09-29configure_tas: Remove help button from dialog windowMoonlacer1-0/+1
2021-09-29configure_tas: Ensure dialog buttons always stay at the bottomMoonlacer1-146/+187
Previously, the dialog buttons would be floating in-place when the dialog is stretched downwards. This change ensures that the dialog buttons always stay at the bottom of the window.
2021-09-29externals: Remove libzipMorph1-1/+1
2021-09-29file_sys: Remove vfs_libzipMorph3-103/+0
2021-09-29Fix KShareMemory object leakFeng Chen5-3/+106
2021-09-28vk_graphics_pipeline: Force patch list topology when tessellation is usedameerj1-1/+10
Fixes a crash on some drivers when tessellation is used but the IA topology is not patch list.
2021-09-27service/es: Update to 13.0.0german771-0/+6
2021-09-27service/npns: Update to 13.0.0german771-0/+1
2021-09-27service/vi: Update to 13.0.0german772-0/+2
2021-09-27service/am: Update to 13.0.0german771-0/+4
2021-09-27service/audio: Update to 13.0.0german772-1/+10
2021-09-27service/hid: Update to 13.0.0german772-0/+10
2021-09-27service/btdrv: Update to 13.0.0german771-0/+4
2021-09-27service/usb: Update to 13.0.0german771-3/+3
2021-09-25Fix KScopedAutoObject object leak when SendSyncRequestFeng Chen1-6/+8
2021-09-25service: bsd: Stub ReadMorph1-6/+5
- Used by Diablo II: Resurrected
2021-09-24service: bsd: Implement ReadMorph2-1/+15
- Used by Diablo II: Resurrected
2021-09-24general: Update style to clang-format-12ameerj13-66/+62
2021-09-24video_core: Fix jthread related hangs when stopping emulationameerj2-2/+2
jthread on some compilers is more picky when it comes to the order in which objects are destroyed.
2021-09-24vk_texture_cache: Disable cube compatibility flag on non-mesa AMD GCN4 and earlierameerj3-11/+22
Fixes rainbow textures on BOTW.
2021-09-24Vulkan Query Cache: make sure to wait for the query result.Fernando Sahmkow1-1/+2
2021-09-24QueryCache: Flush queries in order of running.Fernando Sahmkow1-4/+4
2021-09-23Use subdirectory of main data directory for QtWebEngine storagev19931-0/+3
Previously, an unrelated directory was used for this. Keep everything together for consistency.
2021-09-23Vulkan Rasterizer: Correct DepthBias/PolygonOffset on Vulkan.Fernando Sahmkow6-3/+29
2021-09-23core/profile_select: Avoid uninitialized read in SelectProfile()Lioncash1-1/+2
The default constructor of UUID doesn't initialize its data members, so we need to directly initialize it to be invalid.
2021-09-22common/uuid: Add validity checking functions to interfaceLioncash4-7/+14
Given we have a function to invalidate, we should also have ones to query the validity. Also makes the code more straightforward to read.
2021-09-22Clean-up and nitsLevi Behunin1-121/+60
Remove redundent label, rearange checkboxs to keep same 3 per column layout, remove unneeded properties.
2021-09-21Clean-upLevi Behunin1-44/+14
Numerize names, remove unneeded properties and spacer.
2021-09-20maxwell_dma: Minor refactoringameerj2-33/+33
2021-09-20buffer_cache: Minor fixesameerj2-6/+4
Loop through the tmp_intervals by reference, rather than by copy, and fix gl clear buffer size calculation.
2021-09-19Tas configure ui nitsLevi Behunin1-4/+4
Text looked cramped on my pc (Ubuntu 21.04). Re-flowed text as well for nicer read.
2021-09-18UI: Relocate tas menu and add brief descriptiongerman7710-68/+148
2021-09-18input_common/tas: new update methodgerman775-17/+4
2021-09-18input_common/tas: Document the main classgerman778-51/+153
2021-09-18input_common/tas: Add swap controllergerman778-39/+99
2021-09-18input_common/tas: overwrite file dialoggerman773-20/+16
2021-09-18input_common/tas: Fallback to simple updateMonsterDruide110-102/+60
2021-09-18config: Move TAS options to it's own menugerman7719-184/+452
2021-09-18core: Hacky TAS syncing & load pausingMonsterDruide19-107/+140
To keep the TAS inputs synced to the game speed even through lag spikes and loading zones, deeper access is required. First, the `TAS::UpdateThread` has to be executed exactly once per frame. This is done by connecting it to the service method the game calls to pass parameters to the GPU: `Service::VI::QueueBuffer`. Second, the loading time of new subareas and/or kingdoms (SMO) can vary. To counteract that, the `CPU_BOOST_MODE` can be detected: In the `APM`-interface, the call to enabling/disabling the boost mode can be caught and forwarded to the TASing system, which can pause the script execution if neccessary and enabled in the settings.
2021-09-18main: TAS Playback state labelMonsterDruide12-0/+10
During script playback/recording, the user has to see what happens currently. For that, a new label has been added to the bottom-left corner, always displaying the current state of the TASing system.
2021-09-18settings: File selector & other settingsMonsterDruide19-2/+104
First of all, TASing requires a script to play back. The user can select the parent directory at `System -> Filesystem`, next to an option to pause TAS during loads: This requires a "hacky" setup deeper in the code and will be added in the last commit. Also, Hotkeys are being introduced: CTRL+F5 for playback start/stop, CTRL+F6 for re-reading the script and CTRL+F7 for recording a new script.
2021-09-18input_common/tas: Base playback & recording systemMonsterDruide114-9/+818
The base playback system supports up to 8 controllers (specified by `PLAYER_NUMBER` in `tas_input.h`), which all change their inputs simulataneously when `TAS::UpdateThread` is called. The recording system uses the controller debugger to read the state of the first controller and forwards that data to the TASing system for recording. Currently, this process sadly is not frame-perfect and pixel-accurate. Co-authored-by: Naii-the-Baf <sfabian200@gmail.com> Co-authored-by: Narr-the-Reg <juangerman-13@hotmail.com>
2021-09-18If not on Windows, disable raw inputValeri1-0/+4
This way, if someone copies their Windows config to other OS, they won't be stuck without web applet for no apparent reason.
2021-09-18Hide XInput bypass on non-Windows OSesValeri1-0/+4
Follow-up to #6950. This option is a no-op on other OSes and only serves to spread confusion there.
2021-09-17host_shaders: Remove opengl_copy_bgra.compameerj4-19/+0
2021-09-17gl_texture_cache: Migrate BGRCopyPass from util_shadersameerj4-42/+48
The BGR copies no longer use shaders.
2021-09-16vulkan_device: Reorder Float16Int8 declarationameerj1-1/+2
This variable was going out of scope before its usage in the vulkan device creation, causing a crash on very specific drivers.
2021-09-16Revert "Merge pull request #7006 from FernandoS27/a-motherfucking-driver"ameerj1-13/+1
This reverts commit 62e88d0e7455e37840db7e2a8e199bc6ca176966, reversing changes made to edf3da346f4ec0ca492b427f4f693d56e84abc52.
2021-09-16fix_clang_errorMoonlacer1-1/+0
2021-09-16util_shaders: Unify BGRA copy passesameerj5-82/+36
2021-09-16fix_accidental_deletionMoonlacer1-1/+2
2021-09-16remove-audio-stretching-settingMoonlacer8-30/+1
2021-09-16vk_scheduler: Use std::jthreadameerj2-17/+9
2021-09-16gpu: Use std::jthread for async gpu threadameerj5-69/+18
2021-09-16threadsafe_queue: Add std::stop_token overload to PopWaitameerj1-5/+22
Useful for jthreads which make use of the threadsafe queues.
2021-09-15audin_u: Return a buffer event in RegisterBufferEventlat9nq2-2/+12
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2021-09-15audin_u: stub Start, RegisterBufferEvent, AppendAudioInBufferAutolat9nq2-26/+57
This also moves IAudioIn's definition to the header. Required for Splatoon 2 LAN play.
2021-09-15Build System: Build with JCC Erratum MitigationFernando Sahmkow1-0/+5
2021-09-15Spir-V: Rescale the frag depth to 0,1 mode when -1,1 mode is used in Vulkan.Fernando Sahmkow1-1/+7
2021-09-15ngct: Stub MatchNarr the Reg1-1/+14
Needed for Cruis'n Blast
2021-09-14renderers: Log total pipeline countMorph2-0/+4
2021-09-14vfs: Partially implement GetFileTimeStampRawMorph8-1/+83
Gets rid of homebrew warnings using this func
2021-09-14core: Destroy main_process during shutdownameerj1-3/+12
The main_process was never being cleaned up, causing a noticeable memory leak after subsequent launches. This change cleans up the memory during Core Shutdown, mitigating the leak.
2021-09-14vulkan_debug_callback: Ignore InvalidCommandBuffer-VkDescriptorSet errorsameerj1-0/+1
This validation error is spammed on some titles, asserting that VkDescriptorSet 0x0[] was destroyed. This is likely a validation layer bug when using VK_KHR_push_descriptor, which can avoid using traditional VkDescriptorSet. It should be safe to ignore for now.
2021-09-13Vulkan: Disable VK_EXT_SAMPLER_FILTER_MINMAX in GCN AMD since it's broken.Fernando Sahmkow1-6/+20
2021-09-13Vulkan: Blacklist Int8Float16 Extension on AMD on driver 21.9.1Fernando Sahmkow1-1/+13
2021-09-13Vulkan/Descriptors: Increase sets per pool on AMFD propietary driver.Fernando Sahmkow3-3/+14
2021-09-13common_funcs: Add enum flag bitwise shift operator overloadsMorph1-0/+16
This adds bitwise shift operator overloads (<<, >>, <<=, >>=) in the macro DECLARE_ENUM_FLAG_OPERATORS(type)
2021-09-13vk_swapchain: Use immediate present mode when mailbox is unavailable and FPS is unlockedameerj3-4/+38
Allows drivers that do not support VK_PRESENT_MODE_MAILBOX_KHR the ability to present at a framerate higher than the monitor's refresh rate when the FPS is unlocked.
2021-09-12vk_rasterizer: Fix dynamic StencilOp updating when two faces are enabledameerj1-6/+8
This function was incorrectly using the stencil_two_side_enable register when dynamically updating the StencilOp.
2021-09-12vk_state_tracker: Remove unused functionameerj1-4/+0
2021-09-12FS: Mark recursive CreateDirectory as inaccurate and temporaryMorph1-0/+5
2021-09-12main: Apply confirm exit setting in exit locked scenariosameerj1-11/+9
Some titles set an exit lock through HLE, which prompts an exit confirmation when stopping emulation if the system is locked. This change allows bypassing this confirmation if the setting to confirm exits has been disabled by the user.
2021-09-11shader_environment: Add missing <algorithm> includeMorph1-0/+1
2021-09-11vk_descriptor_pool: Add missing <algorithm> includeMorph1-0/+1
2021-09-11slot_vector: Add missing <algorithm> includeMorph1-0/+1
2021-09-11video_core/memory_manager: Add missing <algorithm> includeMorph1-0/+2
2021-09-11kernel: Add missing <functional> includeMorph1-0/+1
2021-09-11file_sys/kernel_executable: Add missing <string> includeMorph1-0/+1
2021-09-11codec: Add missing <string_view> includeMorph1-0/+1
2021-09-11common_funcs: Replace <algorithm> with <iterator>Morph1-1/+1
2021-09-11common: Move error handling to error.cpp/hMorph6-18/+34
This allows us to avoid implicitly including <string> every time common_funcs.h is included.
2021-09-10am: Implement GetNotificationStorageChannelEventgerman772-2/+16
2021-09-10hid: Stub SetTouchScreenConfigurationgerman773-1/+28
2021-09-10input_common: Enable steam controllers and 8 player supportgerman778-11/+35
2021-09-10api_version: Update and add AtmosphereTargetFirmwareMorph1-5/+12
2021-09-08Addressed issuesChloe1-1/+1
Co-authored-by: Mai M. <mathew1800@gmail.com>
2021-09-08Mark is_complete as atomicChloe Marcec2-4/+5
2021-09-08Addressed issuesChloe Marcec3-15/+14
2021-09-08Detail adjustmentFeng Chen1-13/+14
2021-09-08Detail adjustmentFeng Chen2-28/+35
2021-09-07Re-implement get unused locationFeng Chen1-30/+30
2021-09-07Move attribute related definitions to spirv anonymous namespaceFeng Chen4-30/+26
2021-09-07input_common: Add alternative string for joyconsgerman771-2/+16
2021-09-07nvflinger: Use external surface format for framebuffer creationameerj3-7/+8
The format member the IGBPBuffer may not always specify the correct desired format. Using the external format member ensures a valid format is provided when creating the framebuffer. Fixes homebrew using the wrong framebuffer format.
2021-09-07Fix blend equation enum errorFeng Chen1-4/+4
2021-09-06Second part of Golden's PRMoonlacer2-3/+3
2021-09-06Rename all shader cache references to pipeline cacheMatías Locatti1-4/+4
After Hades, both OpenGL and Vulkan use a pipeline cache instead of single stages of the graphics pipeline. Renamed the Remove menu entries to match.
2021-09-06address name shadowing with systemChloe Marcec1-2/+2
2021-09-06account: EnsureTokenIdCacheAsyncChloe Marcec4-19/+154
Closes #2547, #6946
2021-09-06FS: Recursively create directories for CreateDirectoryChloe Marcec1-8/+13
Originally we only created the parent directory, this caused issues for creating directories which also contained subdirectories, eg `/Folder1/Folder2` This allows the ultimate mod manager homebrew to at least boot
2021-09-06Dynamic get unused locationFeng Chen1-27/+49
2021-09-06Implement intput and output fixed fnc texturesFeng Chen4-19/+25
2021-09-05core: hle: service: buffer_queue: Improve management of KEvent.bunnei3-14/+24
2021-09-04core: hle: service: nvflinger/vi: Improve management of KEvent.bunnei4-16/+30
2021-09-04core: cpu_manager: Use jthread.bunnei2-18/+13
2021-09-03Rename parametersFeng Chen5-14/+24
2021-09-03Fix create GraphicsPipelines crashFeng Chen1-5/+5
2021-09-02renderer_vulkan: Wait on present semaphore at queue submitameerj5-26/+33
The present semaphore is being signalled by the call to acquire the swapchain image. This semaphore is meant to be waited on when rendering to the swapchain image. Currently it is waited on when presenting, but moving its usage to be waited on in the command buffer submission allows for proper usage of this semaphore. Fixes the device lost when launching titles on the Intel Linux Mesa driver.
2021-09-02Add input/output locationFeng Chen1-5/+13
2021-09-02common/logging: Add missing includegerman771-0/+1
2021-08-31emit_glsl_warp: Fix shuffle ops for 64-thread warp sizesameerj1-24/+36
2021-08-31emit_glsl_warp: Fix ballot related ops for 64-thread warp sizesameerj1-24/+38
2021-08-31emit_spirv_warp: Fix shuffle ops for 64-thread warp sizesameerj1-1/+29
2021-08-31emit_spirv_warp: Fix ballot related ops for 64-thread warp sizesameerj1-10/+11
2021-08-31Add colorfront and txtcoord supportFeng Chen5-0/+57
2021-08-30structured_control_flow: Skip reordering nested demote branches.ameerj1-0/+11
Nested demote branches add complexity with combining the condition if it has not been initialized yet. Skip them for the time being.
2021-08-30structured_control_flow: Conditionally invoke demote reorder passameerj7-10/+23
This is only needed on select drivers when a fragment shader discards/demotes.
2021-08-29Garbage Collection: Make it more agressive on high priority mode.Fernando Sahmkow3-5/+5
2021-08-29Garbage Collection: Adress Feedback.Fernando Sahmkow4-17/+23
2021-08-29vulkan_device: Enable VK_KHR_swapchain_mutable_format if availableameerj3-0/+27
Silences validation errors when creating sRGB image views of linear swapchain images
2021-08-29vk_swapchain: Prefer linear swapchain format when presenting sRGB imagesameerj3-11/+10
Fixes broken sRGB when presenting from a secondary GPU.
2021-08-28Garbage Collection: enable as default, eliminate option.Fernando Sahmkow9-26/+2
2021-08-28VideoCore: Rework Garbage Collection.Fernando Sahmkow6-101/+213
2021-08-28structured_control_flow: Add DemoteCombinationPassameerj1-1/+107
Some drivers misread data when demotes are interleaved in the program. This moves demote branches to be checked at the end of the program. Fixes "wireframe" issue in Pokemon SwSh on some drivers
2021-08-27ngct: Stub NGCT:U servicegerman776-0/+72
2021-08-27Revert "logging: Display backtrace on crash"Morph2-114/+1
2021-08-27service: nifm: Populate fields in GetCurrentNetworkProfileMorph1-29/+37
Populates the current_address, subnet_mask, and gateway fields from the selected network interface.
2021-08-27service: nifm: Cleanup GetCurrentIpConfigInfoMorph1-26/+21
2021-08-27network_interface: Cleanup codeMorph1-76/+83
2021-08-27network_interface: Replace default return value with std::nulloptMorph1-6/+6
2021-08-27emit_spirv_context_get_set: Fix Get FrontFace return valueameerj1-2/+3
The IR expects GetAttribute to return an F32 value. This case was returning a U32 instead.
2021-08-26Revert "kernel: Various improvements to scheduler"bunnei23-224/+140
2021-08-26vp9_types: Minor refactor of VP9 info structs.ameerj1-32/+29
2021-08-26vp9_types: Remove unused Vp9PictureInfo membersameerj2-24/+1
2021-08-25vulkan_device: Add a check for int8 supportameerj3-9/+19
Silences validation errors when shaders use int8 without specifying its support to the API
2021-08-24logging: Fix log filter during initializationameerj4-12/+16
The log filter was being ignored on initialization due to the logging instance being initialized before the config instance, so the log filter was set to its default value. This fixes that oversight, along with using descriptive exceptions instead of abort() calls.
2021-08-22CMakeLists: Ensure proper numerusform tags are generated for pluralized translationsLioncash1-1/+8
If we don't set an explicit source and target language for the base english translation, then we'll generate an incorrect number of <numerusform> tags (which Transifex doesn't like).
2021-08-21settings: Amend language_index maximum setting rangeMorph1-1/+1
The maximum is now 17 with the addition of Brazilian Portuguese
2021-08-21vk_rasterizer: Only clear depth and stencil buffers when set in attachment aspect maskameerj3-6/+24
Silences validation errors for clearing the depth/stencil buffers of framebuffer attachments that were not specified to have depth/stencil usage.
2021-08-19GPU_MemoryManger: Fix GetSubmappedRange.Fernando Sahmkow1-0/+1
2021-08-19Replace QPoint with QPointF where applicableValeri1-16/+18
Previously, floats were implicitly cast to integers
2021-08-19qt_software_keyboard: fix copy-paste errorValeri1-1/+1
2021-08-19video_core: eliminate constant ternaryValeri1-1/+1
`via_header_index` is already checked above, so it would never be true in this branch
2021-08-19applet_error: Fix 64-bit error code conversionMorph1-6/+25
2021-08-19SPIR-V: Merge two ifs in EmitGetAttributeValeri1-6/+2
2021-08-19Fix crash in logging in CreateStrayLayerValeri1-1/+1
It was trying to log value of layer_id which is specifically known not to exist, potentially leading to segfault. Log display_id instead.
2021-08-19Fix check is thread current in GetThreadContextValeri1-1/+1
Misplaced break made it only check for the first core.
2021-08-16h264: Lower max_num_ref_framesameerj1-1/+2
GPU decoding seems to be more picky when it comes to the maximum number of reference frames.
2021-08-16configure_graphics: Add GPU nvdec decoding as an optionameerj12-27/+120
Some system configurations may see visual regressions or lower performance using GPU decoding compared to CPU decoding. This setting provides the option for users to specify their decoding preference. Co-Authored-By: yzct12345 <87620833+yzct12345@users.noreply.github.com>
2021-08-16codec: Improve libav memory alloc and cleanupameerj2-14/+19
2021-08-16codec: Fallback to CPU decoding if no compatible GPU format is foundameerj2-22/+32
2021-08-16cmake: Add VDPAU and NVDEC support to FFmpeglat9nq1-0/+1
Adds {h264_,vp9_}{nvdec,vdpau} hwaccels.
2021-08-16vk_blit_screen: Fix non-accelerated texture size calculationameerj2-9/+3
Addresses the potential OOB access in UnswizzleTexture.
2021-08-16kernel: Optimize GetHostThreadIDBreadFish641-10/+13
2021-08-16network_interface: correct formattingSönke Holz1-1/+1
2021-08-16network_interface: fix mingw-w64 buildspholz1-1/+1
2021-08-16network: retrieve subnet mask and gateway infoSönke Holz5-24/+137
2021-08-15xbyak: Update include pathMerry3-3/+3
2021-08-14core: hle: kernel: Disable dispatch count tracking on single core.bunnei3-5/+12
- This would have limited value, and would be a mess to handle properly.
2021-08-13threadsafe_queue: Fix deadlockyzct123451-6/+4
This fixes a lost wakeup in SPSCQueue. If the reader is in just the right position, the writer's notification will be lost and this will be a problem if the writer then does something to wait on the reader. This was discovered to affect my upcoming stacktrace PR. I don't think any performance decrease will be noticeable because an uncontended mutex is smart enough to skip the syscall. This PR might also resolve some rare deadlocks but I don't know of any examples.
2021-08-13logging: Display backtrace on crashyzct123452-1/+114
This implements backtraces so we don't have to tell users how to use gdb anymore. This prints a backtrace after abort or segfault is detected. It also fixes the log getting cut off with the last line containing only a bracket. This change lets us know what caused a crash not just what happened the few seconds before it. I only know how to add support for Linux with GCC. Also this doesn't work outside of C/C++ such as in dynarmic or certain parts of graphics drivers. The good thing is that it'll try and just crash again but the stack frames are still there so the core dump will work just like before.
2021-08-13logging: Simplify and make thread-safeyzct123458-292/+243
This simplifies the logging system. This also fixes some lost messages on startup. The simplification is simple. I removed unused functions and moved most things in the .h to the .cpp. I replaced the unnecessary linked list with its contents laid out as three member variables. Anything that went through the linked list now directly accesses the backends. Generic functions are replaced with those for each specific use case and there aren't many. This change increases coupling but we gain back more KISS and encapsulation. With those changes it was easy to make it thread-safe. I just removed the mutex and turned a boolean atomic. I was planning to use this thread-safety in my next PR about stacktraces. It was actually async-signal-safety at first but I ended up using a different approach. Anyway getting rid of the linked list is important for that because have the list of backends constantly changing complicates things.
2021-08-13configuration: fix mingw-w64 buildSönke Holz1-2/+2
2021-08-13network: don't use reinterpret_cast in GetAvailableNetworkInterfacesspholz1-7/+4
2021-08-13network: fix mingw-w64 buildSönke Holz1-4/+4
The header "combaseapi.h" of mingw-w64 defines "interface" as "struct".
2021-08-13network: don't use assert to check if no network interfaces are returnedSönke Holz1-2/+4
2021-08-13configuration: move network_interface include to source fileSönke Holz2-2/+1
2021-08-13network: use Common::BitCast instead of std::bit_castSönke Holz1-2/+3
2021-08-13network: narrow down scope of "result" in win32 code forSönke Holz1-4/+5
GetAvailableNetworkInterfaces
2021-08-13configuration: use tr instead of QStringLiteral for "None" item inSönke Holz1-1/+1
network interface combobox
2021-08-13network: use explicit bool conversions in GetAvailableNetworkInterfacesSönke Holz1-1/+1
2021-08-13network: initialize ip_addr in GetHostIPv4Address()Sönke Holz1-1/+1
2021-08-13nifm: use operator*() instead of .value() to get value of std::optionalSönke Holz1-2/+2
2021-08-13nifm: treat a missing host IP address as a non-critical errorSönke Holz1-2/+2
2021-08-12network: correct formatting in network.cpp and network_interface.cppSönke Holz2-8/+6
2021-08-12configuration: add option to select network interfacespholz15-90/+278
This commit renames the "Services" tab to "Network" and adds a combobox that allows the user to select the network interface that yuzu should use. This new setting is now used to get the local IP address in Network::GetHostIPv4Address. This prevents yuzu from selecting the wrong network interface and thus using the wrong IP address. The return type of Network::GetHostIPv4Adress has also been changed.
2021-08-12input_common: Disable sdl raw input modegerman771-0/+3
2021-08-12codec: Replace deprecated av_init_packet usageameerj1-9/+13
2021-08-12nvdec: Implement GPU accelerated decoding for all platformsameerj2-70/+92
Supplements the VAAPI intel gpu decoder by implementing the D3D11VA decoder for Windows, and CUVID/VDPAU for Nvidia and AMD on drivers linux respectively.
2021-08-12decoders: Templates allow memcpy optimizationsyzct123451-57/+116
2021-08-11settings: Fix MSVC issueslat9nq1-7/+22
According to https://stackoverflow.com/questions/469508, we run into a MSVC bug (since VS 2005) when using diamond inheritance for RangedSetting. This explicitly implements those functions in RangedSetting. GetValue is implemented as just calling the inherited version. The explicit converson operator is reimplemented. I opted for this over ignoring the warning with a pragma since this specifies the inherited behavior, and I have now less faith in MSVC to pick the right one. In addition, we mark destructors as virtual to silence what I believe is a fair MSVC compilation error.
2021-08-10vic: Specify sws_scale height stride.ameerj1-3/+2
Silences a sws_scale runtime warning about unaligned strides.
2021-08-08yuzu-cmd/CMakeLists: Correct attribution for this function.Fernando Sahmkow2-0/+2
2021-08-08vp9: Ensure the first frame is completeameerj2-3/+3
Silences a runtime error due to the first frame missing the frame data, and being set to hidden despite being a key-frame.
2021-08-08texture_cache: Address ameerj's reviewyzct123453-7/+4
2021-08-08configure_general: Swap positions of speed limit and frame limit optionsameerj1-30/+30
2021-08-08input_common: Improve SDL joystick and hide toggle optiongerman774-33/+76
2021-08-07input_common: Fix data race on GC implementationRodrigo Locatti2-115/+120
2021-08-07main: Avoid stopping emulation when taking a screenshotgerman771-5/+2
2021-08-07core: hle: kernel: k_thread: Mark KScopedDisableDispatch as nodiscard.bunnei1-1/+1
2021-08-07core: cpu_manager: Use invalid core_id on init and simplify shutdown.bunnei1-7/+3
2021-08-07core: hle: service: buffer_queue: Improve management of KEvent.bunnei3-14/+24
2021-08-07core: hle: kernel: k_auto_object: Add GetName method.bunnei1-0/+4
- Useful purely for debugging.
2021-08-07core: hle: service: nvflinger/vi: Improve management of KEvent.bunnei4-16/+30
2021-08-07core: hle: kernel: DisableDispatch on suspend threads.bunnei1-0/+3
2021-08-07core: hle: kernel: k_scheduler: Improve DisableScheduling and EnableScheduling.bunnei1-14/+9
2021-08-07core: cpu_manager: Use KScopedDisableDispatch.bunnei1-7/+8
2021-08-07core: hle: kernel: Use CurrentPhysicalCoreIndex as appropriate.bunnei1-6/+2
2021-08-07core: hle: kernel: k_scheduler: Remove unnecessary MakeCurrentProcess.bunnei1-5/+0
2021-08-07core: hle: kernel: k_scheduler: Improve ScheduleImpl.bunnei1-6/+7
2021-08-07core: hle: kernel: k_scheduler: Improve Unload.bunnei1-17/+29
2021-08-07core: hle: kernel: k_process: DisableDispatch on main thread.bunnei1-0/+1
2021-08-07core: hle: kernel: k_handle_table: Use KScopedDisableDispatch as necessary.bunnei2-0/+8
2021-08-07core: hle: kernel: k_thread: Add KScopedDisableDispatch.bunnei2-1/+47
2021-08-07core: hle: kernel: Ensure idle threads are closed before destroying scheduler.bunnei3-24/+22
2021-08-07core: hle: kernel: Reflect non-emulated threads as core 3.bunnei7-13/+15
2021-08-07core: cpu_manager: Use jthread.bunnei2-18/+13
2021-08-07vulkan_memory_allocator: Respect bufferImageGranularityRobin Kertels2-2/+8
2021-08-07nvdec: Better logging for unimplemented codecsameerj1-1/+1
2021-08-07memory: Address lioncash's reviewyzct123451-52/+6
2021-08-07memory: Dedup Read and Write and fix logging bugsyzct123451-129/+115
2021-08-07texture_cache: Address ameerj's reviewyzct123454-10/+5
2021-08-07network: GetAndLogLastError: ignore Errno::AGAINSönke Holz1-1/+5
If non-blocking sockets are used, they generate a lot of Errno::AGAIN errors when they didn't receive any data. These errors shouldn't be logged.
2021-08-07network: GetCurrentIpConfigInfo: return host IP addressSönke Holz1-1/+4
Service::NIFM::IGeneralService::GetCurrentIpConfigInfo currently hardcodes 192.168.1.100 as the IP address, which prevents LAN play from working correctly.
2021-08-07nvhost_nvdec_common: Remove BufferMapameerj2-76/+0
This was mainly used to keep track of mapped buffers for later unmapping. Since unmap is no longer implemented, this no longer seves a valuable purpose.
2021-08-07vp9: Cleanup unused variablesameerj3-58/+17
With reference frames refreshes fix, we no longer need to buffer two frames in advance. We can also remove other unused or otherwise unneeded variables.
2021-08-07vp9: Fix reference frame refreshesameerj2-48/+31
This resolves the artifacting when decoding VP9 streams.
2021-08-07nvhost_nvdec_common: Stub UnmapBuffer Ioctlameerj1-23/+4
Skip unmapping nvdec buffers to avoid breaking the continuity of the VP9 reference frame addresses, and the risk of invalidating data before the async GPU thread is done with it.
2021-08-06network: fix fcntl cmdsSönke Holz1-2/+2
F_SETFL/F_GETFL are the correct commands to set a socket to be non-blocking
2021-08-06common: uuid: Add hash function for UUIDMorph1-0/+11
Used when UUID is a key in an unordered_map. The hash is produced by XORing the high and low 64-bits of the UUID together.
2021-08-05memory: Clean up CopyBlock tooyzct123451-36/+15
2021-08-05Update configure_graphics_advanced.uigidoly1-2/+5
add description too fast gpu time
2021-08-05texture_cache: Don't change copyright yearyzct123454-4/+4
2021-08-05texture_cache: Address ameerj's reviewyzct1234512-1821/+1821
2021-08-05memory: Address lioncash's reviewyzct123452-7/+8
2021-08-05memory: Clean up codeyzct123452-329/+81
2021-08-05assert: Verify formattingyzct123451-2/+6
2021-08-05assert: Avoid empty macrosyzct123451-2/+2
2021-08-05texture_cache: Split templates outyzct123457-1532/+1533
2021-08-05applet_swkbd: Include the null terminator in the buffer size calculationMorph1-2/+4
Some games may interpret the read string as a null-terminated string instead of just reading the string up to buffer_size.
2021-08-05hex_util: Fix incorrect array size in AsArrayMorph1-1/+1
Although this isn't used, this is a potential bug as HexStringToArray will perform an out-of-bounds read.
2021-08-04config: Read connected setting for controllerslat9nq1-0/+3
Currently yuzu will read the mapping but does not connect a controller despite adding subsequent configurations for it. Read the `connected` setting for now as a boolean like the Qt frontend.
2021-08-04settings_ui: Add emulated joystick position dot to controller previewgerman772-21/+46
2021-08-04common: uuid: Add hex string to UUID constructorMorph2-0/+73
This allows for easily converting a hex string into a Common::UUID, which is backed by a 128 bit unsigned integer.
2021-08-04nvdec: Implement VA-API hardware video acceleration (#6713)yzct123455-72/+175
* nvdec: VA-API * Verify formatting * Forgot a semicolon for Windows * Clarify comment about AV_PIX_FMT_NV12 * Fix assert log spam from missing negation * vic: Remove forgotten debug code * Address lioncash's review * Mention VA-API is Intel/AMD * Address v1993's review * Hopefully fix CMakeLists style this time * vic: Improve cache locality * vic: Fix off-by-one error * codec: Async * codec: Forgot the GetValue() * nvdec: Address ameerj's review * codec: Fallback to CPU without VA-API support * cmake: Address lat9nq's review * cmake: Make VA-API optional * vaapi: Multiple GPU * Apply suggestions from code review Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com> * nvdec: Address ameerj's review * codec: Use anonymous instead of static * nvdec: Remove enum and fix memory leak * nvdec: Address ameerj's review * codec: Remove preparation for threading Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-08-03config: Only read/write current_user on global configlat9nq1-5/+6
2021-08-02network: fix ternary operator in Socket::SendTospholz1-1/+1
2021-08-02decoders: Optimize swizzle copy performance (#6790)yzct123451-9/+43
This makes UnswizzleTexture up to two times faster. It is the main bottleneck in NVDEC video decoding.
2021-08-01yuzu-cmd: hide cursor when in fullscreensan4-0/+9
Exposed the SDL_ShowCursor function to EmuWindow baseclass. When creating the window (GL or VK) in fullscreen it now automatically hides the cursor.
2021-08-01game_list: Make game list folder icons smaller (#6762)Malte Jürgens6-28/+70
Makes the default game list folder icons 48x48 by default instead of 64x64, and allows for selecting small (24x24) and large (72x72) icon sizes.
2021-08-01service: set: Correct copy amount in GetAvailableLanguageCodesMorph1-1/+2
2021-08-01astc_decoder: Reduce workgroup sizeameerj3-5/+5
This reduces the amount of over dispatching when there are odd dimensions (i.e. ASTC 8x5), which rarely evenly divide into 32x32.
2021-08-01astc_decoder: Compute offset swizzles in-shaderameerj4-109/+25
Alleviates the dependency on the swizzle table and a uniform which is constant for all ASTC texture sizes.
2021-08-01astc_decoder: Make use of uvec4 for payload dataameerj1-79/+43
2021-08-01astc_decoder: Simplify Select2DPartitionameerj1-38/+19
2021-08-01astc_decoder: Optimize the use EncodingDataameerj6-138/+108
This buffer was a list of EncodingData structures sorted by their bit length, with some duplication from the cpu decoder implementation. We can take advantage of its sorted property to optimize its usage in the shader. Thanks to wwylele for the optimization idea.
2021-08-01astc.h: Move data to cpp implementationameerj2-64/+63
Moves leftover values that are no longer used by the gpu decoder back to the cpp implementation.
2021-07-31settings: Use std::clamp where possiblelat9nq1-39/+9
Addresses PR review Co-authored-by: PixelyIon <pixelyion@protonmail.com>
2021-07-31hle: api_version: Update HOS version to 12.1.0Morph1-7/+7
Keeps us up to date with reporting the system version.
2021-07-31settings: Remove unnecessary std::move usageslat9nq1-12/+12
Addresses review feedback. Co-authored-by: Mai M. <mathew1800@gmail.com>
2021-07-30settings: Fix function virtualizationlat9nq1-12/+18
Fixes a theoretical scenario where a Setting is using the BasicSetting's GetValue function. In practice this probably only happens on yuzu-cmd, where there is no need for a Setting's additional features. Need to fix regardless.
2021-07-30settings: Implement setting rangeslat9nq1-18/+152
Clamps the setting's values against the specified minimum and maximum values.
2021-07-30emu_window: Remove global system instancelat9nq7-12/+23
It was just the one in emu_window_sdl2, but since _gl and _vk inherit from it, they all needed adjustments. Leaves just the one auto system& in main().
2021-07-30applet_swkbd: Correct string buffer size calculationMorph1-2/+2
The buffer size here does not include the initial 8 bytes.
2021-07-30configure_system: Add Brazilian Portuguese to the list of languagesMorph2-1/+6
2021-07-30service: set: Correct 4.0.0 max_entries to 0x40 (64) instead of 17Morph1-8/+8
2021-07-30service: ns, set: Add PT_BR (Brazilian Portuguese)Morph3-2/+6
2021-07-30shader: Fold UnpackFloat2x16 and PackFloat2x16ReinUsesLisp1-0/+4
Simplifies the code a bit when possible. These instructions should be no-ops codegen wise.
2021-07-29vk_rasterizer: Flip viewport on Y_NEGATEReinUsesLisp1-2/+7
Matches OpenGL's behavior. I don't believe this register flips geometry, but we have to try to match behavior on both backends.
2021-07-29renderers: Add explicit invert_y bool to screenshot callbackameerj5-7/+7
OpenGL and Vulkan images render in different coordinate systems. This allows us to specify the coordinate system of the screenshot within each renderer
2021-07-29renderer_vulkan: Implement screenshotsameerj2-0/+152
2021-07-29vk_blit_screen: Add public CreateFramebuffer methodameerj2-14/+18
2021-07-29vk_blit_screen: Make Draw method more genericameerj3-55/+71
Allows specifying the framebuffer and render area dimensions, rather than being hard coded for the render window.
2021-07-28shader: Mark ConvertF16F32 and ConvertF32F16 as fp16 instructionsReinUsesLisp1-0/+2
Fixes instances where fp16 types are not declared on SPIR-V but they are used. This shouldn't happen on master, as it's been uncovered by an additional optimization pass.
2021-07-28renderer_vulkan: Add setting to log pipeline statisticsReinUsesLisp19-24/+307
Use VK_KHR_pipeline_executable_properties when enabled and available to log statistics about the pipeline cache in a game. For example, this is on Turing GPUs when generating a pipeline cache from Super Smash Bros. Ultimate: Average pipeline statistics ========================================== Code size: 6433.167 Register count: 32.939 More advanced results could be presented, at the moment it's just an average of all 3D and compute pipelines.
2021-07-27host_memory: Add workaround for FreeBSD 12Jan Beich1-0/+5
src/common/host_memory.cpp:360:14: error: use of undeclared identifier 'memfd_create' fd = memfd_create("HostMemory", 0); ^
2021-07-27host_memory: Enable Linux implementation on FreeBSDJan Beich1-2/+2
HW.Memory <Critical> common/host_memory.cpp:HostMemory:492: Fastmem unavailable, falling back to VirtualBuffer for memory allocation
2021-07-27qt_web_browser: Fix lambda capture for HIDButtonjls471-1/+1
2021-07-27qt_web_browser: Focus on the first link elementjls473-0/+22
Focusing on the first link element fixes element navigation upon loading the web applet in games such as Super Mario Odyssey
2021-07-27service: ns: Remove unused ns_language headerMorph1-42/+0
2021-07-27service: ns: Map ZH_TW and ZH_CN to Traditional/Simplified ChineseMorph1-0/+2
2021-07-27render_target: Add missing initializer for size extentLioncash1-3/+3
Everything else has a default constructor that does the straightforward thing of initializing most members to a default value, except for the size. We explicitly initialize the size (and others, for consistency), to prevent potential uninitialized reads from occurring. Particularly given the largeish surface area that this struct is used in.
2021-07-27video_core/engine: Consistently initialize rasterizer pointersLioncash2-2/+2
Ensures all of the engines have consistent and deterministic initialization of the rasterizer pointers.
2021-07-27vulkan_wrapper: Fix SetObjectName() always indicating objects as imagesLioncash1-1/+1
We should be using the passed in object type instead.
2021-07-27buffer_cache: Remove unused small_vector in CommitAsyncFlushesHigh()Lioncash1-1/+0
Given this is non-trivial, the constructor is required to execute, so this removes a bit of redundant codegen.
2021-07-27gl_shader_cache: Remove unused variableLioncash1-1/+0
2021-07-27vk_compute_pass: Remove unused capturesLioncash1-3/+2
Resolves two compiler warnings.
2021-07-27exception: Make constructors explicitLioncash1-4/+4
Ensures that exception construction is always explicit.
2021-07-27exception: Make what() member function nodiscardLioncash1-1/+1
2021-07-27exception: Narrow down specific headerLioncash1-1/+1
We can use the <exception> header instead of pulling in all of the exception-style classes.
2021-07-27common: fs: fs_util: Add BufferToUTF8StringMorph2-0/+15
Allows for direct conversion to std::string without having to convert std::u8string to std::string
2021-07-27common: uuid: Return a lower-case hex string in FormatMorph3-15/+15
2021-07-26vk_staging_buffer_pool: Fall back to host memory when allocation failsRobin Kertels1-8/+21
2021-07-26vk_stream_buffer: Remove unused stream bufferReinUsesLisp2-244/+0
Remove unused file.
2021-07-26configure_graphics: reword GLASM optionVamsi Krishna1-1/+1
Change wording to explain that GLASM is actually short for Assembly Shaders
2021-07-26vk_compute_pass: Fix pipeline barrier for indexed quadsReinUsesLisp1-1/+1
Use an index buffer barrier instead of a vertex input read barrier.
2021-07-26vk_buffer_cache: Add transform feedback usage to null bufferReinUsesLisp1-3/+7
Fixes bad API usages on Vulkan.
2021-07-26emit_glasm: Fix LINESS_ADJACENCY typo in InputPrimitive()Lioncash1-1/+1
This should be LINES_ADJACENCY
2021-07-26emit_spirv_instructions: Add missing header guardLioncash1-0/+2
2021-07-26shader_recompiler: Remove unnecessary [[nodiscard]] instancesLioncash2-4/+4
[[nodiscard]] doesn't do anything on functions with a void return type and causes superfluous warnings.
2021-07-26control_flow: Fix duplicate switch case in OpcodeTokenLioncash1-1/+1
This previously duplicated the case of the PBK case above it.
2021-07-26object_pool: Add missing return in Chunk move assignment operatorLioncash1-0/+1
Prevents undefined behavior from occurring.
2021-07-26shader: Fold integer FMA from Nvidia's patternReinUsesLisp1-0/+175
Fold shaders doing "a * b + c" on integers from the pattern generated by Nvidia's GL compiler. On a somewhat complex compute shader it reduces the code size by 16 instructions from 2 matches on Turing GPUs. On Intel as extracted from KHR_pipeline_executable_properties: Before the optimization: ``` Instruction Count: 2057 Basic Block Count: 45 Scratch Memory Size: 14752 Spill Count: 232 Fill Count: 261 SEND Count: 610 Cycle Count: 11325 ``` After the optimization: ``` Instruction Count: 2046 Basic Block Count: 44 Scratch Memory Size: 13728 Spill Count: 219 Fill Count: 268 SEND Count: 604 Cycle Count: 11367 ```
2021-07-26shader: Use TryInstRecursive on XMAD multiply foldingReinUsesLisp1-14/+12
Simplify a bit the logic.
2021-07-26shader: Add TryInstRecursive utility to valuesReinUsesLisp1-0/+8
2021-07-25main: Fix screenshot filepath constructionameerj1-1/+1
The screenshot directory path returned does not have a trailing directory separator character. This caused screenshots to be saved in the parent directory of the configured screenshot directory. This fixes that behavior
2021-07-24renderer_base: Removed redundant settingsameerj3-12/+4
use_framelimiter was not being used internally by the renderers. set_background_color was always set to true as there is no toggle for the renderer background color, instead users directly choose the color of their choice.
2021-07-24general: Rename "Frame Limit" references to "Speed Limit"ameerj16-77/+77
This setting is best referred to as a speed limit, as it involves the limits of all timing based aspects of the emulator, not only framerate. This allows us to differentiate it from the fps unlocker setting.
2021-07-24config, nvflinger: Add FPS cap settingameerj8-6/+49
Allows finer tuning of the FPS limit.
2021-07-23configuration: Use combobox apply template where possiblelat9nq2-35/+2
We don't need to manually apply this setting now that a template can do this for us.
2021-07-23general: Implement FullscreenMode enumerationlat9nq8-28/+38
Prevents us from using an unclear 0 or 1 to describe the fullscreen mode.
2021-07-23common: Publically link to pthreadslat9nq1-1/+1
Common requires pthreads but does not refer to it when linking to other modules. Fix this by linking to Threads where necessary.
2021-07-23shader: Support out of bound local memory reads and immediate writesReinUsesLisp1-4/+21
Support ignoring immediate out of bound writes. Writing dynamically out of bounds is not yet supported (e.g. R0+0x4). Reading out of bounds yields zero. This is supported checking for the size from the IR; if the input is immediate, the optimization passes will drop it.
2021-07-23vulkan/blit_image: Commit descriptor sets within worker threadReinUsesLisp1-9/+7
Fixes race condition caused. The descriptor pool is not thread safe, so we have to commit descriptor sets within the same thread.
2021-07-23vulkan_device: Blacklist Volta and older from VK_KHR_push_descriptorReinUsesLisp1-4/+39
Causes crashes on Link's Awakening intro. It's hard to debug if it's our fault due to bugs in validation layers.
2021-07-23qt: Remove "experimental" from asynchronous shader building UIReinUsesLisp1-1/+1
2021-07-23Revert "renderers: Disable async shader compilation"ReinUsesLisp2-5/+3
This reverts commit 4a152767286717fa69bfc94846a124a366f70065.
2021-07-23opengl: Fix asynchronous shadersReinUsesLisp2-4/+33
Wait for shader to build before configuring it, and wait for the shader to build before sharing it with other contexts.
2021-07-23shader_environment: Receive cache version from outsideReinUsesLisp4-16/+23
This allows us invalidating OpenGL and Vulkan separately in the future.
2021-07-23cmake: Remove shader cache versionReinUsesLisp3-12/+1
2021-07-23shader: Fix disabled attribute default valuesameerj2-2/+2
2021-07-23gl_device: Simplify GLASM setting logicameerj1-15/+8
2021-07-23glsl: Simplify FCMP emissionameerj1-6/+4
2021-07-23glsl: Update TessellationControl gl_inameerj1-0/+28
Adheres to GL_ARB_separate_shader_objects requirements
2021-07-23renderer_opengl: Use ARB_separate_shader_objectsReinUsesLisp9-116/+154
Ensures that states set for a particular stage are not attached to other stages which may not need them.
2021-07-23shader: Implement ISETP.Xameerj4-44/+57
2021-07-23shader: Avoid usage of C++20 ranges to build in clangReinUsesLisp11-39/+47
2021-07-23glsl: Clamp shared mem size to GL_MAX_COMPUTE_SHARED_MEMORY_SIZEameerj3-2/+12
2021-07-23gl_shader_cache: Properly implement asynchronous shadersReinUsesLisp1-1/+1
2021-07-23shader_recompiler, video_core: Resolve clang errorslat9nq14-44/+40
Silences the following warnings-turned-errors: -Wsign-conversion -Wunused-private-field -Wbraced-scalar-init -Wunused-variable And some other errors
2021-07-23main: Update Shader Cache menu optionsameerj4-16/+64
This change adds two new context menu items to remove either the OpenGL or the Vulkan shader caches individually, and the provides the option to remove all caches for the selected title. This also changes the behavior of the open shader cache option. Now it creates the shader cache directory for the title if it does not yet exist.
2021-07-23renderers: Fix clang formattingameerj4-9/+13
2021-07-23shader: Manually convert from array<u32> to bitset instead of using bit_castReinUsesLisp1-2/+3
2021-07-23renderers: Disable async shader compilationameerj2-3/+5
The current implementation is prone to causing graphical issues. Disable until a better solution is implemented.
2021-07-23maxwell_to_vk: Add R16_SNORMReinUsesLisp2-1/+2
2021-07-23configure_graphics: Mark SPIR-V as Experimental, Mesa onlylat9nq1-1/+1
2021-07-23glsl: Fix tracking of info.uses_shadow_lodameerj1-4/+4
2021-07-23shader: Ignore global memory ops on devices lacking int64 supportameerj8-30/+79
2021-07-23vulkan_device: Add missing include algorithmlat9nq1-0/+1
2021-07-23vulkan_device: Blacklist ampere devices from float16 mathameerj2-12/+23
2021-07-23dual_vertex_pass: Clang formatameerj1-14/+14
2021-07-23gl_shader_cache: Fixes for async shadersameerj2-2/+25
2021-07-23vulkan_device: Enable VK_EXT_extended_dynamic_state on RADV 21.2 onwardReinUsesLisp1-4/+7
2021-07-23emit_spirv: Workaround VK_KHR_shader_float_controls on fp16 NvidiaReinUsesLisp4-5/+12
Fix regression on Fire Emblem: Three Houses when using native fp16.
2021-07-23configure_graphics: Re-order vulkan device populatinglat9nq1-4/+4
2021-07-23shader: GCC fmt 8.0.0 fixeslat9nq7-16/+19
2021-07-23shader: Account for 33-bit IADD3 scenarioameerj1-2/+10
2021-07-23shader: Only apply shift on register mode for IADD3ReinUsesLisp1-10/+14
2021-07-23vk_rasterizer: Workaround bug in VK_EXT_vertex_input_dynamic_stateReinUsesLisp4-19/+20
Workaround potential bug on Nvidia's driver where only updating high attributes leaves low attributes out dated.
2021-07-23shader: Fix disabled and unwritten attributes and varyingsReinUsesLisp3-18/+31
2021-07-23glsl: Fix shared and local memory declarationsameerj1-3/+3
account for the fact that program.*memory_size is in units of bytes.
2021-07-23opengl: Implement LOP.CCameerj2-6/+38
Used by MH:Rise
2021-07-23vk_graphics_pipeline: Implement smooth linesReinUsesLisp5-5/+65
2021-07-23vk_graphics_pipeline: Implement line widthReinUsesLisp8-8/+36
2021-07-23spirv: Fix code emission when descriptor aliasing is unsupportedReinUsesLisp1-1/+2
Fixes OpenGL.
2021-07-23video_core: Enable GL SPIR-V shaderslat9nq7-38/+105
2021-07-23general: Add setting shader_backendlat9nq14-87/+182
GLASM is getting good enough that we can move it out of advanced graphics settings. This removes the setting `use_assembly_shaders`, opting for a enum class `shader_backend`. This comes with the benefits that it is extensible for additional shader backends besides GLSL and GLASM, and this will work better with a QComboBox. Qt removes the related assembly shader setting from the Advanced Graphics section and places it as a new QComboBox in the API Settings group. This will replace the Vulkan device selector when OpenGL is selected. Additionally, mark all of the custom anisotropic filtering settings as "WILL BREAK THINGS", as that is the case with a select few games.
2021-07-23glsl: Declare local memory in mainameerj1-3/+3
2021-07-23glsl: Add passthrough geometry shader supportameerj3-7/+27
2021-07-23shader: Use std::bit_cast instead of Common::BitCast for passthroughReinUsesLisp1-2/+3
2021-07-23glasm: Add passthrough geometry shader supportReinUsesLisp5-8/+33
2021-07-23shader: Rework varyings and implement passthrough geometry shadersReinUsesLisp29-331/+345
Put all varyings into a single std::bitset with helpers to access it. Implement passthrough geometry shaders using host's.
2021-07-23vk_graphics_pipeline: Implement conservative renderingReinUsesLisp6-10/+44
2021-07-23shader: Only verify shader when graphics debugging is enabledReinUsesLisp1-2/+7
2021-07-23shader: Unify shader stage typesReinUsesLisp15-55/+37
2021-07-23lower_int64_to_int32: Add missing includelat9nq1-0/+1
2021-07-23shader: Emulate 64-bit integers when not supportedReinUsesLisp6-2/+16
Useful for mobile and Intel Xe devices.
2021-07-23shader: Add int64 to int32 lowering passReinUsesLisp3-0/+218
2021-07-23shader: Teach global memory base tracker to follow vectorsReinUsesLisp1-15/+14
2021-07-23shader: Add constant propagation to integer vectorsReinUsesLisp1-0/+9
2021-07-23glsl: Better IAdd Overflow CC fixameerj2-11/+13
This ensures the original operand values are not overwritten when being used in the overflow detection.
2021-07-23shader: Remove IAbs64ReinUsesLisp9-26/+3
2021-07-23glsl: Fix IADD CCameerj2-5/+7
2021-07-23shader_recompiler: Fix IADD3 input partitioningameerj1-14/+13
2021-07-23shader: Move loop safety tests to code emissionReinUsesLisp16-108/+54
2021-07-23gl_graphics_pipeline: Fix assembly shaders check for transform feedbacksReinUsesLisp1-1/+1
2021-07-23glsl: Remove frag color initializationameerj1-9/+0
2021-07-23glasm: Implement SetAttribute ViewportMaskameerj2-1/+10
2021-07-23gl_graphics_pipeline: Inline hash and operator== key functionsReinUsesLisp2-12/+8
2021-07-23gl_shader_cache: Check previous pipeline before checking hash mapReinUsesLisp5-29/+41
Port optimization from Vulkan.
2021-07-23gl_graphics_pipeline: Port optimizations from Vulkan pipelinesReinUsesLisp2-57/+141
2021-07-23emit_glsl_special: Skip initialization of frag_color0ameerj1-1/+1
Fixes rendering in Devil May Cry without regressing Ori and the Blind Forest.
2021-07-23shader: Calibrate loop safety thresholdReinUsesLisp1-1/+1
2021-07-23buffer_cache: Fix debugging leftoverReinUsesLisp1-1/+1
2021-07-23glsl: Add missing ; in EmitSetSampleMaskMorph1-1/+1
Fixes shader compilation in Okami HD
2021-07-23buffer_cache: Fix size reductions not having in mind bind sizesReinUsesLisp1-7/+23
A buffer binding can change between shaders without changing the shaders. This lead to outdated bindings on OpenGL.
2021-07-23glsl: Fix output varying initialization when transform feedback is usedameerj1-3/+37
2021-07-23shaders: Allow shader notify when async shaders is disabledameerj2-11/+9
2021-07-23texture_pass: Fix is_read image qualificationameerj1-1/+1
Atomic operations are considered to have both read and write access. This was not being accounted for.
2021-07-23shader: Align constant buffer sizes to 16 bytesReinUsesLisp1-1/+2
WAR for AMD reading zeroes on uniform buffers of size 2.
2021-07-23spirv: Properly handle devices without int8 and int16ReinUsesLisp2-39/+67
2021-07-23spirv: Handle small storage buffer loads on devices with no supportReinUsesLisp2-6/+6
2021-07-23vk_graphics_pipeline: Use VK_KHR_push_descriptor when availableReinUsesLisp8-36/+88
~51% faster on Nvidia compared to previous method.
2021-07-23glsl: Fix cbuf component indexing bug falbackameerj1-7/+6
2021-07-23shader: Simplify MergeDualVertexProgramsReinUsesLisp1-6/+4
2021-07-23shader: Properly manage attributes not written from previous stagesReinUsesLisp12-41/+62
2021-07-23glsl: Only declare fragment outputs on fragment shadersReinUsesLisp1-4/+6
2021-07-23shader: Split profile and runtime info headersReinUsesLisp13-77/+93
2021-07-23shader: Add support for native 16-bit floatsReinUsesLisp9-14/+50
2021-07-23shader: Rename maxwell/program.h to translate_program.hReinUsesLisp5-11/+6
2021-07-23vulkan_device: Blacklist VK_EXT_vertex_input_dynamic_state on IntelReinUsesLisp1-0/+4
2021-07-23glsl: Obey need_declared_frag_colors to declare and initialize all frag_colorameerj2-1/+10
Fixes Ori and the blind forest title screen
2021-07-23glsl: Address rest of feedbackameerj11-38/+86
2021-07-23glsl: Move gl_Position/generic attribute initialization to EmitProlgueameerj2-14/+12
2021-07-23glsl: Conditionally use fine/coarse derivatives based on device supportameerj4-4/+29
2021-07-23glsl: Cleanup/Address feedbackameerj10-28/+24
2021-07-23gl_shader_cache: Implement async shadersameerj7-107/+154
2021-07-23glsl: Add Shader_GLSL loggingameerj3-28/+32
2021-07-23glsl: Add LoopSafety instructionsameerj2-0/+10
2021-07-23glsl: Conditionally add EXT_texture_shadow_lodameerj3-4/+15
2021-07-23glsl: Add stubs for sparse queries and variable aoffi when not supportedameerj7-13/+47
2021-07-23glsl: Implement legacy varyingsameerj6-8/+81
2021-07-23gl_shader_cache: Remove const from pipeline source argumentsameerj4-6/+6
2021-07-23gl_shader_cache: Move OGL shader compilation to the respective Pipeline constructorameerj5-76/+79
2021-07-23glsl: Minor cleanupameerj2-19/+15
2021-07-23glsl: Fix Cbuf getters for F32 typeameerj1-12/+15
2021-07-23glsl: Add immediate index oob checking for Cbuf gettersameerj1-0/+16
2021-07-23glsl: Refactor GetCbuf functions to reduce code duplicationameerj1-104/+66
2021-07-23glsl: Address more feedback. Implement indexed texture readsameerj6-114/+112
2021-07-23glsl: Remove Signed Integer variablesameerj8-43/+13
2021-07-23glsl: Address Rodrigo's feedbackameerj13-75/+87
2021-07-23glsl: Reorganize backend code, remove unneeded [[maybe_unused]]ameerj12-315/+251
2021-07-23glsl: Implement SampleId and SetSampleMaskameerj3-30/+35
plus some minor refactoring of implementations
2021-07-23glsl: Add gl_PerVertex in for GSameerj1-1/+2
2021-07-23glsl: Use existing tracking for enabling EXT_shader_image_load_formattedameerj1-15/+1
2021-07-23glsl: Enable early fragment testsameerj2-4/+7
2021-07-23gl_rasterizer: Add texture fetch barrier for fragmentsameerj1-1/+1
Fixes flicker seen in XC2
2021-07-23glsl: Implement more attribute getters and settersameerj2-12/+60
2021-07-23glsl: Implement fswzaddameerj5-5/+45
and wip nv thread shuffle impl
2021-07-23glsl: Implement indexed attribute loadsameerj5-29/+64
2021-07-23glsl: Conditionally add GL_ARB_sparse_texture2ameerj1-2/+3
2021-07-23glsl: Rebase fixesameerj2-3/+5
2021-07-23glsl: Conditionally use GL_EXT_shader_image_load_formattedameerj1-2/+18
Fix for SULD.D
2021-07-23glsl: Remove output generic indexing for geometry stageameerj1-5/+3
2021-07-23glsl: Allow dynamic tracking of variable allocationameerj3-21/+35
2021-07-23glsl: Implement barriersameerj3-13/+21
2021-07-23glsl: Implement image atomics and set layerameerj5-153/+202
along with some more cleanup/oversight fixes
2021-07-23glsl: Fix image gather logicameerj1-0/+4
2021-07-23glsl: Add cbuf access workaround for devices with component indexing bugameerj2-51/+112
2021-07-23glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupportedameerj4-8/+42
2021-07-23emit_glsl_image: Use immediate offsets when possibleameerj1-12/+33
2021-07-23glsl: Fix <32-bit SSBO writesameerj4-50/+43
and more cleanup
2021-07-23glsl: Cleanup and address feedbackameerj10-86/+69
2021-07-23glsl: Refactor Global memory functionsameerj2-71/+73
2021-07-23glsl: Increase NUM_VARS that can be allocatedameerj1-1/+1
needed for HW:AoC.
2021-07-23glsl: Implement Load/WriteGlobalameerj9-98/+185
along with some other misc changes and fixes
2021-07-23glsl: Implement Imagesameerj2-9/+74
2021-07-23glsl: skip gl_ViewportIndex write if device does not support itameerj5-8/+18
2021-07-23glsl: Implement transform feedbackameerj4-18/+76
2021-07-23glsl: Yet another gl_ViewportIndex fix attemptameerj1-3/+19
2021-07-23glsl: Add gl_ViewportIndex out attributeameerj1-1/+3
2021-07-23emit_glsl_context_get_set: Remove unused functionlat9nq1-4/+0
2021-07-23glsl: Fix precise variable declarationameerj3-24/+25
and add some more separation in the shader for better debugability when dumped
2021-07-23glsl: Implement tessellation shadersameerj5-27/+146
2021-07-23glsl: Implement ImageGradient and other texture function variantsameerj2-32/+73
2021-07-23glsl: Fix atomic SSBO offsetsameerj4-67/+74
and implement misc getters
2021-07-23glsl: Implement geometry shadersameerj4-9/+62
2021-07-23glsl: Use NotImplemented macro with function name outputameerj10-104/+103
2021-07-23glsl: Implement gl_ViewportIndexameerj3-5/+14
SSBU now working
2021-07-23glsl: SHFL fix and prefer shift operations over divide in glsl shaderameerj5-63/+64
2021-07-23glsl: Implement precise fp variable allocationameerj4-8/+67
2021-07-23HACK glsl: Write defaults to unused generic attributesameerj2-2/+11
2021-07-23glsl: Fix ssbo indexing and name shadowing between shader stagesameerj3-77/+101
2021-07-23glsl: implement set clip distanceameerj2-0/+15
and missed a diff in emit_glsl relating to var alloc ref counting
2021-07-23glsl: Rework var alloc to not assign unused resultsameerj9-49/+91
2021-07-23glsl: Rework variable allocator to allow for variable reuseameerj14-353/+482
2021-07-23glsl: Fix ATOM and implement ATOMSameerj5-114/+136
2021-07-23glsl: Use gl_SubGroupInvocationARBameerj2-8/+7
2021-07-23glsl: Implement VOTE for subgroup size potentially largerameerj5-20/+43
2021-07-23glsl: Implement VOTEameerj4-50/+64
2021-07-23glsl: Implement ST{LS}ameerj6-69/+106
2021-07-23glsl: Implement more instructions used by SMOameerj1-3/+3
2021-07-23glsl: Implement more instructions used by SMOameerj5-10/+16
2021-07-23glsl: Fix GetAttribute return valuesameerj2-7/+9
fixes font rendering issues as these were used to index into the ssbos
2021-07-23glsl: minor cleanupameerj4-20/+19
2021-07-23glsl: Fix and implement rest of cbuf accessameerj1-7/+43
2021-07-23glsl: Implement TXQ and other misc changesameerj5-6/+36
2021-07-23glsl: TLD4 implementationameerj1-2/+89
2021-07-23glsl: Implement TLD instructionameerj1-1/+55
2021-07-23glsl: Implement TEXSameerj1-1/+29
2021-07-23glsl: Cleanup texture functionsameerj1-13/+11
2021-07-23shader_recompiler: GCC fixeslat9nq14-3/+13
2021-07-23glsl: Implement TEX depth functionsameerj2-4/+46
2021-07-23glsl: Implement TEX ImageSample functionsameerj3-11/+71
2021-07-23glsl: Rework Shuffle emit instructions to align with SPIR-Vameerj1-19/+40
2021-07-23glsl: Better Storage access and wip warpsameerj8-62/+133
2021-07-23glsl: Fix integer conversions, implement clamp CCameerj2-27/+36
2021-07-23glsl: Implement IADD CCameerj2-2/+17
2021-07-23glsl: SSBO access fixes and wip SampleExplicitLod implementation.ameerj2-4/+19
2021-07-23glsl: WIP var forward declarationameerj6-49/+60
to fix Loop control flow.
2021-07-23glsl: Fix bindings, add some CC opsameerj8-57/+91
2021-07-23glsl: remove unused headersameerj14-34/+10
2021-07-23glsl: Implement derivatives and YDirectionameerj8-81/+87
plus some other misc additions/changed
2021-07-23glsl: Fix non-immediate buffer accessameerj12-72/+133
and many other misc implementations
2021-07-23glsl: textures wipameerj9-75/+139
2021-07-23glsl: Implement some attribute getters and settersameerj10-192/+337
2021-07-23glsl: Track S32 atomicsameerj3-6/+16
2021-07-23glsl: Update phi node managementameerj4-21/+53
2021-07-23glsl: Fix floating point compare opsameerj1-28/+28
Logic for ordered/unordered ops was wrong.
2021-07-23glsl: Query GL Device for FP16 extension supportameerj5-2/+23
2021-07-23glsl: Simply FP storage atomicsameerj2-48/+28
2021-07-23glsl: F16x2 storage atomicsameerj7-58/+64
2021-07-23glsl: Revert ssbo aliasing. Storage Atomics implameerj5-75/+134
2021-07-23glsl: implement phi nodesameerj4-20/+54
2021-07-23glsl: Wip storage atomic opsameerj10-327/+414
2021-07-23glsl: Implement FCMPameerj3-242/+185
2021-07-23glsl: Add a more robust fp formatterameerj4-9/+14
2021-07-23glsl: More FP fixesameerj2-9/+16
2021-07-23glsl: FP function fixesameerj7-17/+25
2021-07-23glsl: More FP instructions/fixesameerj5-28/+41
2021-07-23glsl: Add many FP32/64 instructionsameerj12-765/+1011
2021-07-23glsl: Fixup build issuesReinUsesLisp1-1/+1
2021-07-23glsl: Implement more Integer opsameerj3-119/+72
2021-07-23glsl: Implement BF*ameerj3-9/+10
2021-07-23glsl: Implement a few Integer instructionsameerj10-260/+398
2021-07-23glsl: Use std::string_view for Emit function args.ameerj6-760/+838
2021-07-23glsl: Pass IR::Inst& to Emit functionsameerj6-171/+169
2021-07-23glsl: INeg and IAdd negate testsameerj3-94/+106
2021-07-23glsl: Reusable typed variables. IADD32ameerj6-203/+311
2021-07-23glsl: Fix program linking and cbufameerj2-3/+5
2021-07-23glsl: Fix "reg" allocingameerj10-898/+938
based on glasm with some tweaks
2021-07-23glsl: Initial backendameerj28-2/+3297
2021-07-23spirv: Reduce log severity of mismatching denorm rulesReinUsesLisp1-2/+2
2021-07-23shader: Fix loop safety to SSA passReinUsesLisp2-2/+4
2021-07-23vk_rasterizer: Exit render passes on fragment barriersReinUsesLisp1-0/+1
2021-07-23vk_graphics_pipeline: Fix path with no VK_EXT_extended_dynamic_stateRodrigo Locatti1-1/+1
2021-07-23buffer_cache: Invalidate fast buffers on computeReinUsesLisp1-0/+1
2021-07-23shader: Add loggingReinUsesLisp15-28/+38
2021-07-23shader: Add shader loop safety check settingslat9nq16-35/+183
Also add a setting for enable Nsight Aftermath.
2021-07-23shader: Comment why the array component is not read in TMMLReinUsesLisp1-0/+2
2021-07-23vulkan_device: Enable VK_EXT_vertex_input_dynamic_stateReinUsesLisp1-0/+28
2021-07-23vk_pipeline_cache: Skip cached pipelines with different dynamic stateReinUsesLisp1-0/+6
2021-07-23main: Fix Open Transferable Shader Cache context itemameerj1-25/+5
Opens the new shader cache directory location for the specified title, if it exists.
2021-07-23tmml: Remove index component from coords vecameerj1-4/+3
The lod query functions exposed by the rendering API's do not make use of the texturearray layer indexing.
2021-07-23vulkan: Add VK_EXT_vertex_input_dynamic_state supportReinUsesLisp11-116/+291
Reduces the number of total pipelines generated on Vulkan. Tested on Super Smash Bros. Ultimate.
2021-07-23shader: Reorder shader cache directoriesReinUsesLisp2-18/+12
2021-07-23vk_rasterizer: Implement first indexReinUsesLisp1-2/+5
2021-07-23vulkan: Use VK_EXT_provoking_vertex when availableReinUsesLisp6-4/+52
2021-07-23spirv/convert: Catch more signed operations oversightsameerj1-5/+5
The sign bit on integers of size < 32 was not properly preserved in casts
2021-07-23spirv/convert: Catch more broken signed operations on Nvidia OpenGLReinUsesLisp1-0/+6
BitCast U32 to S32 before converting to float on drivers with broken signed operations.
2021-07-23 gl_buffer_cache: Use unorm internal formats for snorm texture buffer viewsameerj1-1/+24
Fixes black textures in UE4 games
2021-07-23shader_environment: Fix local memory size calculationsReinUsesLisp1-3/+3
2021-07-23buffer_cache: Fix copy based uniform bindings trackingReinUsesLisp2-9/+22
2021-07-23shader_environment: Add shader_local_memory_crs_size to local memory sizeameerj2-3/+3
Fixes DOOM 2016 missing local memory
2021-07-23gl_texture_cache: Create image storage viewsReinUsesLisp4-38/+126
Fixes SULD.D tests.
2021-07-23gl_shader_util: Move shader utility code to a separate fileReinUsesLisp7-245/+106
2021-07-23gl_shader_cache: Store workers in shader cache objectReinUsesLisp2-58/+78
2021-07-23vk_pipeline_cache,shader_notify: Add shader notificationsReinUsesLisp10-96/+127
2021-07-23vk_pipeline_cache: Add asynchronous shadersReinUsesLisp3-3/+33
2021-07-23vk_rasterizer: Flush work on clear and dispatchesReinUsesLisp1-0/+3
2021-07-23DMA: Restrict optimised path for BlockToLinear further.FernandoS271-1/+2
2021-07-23vk_swapchain: Handle outdated swapchainsReinUsesLisp3-17/+34
Fixes pixelated presentation on Intel devices.
2021-07-23shader: Fix VertexA Shaders.FernandoS274-19/+51
2021-07-23shader: Add 2D and 3D variants to SUATOM and SUREDReinUsesLisp1-0/+4
Used by Claybook.
2021-07-23vk_buffer_cache: Handle null texture buffersReinUsesLisp1-0/+4
Fixes a crash on Age of Calamity cutscenes.
2021-07-23nsight_aftermath_tracker: Fix SPIR-V module writesReinUsesLisp1-1/+1
2021-07-23vk_pipeline_cache: Set support_derivative_control to trueReinUsesLisp1-0/+1
2021-07-23shader: Avoid CPU side undefined behavior on I2FReinUsesLisp1-0/+2
2021-07-23glasm: Use ARB_derivative_control conditionallyReinUsesLisp6-7/+37
2021-07-23buffer_cache: Reduce uniform buffer size from shader usageReinUsesLisp11-38/+78
Increases performance significantly on certain titles.
2021-07-23transform_feedback: Read buffer stride from index instead of layoutReinUsesLisp1-1/+2
2021-07-23fixed_pipeline_state: Use regular for loop instead of ranges for perfReinUsesLisp1-2/+3
MSVC generates better code for it.
2021-07-23vk_swapchain: Avoid recreating the swapchain on each frameReinUsesLisp2-15/+9
Recreate only when requested (or sRGB is changed) instead of tracking the frontend's size. That size is still used as a hint.
2021-07-23emit_glasm_context_get_set: Remove unused variablelat9nq1-1/+0
2021-07-23shader,glasm: Implement legacy texcoord loadsReinUsesLisp3-54/+29
2021-07-23glasm: Implement legacy varyingsReinUsesLisp1-17/+56
2021-07-23shader: Track legacy varyingsReinUsesLisp2-17/+105
2021-07-23shader: Add support for "negative" and unaligned offsetsReinUsesLisp3-8/+13
"Negative" offsets don't exist. They are shown as such due to a bug in nvdisasm. Unaligned offsets have been proved to read the aligned offset. For example, when reading an U32, if the offset is 6, the offset read will be 4.
2021-07-23shader: Implement ISCADD32IReinUsesLisp1-17/+31
2021-07-23spirv: Fix output generics with componentsReinUsesLisp1-1/+1
2021-07-23vulkan: Conditionally use shaderInt16ReinUsesLisp3-2/+9
Add support for Polaris AMD devices.
2021-07-23vulkan: Enable depth bounds and use it conditionallyReinUsesLisp4-2/+17
Intel devices pre-Xe don't support this.
2021-07-23vk_buffer_cache: Add transform feedback usage to buffersReinUsesLisp1-15/+22
2021-07-23opengl: Declare fragment outputs even if they are not usedReinUsesLisp6-10/+18
Fixes Ori and the Blind Forest's menu on GLASM. For some reason (probably high level optimizations) it is not sanitized on SPIR-V for OpenGL. Vulkan is unaffected by this change.
2021-07-23buffer_cache: Mark uniform buffers as dirty if any enable bit changesReinUsesLisp5-7/+17
2021-07-23shader: Always initialize up reference in structure control flowReinUsesLisp1-31/+36
Fixes ubsan issue.
2021-07-23vulkan_device: Enable float64 and int64 conditionallyReinUsesLisp2-2/+6
Add Intel Xe support.
2021-07-23shader: Fix ImageWrite indexingReinUsesLisp1-1/+1
2021-07-23spirv: Fix image and image buffer descriptor index usageReinUsesLisp1-5/+7
2021-07-23glasm: Fix immediate texture coordinateReinUsesLisp1-0/+1
2021-07-23shader: Clang-format secondary texturesReinUsesLisp1-2/+2
2021-07-23shader: Fix secondary texturesReinUsesLisp1-2/+2
2021-07-23shader: Adhere to disk shader cache settingameerj2-9/+12
2021-07-23shader: Fix TMML queriesReinUsesLisp1-5/+9
2021-07-23shader: Fix FSwizzleAdd folding when going through phi nodesReinUsesLisp1-2/+2
2021-07-23shader/exception: Fix compilation errors on gccReinUsesLisp1-6/+6
2021-07-23glasm: Reduce reg allocation leaks from an exception to a logReinUsesLisp1-1/+1
2021-07-23texture_cache: Reduce invalid image/sampler error severityReinUsesLisp1-7/+7
2021-07-23shader: Handle host exceptionsReinUsesLisp8-45/+98
2021-07-23glasm: Use integer lod for TXQReinUsesLisp2-2/+2
2021-07-23glasm: Prepare XFB from state instead of global registersReinUsesLisp1-4/+2
2021-07-23glasm: Fix global memory fallbacksReinUsesLisp1-9/+10
2021-07-23Revert "glasm: Skip phi moves on undefined instructions"ReinUsesLisp2-16/+1
Causes regressions on Bowser's Fury.
2021-07-23glasm: Remove unintentional '\n' on Undef32ReinUsesLisp1-1/+1
2021-07-23glasm: Use storage buffers instead of global memory when possibleReinUsesLisp17-437/+503
2021-07-23glasm: Implement Y directionReinUsesLisp4-3/+9
2021-07-23glasm: Skip phi moves on undefined instructionsReinUsesLisp2-1/+16
2021-07-23glasm: Implement undef instructionsReinUsesLisp2-15/+15
2021-07-23glasm: Fix global memory callbacksReinUsesLisp1-5/+6
2021-07-23gl_shader_cache: Add disk shader cacheReinUsesLisp3-11/+116
2021-07-23video_core,shader: Clang-format fixesReinUsesLisp4-7/+12
2021-07-23gl_shader_cache: Rename Program abstractions into PipelineReinUsesLisp10-104/+104
2021-07-23glasm: Release phi node registers after they are no longer neededReinUsesLisp2-38/+54
2021-07-23glasm: Remove unintentionally committed fmt::printsReinUsesLisp1-2/+0
2021-07-23glasm: Fix INeg32 on negative immediatesReinUsesLisp1-1/+5
2021-07-23glasm: Remove unnecessary value typesReinUsesLisp3-47/+6
2021-07-23glasm: Throw when there are register leaksReinUsesLisp2-0/+7
2021-07-23glasm: Catch more register leaksReinUsesLisp8-41/+114
Add support for null registers. These are used when an instruction has no usages. This comes handy when an instruction is only used for its CC value, with the caveat of having to invalidate all pseudo-instructions before defining the instruction itself in the register allocator. This commits changes this. Workaround a bug on Nvidia's condition codes conditional execution using branches.
2021-07-23glasm: Fix usage counting on phi nodesReinUsesLisp3-8/+22
2021-07-23gl_shader_cache: Do not flip tessellation on OpenGLReinUsesLisp1-2/+1
2021-07-23gl_graphics_program: Fix texture buffer bindingsReinUsesLisp1-24/+35
2021-07-23glasm: Implement global memory fallbacksReinUsesLisp2-50/+89
2021-07-23glasm: Implement int64 add and subtractReinUsesLisp2-8/+6
2021-07-23emit_glasm_context_get_set: Remove unused variablelat9nq1-1/+0
2021-07-23glasm: Implement indirect attribute loadsReinUsesLisp4-6/+65
2021-07-23glasm: Implement image atomicsReinUsesLisp3-166/+153
2021-07-23glasm: Reorder unreachable image atomic instsReinUsesLisp1-66/+66
Reorder them to the bottom of the file for readability.
2021-07-23glasm: Implement gl_Layer storesReinUsesLisp1-0/+7
2021-07-23glasm: Implement SampleIdReinUsesLisp2-3/+3
2021-07-23glasm: Implement IsHelperInvocationReinUsesLisp2-3/+3
2021-07-23glasm: Fix EmitVertex's optimizationReinUsesLisp1-1/+1
2021-07-23gl_shader_cache: Conditionally use viewport maskReinUsesLisp1-1/+1
2021-07-23gl_shader_cache,glasm: Conditionally use typeless image reads extensionReinUsesLisp3-39/+43
2021-07-23gl_shader_cache: Improve GLASM error print logicReinUsesLisp1-7/+10
2021-07-23glasm: Implement forced early ZReinUsesLisp2-4/+8
2021-07-23glasm: Set transform feedback stateReinUsesLisp5-113/+132
2021-07-23video_core: Abstract transform feedback translation utilityReinUsesLisp6-111/+145
2021-07-23glasm: Simplify patch readsReinUsesLisp1-5/+2
2021-07-23glasm: Fix output patch readsReinUsesLisp2-13/+22
With this, Luigi's Mansion's sand renders properly.
2021-07-23gl_shader_cache: Pass shader runtime informationReinUsesLisp1-2/+74
2021-07-23shader: Split profile and runtime information in separate structsReinUsesLisp14-308/+300
2021-07-23emit_glasm_context_get_and_set.cpp: Add missing semicolonsameerj1-2/+2
2021-07-23glasm: Fix patch attribute declarationsReinUsesLisp1-1/+1
2021-07-23glasm: Implement FSWZADDameerj3-4/+28
2021-07-23glasm: Implement PrimitiveId attribute readReinUsesLisp1-0/+3
2021-07-23glasm: Implement clip distance storesReinUsesLisp2-0/+15
2021-07-23glasm: Fix tessellation input attributesReinUsesLisp1-2/+5
2021-07-23glasm: Add missing semicolon on tesscoord readingReinUsesLisp1-1/+1
2021-07-23glasm: Fix tessellation headersReinUsesLisp1-2/+2
2021-07-23glasm: Add tessellation shader declarationsReinUsesLisp1-0/+35
2021-07-23glasm: Implement TessellationEvaluationPointReinUsesLisp1-0/+4
2021-07-23gl_shader_manager: Zero initialize current assembly programsReinUsesLisp1-1/+1
2021-07-23gl_shader_manager: Remove unintentionally committed #pragmaReinUsesLisp1-2/+0
2021-07-23glasm: Implement patch memoryReinUsesLisp3-6/+51
2021-07-23glasm: Fix InvocationId declarationReinUsesLisp1-1/+1
2021-07-23glasm: Implement InvocationIdReinUsesLisp2-2/+5
2021-07-23glasm: Optimize EmitVertex into EMITReinUsesLisp1-1/+5
2021-07-23glasm: Implement geometry shader attribute readsReinUsesLisp2-4/+18
2021-07-23glasm: Properly declare attributes on geometry programsReinUsesLisp3-6/+14
2021-07-23glasm: Declare geometry program headersReinUsesLisp1-0/+35
2021-07-23renderer_opengl: State track compute assembly programsReinUsesLisp3-4/+21
2021-07-23renderer_opengl: State track assembly programsReinUsesLisp3-23/+56
2021-07-23glasm: Fix potential aliasing bug on cube array samplesReinUsesLisp2-35/+44
2021-07-23glasm: Implement ImageWriteReinUsesLisp1-4/+7
2021-07-23glasm: Implement ImageReadReinUsesLisp4-4/+56
2021-07-23glasm: Implement EmitVertex and EndPrimitiveReinUsesLisp2-4/+8
2021-07-23glasm: Implement ImageGradientReinUsesLisp2-7/+65
2021-07-23glasm: Implement 64-bit shiftsReinUsesLisp2-12/+14
2021-07-23glasm: Implement barriersReinUsesLisp1-3/+3
2021-07-23glasm: Fix compute stage nameReinUsesLisp1-1/+1
2021-07-23glasm: Fix phi instruction typesReinUsesLisp1-1/+1
2021-07-23glasm: Implement PREC on relevant instructionsReinUsesLisp1-6/+12
2021-07-23glasm: Implement stores to gl_ViewportIndexReinUsesLisp4-7/+29
2021-07-23glasm: Implement gl_PointSize storesReinUsesLisp1-0/+3
2021-07-23glasm: Implement gl_PointCoordReinUsesLisp1-0/+4
2021-07-23glasm: Implement ImageQueryLodReinUsesLisp1-3/+5
2021-07-23glasm: Implement ImageFetchReinUsesLisp4-13/+38
2021-07-23glasm: Implement IADD.CCameerj1-1/+26
2021-07-23glasm: Implement BFE.CCReinUsesLisp1-0/+8
2021-07-23glasm: Implement SelectU1ReinUsesLisp2-4/+5
2021-07-23HACK: Bind stages before and after bindingsReinUsesLisp1-0/+11
Works around a bug where program parameters are only applied to the current stage, and this one wasn't bound at the moment. Affects all SSBO usages on GLASM.
2021-07-23glasm: Implement gl_WorkGroupIDReinUsesLisp2-3/+3
2021-07-23glasm: Implement TXQ and improve texture info readsReinUsesLisp2-50/+51
2021-07-23glasm: Implement gl_FrongFacing attributeReinUsesLisp1-0/+3
2021-07-23glasm: Support textures used in more than one stageReinUsesLisp4-5/+25
2021-07-23glasm: Implement textureGather instructionsReinUsesLisp2-15/+97
2021-07-23glasm: Implement gl_FragDepth and gl_SampleMask storesReinUsesLisp2-5/+5
2021-07-23glasm: Do not alias ConditionRef for nowReinUsesLisp2-3/+2
Immediate condition refs where not handled correctly. Just move the value for now.
2021-07-23shader: Read branch conditions from an instructionReinUsesLisp12-16/+36
Fixes the identity removal pass.
2021-07-23glasm: Implement InstanceId and VertexIdReinUsesLisp1-0/+6
2021-07-23glasm: Add missing return value on move assignmentReinUsesLisp1-0/+1
2021-07-23glasm: Fix aliased bitcasts ref countingReinUsesLisp3-13/+42
2021-07-23glasm: Remove unintentional comma on vector insertReinUsesLisp1-1/+1
2021-07-23glasm: Implement TEX and TEXS instructionsReinUsesLisp10-69/+275
Remove lod clamp from texture instructions with lod, as this is not needed (nor supported).
2021-07-23glasm: Add support for non-2D texture samplesReinUsesLisp1-4/+26
2021-07-23glasm: Reorder unreachable image instructions to the bottomReinUsesLisp1-97/+97
2021-07-23glasm: Add support for texture offsetsReinUsesLisp1-11/+15
2021-07-23glasm: Improve texture sampling instructionsReinUsesLisp2-50/+70
2021-07-23emit_glasm: Enable ARB_draw_buffers when neededReinUsesLisp2-1/+5
2021-07-23emit_glasm: Add support for reading position attributesReinUsesLisp1-3/+13
2021-07-23shader_recompiler: GCC fixeslat9nq7-58/+55
Fixes members of unnamed union not being accessible, and one function without a declaration.
2021-07-23glasm: Implement rest of shared memameerj2-35/+29
2021-07-23opengl: Initial (broken) support to GLASM shadersReinUsesLisp3-14/+53
2021-07-23shader: Use a non-trivial dummy to construct ASL node unionReinUsesLisp1-1/+6
2021-07-23emit_spirv: Jump to loop body with local variableReinUsesLisp1-1/+1
Silence unused variable warning
2021-07-23glasm: Implement derivative instructions on GLASMReinUsesLisp2-12/+12
2021-07-23glasm: Initial (broken) implementation of TEX on GLASMReinUsesLisp3-299/+386
2021-07-23glasm: Implement some graphics instructions on GLASMReinUsesLisp2-6/+5
2021-07-23glasm: Add Void type to GLASM valuesReinUsesLisp3-0/+15
2021-07-23glasm: Add graphics specific shader declarations to GLASMReinUsesLisp2-6/+63
2021-07-23glasm: Implement local memory for glasmameerj4-9/+12
2021-07-23emit_spirv: Add missing block in caseReinUsesLisp1-1/+2
2021-07-23glasm: Initial implementation of phi nodes on GLASMReinUsesLisp12-25/+117
2021-07-23glasm: Write result to scalar on integer comparison instructionsReinUsesLisp1-10/+10
2021-07-23glasm: Declare NV_shader_thread_group when neededReinUsesLisp1-3/+4
2021-07-23vk_update_descriptor: Properly initialize payload on the update descriptor queueReinUsesLisp1-1/+3
2021-07-23glasm: Rework control flow introducing a syntax listReinUsesLisp33-505/+437
This commit regresses VertexA shaders, their transformation pass has to be adapted to the new control flow.
2021-07-23glasm: Implement Storage atomicsameerj5-109/+156
StorageAtomicExchangeU64 is failing test seemingly due to failure storing 64-bit result into the register
2021-07-23glasm: Ensure reg alloc order across compilers on GLASMReinUsesLisp1-11/+14
Use a struct constructor to serialize register allocation arguments to ensure registers are allocated in the same order regardless of the compiler used. The A and B functions can be called in any order when passed as arguments to "foo": foo(A(), B()) But the order is guaranteed for curly-braced constructor calls in classes: Foo{A(), B()} Use this to get consistent behavior.
2021-07-23glasm: Enable unintentionally disabled register aliasing on GLASMReinUsesLisp1-16/+11
2021-07-23glasm: Review all GLASM insts to be aware of register aliasingReinUsesLisp4-20/+51
2021-07-23glasm: Implement shuffle and vote instructions on GLASMReinUsesLisp10-100/+166
2021-07-23glasm: Add MUFU instructions to GLASMReinUsesLisp2-21/+22
2021-07-23glasm: Implement IAbs64 and INeg64 on GLASMReinUsesLisp2-6/+6
2021-07-23shader: Add floating-point rounding to I2FReinUsesLisp3-35/+42
2021-07-23glasm: Properly clamp Fp64 on GLASMReinUsesLisp1-6/+6
2021-07-23glasm: Fix register allocation when moving immediate on GLASMReinUsesLisp3-42/+89
2021-07-23glasm: Implement SelectU64 on GLASMReinUsesLisp2-4/+20
2021-07-23glasm: Fix clamps so the min value has priority on NAN on GLASMReinUsesLisp1-12/+15
2021-07-23glasm: Fix moving U64 immediates to registers in GLASMReinUsesLisp2-3/+4
2021-07-23glasm: Implement storage atomic opsameerj4-305/+358
2021-07-23glasm: Add conversion instructions to GLASMReinUsesLisp9-282/+351
2021-07-23glasm: Add fp min/max insts and fix store for fp64 on GLASMReinUsesLisp2-10/+8
2021-07-23glasm: Add logical instructions on GLASMReinUsesLisp2-12/+12
2021-07-23glasm: Remove duplicated Fp64 pack instructions on GLASMReinUsesLisp1-8/+0
2021-07-23glasm: Remove unnecesary new white space on Clamp GLASMReinUsesLisp1-4/+4
2021-07-23glasm: Add floating-point comparisons on GLASMReinUsesLisp3-120/+116
2021-07-23emit_glasm: Implement more integer alu opsameerj2-47/+41
2021-07-23glasm: Reimplement bitwise ops and BFI/BFEameerj4-88/+108
2021-07-23glasm: Initial GLASM fp64 supportReinUsesLisp9-55/+152
2021-07-23glasm: Implement GLASM fp16 packing and move bitwise insnsReinUsesLisp4-66/+77
2021-07-23glasm: Remove unused functions left from rebaseReinUsesLisp1-12/+0
2021-07-23glasm: Specify namespace when using FormatToReinUsesLisp1-6/+6
2021-07-23glasm: Implement more GLASM composite instructionsReinUsesLisp2-54/+63
2021-07-23vk_pipeline_cache: Enable int8 and int16 types on VulkanReinUsesLisp1-0/+2
2021-07-23glasm: Make GLASM aware of typesReinUsesLisp12-1244/+1380
2021-07-23glasm: Use CMP.S for Select32ameerj3-12/+8
also fixes ADD and SUB to use U modifier
2021-07-23glasm: Implement more logical opsameerj2-5/+5
2021-07-23glasm: Implement BFI, BFEameerj4-138/+164
Along with implementations of common instructions along the way
2021-07-23glasm: Use BitField instead of C bitfieldsReinUsesLisp2-8/+12
2021-07-23glasm: Remove unused argument in identity instructions on GLASMReinUsesLisp1-7/+7
2021-07-23gl_rasterizer: Flush L2 caches before glFlush on GLASMReinUsesLisp1-0/+8
2021-07-23glasm: Initial GLASM compute implementation for testingReinUsesLisp3-14/+47
2021-07-23glasm: Implement basic GLASM instructionsReinUsesLisp10-840/+1173
2021-07-23glasm: Changes to GLASM register allocator and emit contextReinUsesLisp4-26/+64
2021-07-23vk_scheduler: Use locks instead of SPSC a queueReinUsesLisp2-32/+42
This tries to fix a data race where we'd wait forever for the GPU.
2021-07-23vk_query_cache: Wait before reading queriesReinUsesLisp1-9/+2
2021-07-23vk_master_semaphore: Use fetch_add to increase master semaphore tickReinUsesLisp2-6/+4
2021-07-23glasm: Add GLASM backend infrastructureReinUsesLisp28-4/+3115
2021-07-23shader: ISET.X implementationameerj1-8/+58
2021-07-23gl_shader_cache: Remove code unintentionally committedReinUsesLisp1-3/+0
2021-07-23shader: Fixup SPIR-V emit header namespacesReinUsesLisp1-2/+2
2021-07-23Move SPIR-V emission functions to their own headerReinUsesLisp26-579/+637
2021-07-23shader: Optimize NVN FallthroughFernandoS274-9/+83
2021-07-23shader: Stub SR_AFFINITYFernandoS271-0/+3
2021-07-23shader: Implement Int32 SUATOM/SUREDameerj17-6/+733
2021-07-23shader: Initial OpenGL implementationReinUsesLisp38-705/+1427
2021-07-23spirv: Be aware of NAN unaware driversReinUsesLisp1-18/+40
2021-07-23spirv: Add SSBO read fallbacks when no aliasing is availableReinUsesLisp1-37/+99
2021-07-23spirv: Add OpKill fallback to demoteReinUsesLisp1-2/+6
2021-07-23spirv: Do not enable ShaderLayerReinUsesLisp1-3/+0
This is enabled by an extension instead of the capability.
2021-07-23spirv: Enable DemoteToHelperInvocationEXT only when supportedReinUsesLisp1-1/+1
2021-07-23spirv: Use OriginLowerLeft when requestedReinUsesLisp1-1/+5
2021-07-23spirv: Only add image operands mask when neededReinUsesLisp1-5/+9
2021-07-23spirv: Workaround image unsigned offset bugReinUsesLisp2-9/+26
Workaround bug on Nvidia's OpenGL SPIR-V compiler when using unsigned texture offsets.
2021-07-23spirv: Add int8 and int16 capabilities only when supportedReinUsesLisp1-2/+2
2021-07-23spirv: Add integer clamping workaroundsReinUsesLisp1-4/+34
Workaround more bugs on Nvidia's OpenGL SPIR-V compiler.
2021-07-23spirv: Implement int8 and int16 conversion fallbacksReinUsesLisp1-19/+80
2021-07-23spirv: Support OpenGL uniform buffers and change bindingsReinUsesLisp6-58/+168
2021-07-23spirv: Desambiguate descriptor namesReinUsesLisp1-9/+37
Worksaround a bug on Nvidia's OpenGL SPIR-V compiler where names are used for name matching.
2021-07-23shader: Add OpenGL shader profile optionsReinUsesLisp1-0/+11
2021-07-23shader: Remove shader utilReinUsesLisp4-176/+0
2021-07-23shader: Address feedbackFernandoS275-44/+42
2021-07-23shader: Implement VertexA stageFernandoS2712-3/+180
2021-07-23shader: Implement delegation of Exit to dispatcher on CFGFernandoS272-3/+47
2021-07-23vk_graphics_pipeline: Fix texture buffer descriptorsReinUsesLisp1-7/+8
2021-07-23shader: Fix IADD3.CCameerj1-12/+5
2021-07-23vk_scheduler: Allow command submission on worker threadReinUsesLisp8-182/+200
This changes how Scheduler::Flush works. It queues the current command buffer to be sent to the GPU but does not do it immediately. The Vulkan worker thread takes care of that. Users will have to use Scheduler::Flush + Scheduler::WaitWorker to get the previous behavior. Scheduler::Finish is unchanged. To avoid waiting on work never queued, Scheduler::Wait sends the current command buffer if that's what the caller wants to wait.
2021-07-23vk_compute_pass: Fix -Wshadow warningReinUsesLisp1-3/+3
2021-07-23shader: Move pipeline cache logic to separate filesReinUsesLisp12-824/+1095
Move code to separate files to be able to reuse it from OpenGL. This greatly simplifies the pipeline cache logic on Vulkan. Transform feedback state is not yet abstracted and it's still intrusively stored inside vk_pipeline_cache. It will be moved when needed on OpenGL.
2021-07-23vulkan: Defer descriptor set work to the Vulkan threadReinUsesLisp8-79/+69
Move descriptor lookup and update code to a separate thread. Delaying this removes work from the main GPU thread and allows creating descriptor layouts on another thread. This reduces a bit the workload of the main thread when new pipelines are encountered.
2021-07-23vulkan: Rework descriptor allocation algorithmReinUsesLisp15-197/+314
Create multiple descriptor pools on demand. There are some degrees of freedom what is considered a compatible pool to avoid wasting large pools on small descriptors.
2021-07-23vk_graphics_pipeline: Generate specialized pipeline config functions and improve codeReinUsesLisp2-31/+230
2021-07-23shader: Accelerate pipeline transitions and use dirty flags for shadersReinUsesLisp9-64/+114
2021-07-23shader: Fix BFE s32 undefined checkameerj1-1/+1
Our unit tests were hitting this exception.
2021-07-23vk_compute_pipeline: Fix index comparison oversight on compute texture buffersReinUsesLisp1-1/+1
2021-07-23shader: Fix error checking in bitfieldExtract and implement bitfieldInsert foldingReinUsesLisp1-5/+14
2021-07-23vulkan_device: Require shaderClipDistance and shaderCullDistance featuresReinUsesLisp1-2/+4
2021-07-23vk_graphics_pipeline: Guard against non-tessellation pipelines using patchesReinUsesLisp1-2/+8
2021-07-23shader: Fix storage type when reading patches on tess controlReinUsesLisp1-1/+2
2021-07-23shader: Fix VMNMX selector BReinUsesLisp1-1/+2
2021-07-23shader: Fix bugs and build issues on GCCRodrigo Locatti3-4/+4
2021-07-23shader: Fix render targets with null attachmentsReinUsesLisp2-26/+34
2021-07-23shader: Increase the maximum number of storage buffersReinUsesLisp1-1/+1
Compute shaders spill uniform buffers on storage buffers, increasing the expected number.
2021-07-23shader: Remove identity removal pass for better build timesReinUsesLisp1-1/+0
2021-07-23shader: Add more strict validation the passReinUsesLisp1-0/+42
2021-07-23shader: Fix forward referencing identity instructions when inserting phiReinUsesLisp1-11/+13
2021-07-23shader: Remove invalidated blocks in dead code elimination passReinUsesLisp1-3/+6
2021-07-23shader: Add missing UndoUse case for GetSparseFromOpReinUsesLisp1-0/+4
2021-07-23shader: Require dual source blendingReinUsesLisp1-1/+2
2021-07-23shader: Simplify code in opcodes.h to fix IntellisenseReinUsesLisp1-8/+6
Avoid using std::array to fix Intellisense not properly compiling this code and disabling itself on all files that include it. While we are at it, change the code to use u8 instead of size_t for the number of instructions in an opcode.
2021-07-23shader: Implement indexed texturesReinUsesLisp10-157/+284
2021-07-23shader: Refactor atomic_operations_global_memoryameerj1-44/+36
2021-07-23shader: add missing include guard in half_floating_point_helper.hameerj1-0/+2
2021-07-23shader: Fix gcc warningsReinUsesLisp2-2/+2
2021-07-23shader: Inline common Value gettersReinUsesLisp2-109/+102
2021-07-23shader: Intrusively store in a block if it's sealed or notReinUsesLisp2-3/+11
2021-07-23cmake: Link to common in shader_recompilerReinUsesLisp1-1/+1
2021-07-23shader: Improve goto removal algorithm complexityReinUsesLisp1-49/+28
Find sibling node containing a nephew searching from the nephew itself instead of the uncle.
2021-07-23shader: Use memset to reset instruction argumentsReinUsesLisp2-4/+7
2021-07-23shader: Inline common Value functions into the headerReinUsesLisp2-19/+23
2021-07-23shader: Move microinstruction header to the value headerReinUsesLisp20-181/+162
2021-07-23shader: Move siblings check to a separate function and comment them outReinUsesLisp1-16/+21
2021-07-23shader: Intrusively store register values in block for SSA passReinUsesLisp2-21/+53
2021-07-23shader: Inline common Opcode and Inst functionsReinUsesLisp4-112/+83
2021-07-23shader: Inline common IR::Block methodsReinUsesLisp2-17/+12
2021-07-23shader: Use a small_vector for phi blocksReinUsesLisp1-1/+2
2021-07-23shader: Calculate number of arguments in an opcode at compile timeReinUsesLisp1-3/+12
2021-07-23shader: Implement D3D samplersReinUsesLisp6-49/+127
2021-07-23shader: Add constant propagation for arithmetic right shiftsReinUsesLisp1-0/+3
2021-07-23shader: Simplify code for local memoryReinUsesLisp1-6/+11
2021-07-23shader: Add NVN storage buffer fallbacksReinUsesLisp9-62/+214
When we can't track the SSBO origin of a global memory instruction, leave it as a global memory operation and assume these pointers are in the NVN storage buffer slots, then apply a linear search in the shader's runtime.
2021-07-23spirv: Fix ViewportMaskReinUsesLisp1-1/+2
2021-07-23spirv: Replace Constant/ConstantComposite with Const helperameerj12-112/+101
2021-07-23shader: Address feedbackFernandoS272-7/+10
2021-07-23shader: Implement F2F (Imm)FernandoS271-2/+28
2021-07-23shader: Implement IADD3.CC/.XFernandoS271-7/+22
2021-07-23shader: Address feedbackFernandoS274-7/+4
2021-07-23shader: Add coarse derivativesFernandoS277-8/+28
2021-07-23shader: Implement fine derivates constant propagationFernandoS279-0/+101
2021-07-23shader: Implement SR_Y_DIRECTIONFernandoS2710-0/+22
2021-07-23shader: Fix Phi node typesReinUsesLisp2-4/+4
2021-07-23shader: Fix memory barriersReinUsesLisp8-62/+30
2021-07-23spirv: Fix implicit lod typeReinUsesLisp2-1/+5
2021-07-23spirv: Use explicit lods outside of fragment shadersReinUsesLisp1-5/+16
2021-07-23spirv: Use ConstOffset instead of Offset when possibleReinUsesLisp3-21/+67
2021-07-23shader: Implement BFE and BFI CCameerj3-14/+17
Fix two bugs in BFI.
2021-07-23shader: Implement SampleMaskReinUsesLisp11-2/+22
2021-07-23shader: Implement PIXLD.MY_INDEXReinUsesLisp14-5/+71
2021-07-23spirv: Bitcast non-F32 output attributes to their type before storeReinUsesLisp1-13/+28
2021-07-23spirv: Implement ViewportMask with NV_viewport_array2ReinUsesLisp10-0/+32
2021-07-23spirv: Bitcast non-F32 attributes to F32ReinUsesLisp1-7/+9
2021-07-23shader: Implement PrimitiveIdReinUsesLisp5-0/+10
2021-07-23shader: Implement tessellation shaders, polygon mode and invocation idReinUsesLisp28-91/+605
2021-07-23shader: Mark atomic instructions as writesReinUsesLisp1-0/+27
2021-07-23vk_pipeline_cache: Silence GCC warningslat9nq1-0/+2
Silences `-Werror=missing-field-initializers` due to missing initializers.
2021-07-23spirv: Implement image buffersReinUsesLisp9-49/+142
2021-07-23spirv: Implement Layer storesReinUsesLisp6-9/+30
2021-07-23spirv: Fix alpha testFernandoS271-0/+5
2021-07-23spirv: Fix non-atomic 64-bit storeameerj1-1/+1
2021-07-23spirv: Implement alpha testameerj3-1/+95
2021-07-23shader: Implement transform feedbacks and define file formatReinUsesLisp11-23/+272
2021-07-23shader: Implement early Z testsReinUsesLisp3-0/+5
2021-07-23shader: Document and relax cache control on surface instructionsReinUsesLisp1-10/+11
2021-07-23spirv: Rework storage buffers and shader memoryReinUsesLisp9-500/+581
2021-07-23shader: Fix fixed pipeline point size on geometry shadersReinUsesLisp1-10/+18
2021-07-23shader: Add constant propagation for *&^| binary operationsReinUsesLisp1-0/+12
2021-07-23shader: Implement geometry shadersReinUsesLisp14-91/+277
2021-07-23shader: Implement OUTReinUsesLisp10-17/+73
2021-07-23internal_stage_buffer_entry_read: Remove pragma optimize offlat9nq1-2/+0
2021-07-23shader: Stub SR_INVOCATION_INFOReinUsesLisp1-2/+5
2021-07-23shader: Stub ISBERDReinUsesLisp3-4/+56
2021-07-23shader: Fix CC in I2IReinUsesLisp1-0/+2
2021-07-23spirv: Define StorageImageWriteWithoutFormat capability when usedReinUsesLisp3-0/+9
2021-07-23pipeline_helper: Simplify descriptor objects initializationReinUsesLisp1-33/+25
2021-07-23shader: Simplify FLO and throw on CCReinUsesLisp1-12/+13
2021-07-23shader: Mark blocks with no end branch as unreachableReinUsesLisp1-2/+7
2021-07-23shader: Implement LOP CCReinUsesLisp3-12/+29
2021-07-23shader: Implement SR_THREAD_KILLReinUsesLisp10-0/+22
2021-07-23shader: Apply sign bit in FCMP (imm)ReinUsesLisp1-1/+1
2021-07-23shader: Implement ATOM/S and REDameerj21-19/+1745
2021-07-23nsight_aftermath_tracker: Report used shaders to Nsight AftermathReinUsesLisp6-16/+20
2021-07-23spirv: Move phi node patching to a separate functionReinUsesLisp1-13/+16
2021-07-23spirv: Guard against typeless image reads on unsupported devicesReinUsesLisp6-1/+17
2021-07-23shader: Move LaneId to the warp emission file and fix AMDReinUsesLisp5-7/+11
2021-07-23vk_rasterizer: Request outside render pass execution context for computeReinUsesLisp1-0/+1
2021-07-23pipeline_helper: Add missing [[maybe_unused]]ReinUsesLisp1-1/+1
2021-07-23spirv: Fix forward declarations on phi nodesReinUsesLisp1-47/+25
2021-07-23shader: Mark ImageWrite with side effectsReinUsesLisp1-0/+3
2021-07-23shader: Implement CC for ISET, FSET, PSET, CSET, and DSETFernandoS2718-13/+136
Throw when other instructions are missing CC.
2021-07-23shader: Remove outdated comment in F2IReinUsesLisp1-4/+0
2021-07-23shader: Implement SULD and SUSTReinUsesLisp31-202/+732
2021-07-23shader: Fix Windows build issuesReinUsesLisp1-1/+1
2021-07-23shader: Address feedback + clang formatlat9nq12-24/+22
2021-07-23shader_recompiler,video_core: Cleanup some GCC and Clang errorslat9nq66-313/+308
Mostly fixing unused *, implicit conversion, braced scalar init, fpermissive, and some others. Some Clang errors likely remain in video_core, and std::ranges is still a pertinent issue in shader_recompiler shader_recompiler: cmake: Force bracket depth to 1024 on Clang Increases the maximum fold expression depth thread_worker: Include condition_variable Don't use list initializers in control flow Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc>
2021-07-23shader: Fix FCMP immediate variantReinUsesLisp1-1/+9
2021-07-23shader: Fix dangling labelsReinUsesLisp1-0/+5
2021-07-23shader: Interact texture buffers with buffer cacheReinUsesLisp17-148/+333
2021-07-23shader: Fix F2IReinUsesLisp1-1/+1
2021-07-23shader: Fix TextureGradReinUsesLisp1-1/+1
2021-07-23shader: Implement texture buffersReinUsesLisp10-35/+154
2021-07-23shader: Address feedbackFernandoS275-53/+54
2021-07-23shader: Implement indexed Position and ClipDistancesFernandoS273-11/+100
2021-07-23shader: Implement indexed attributesFernandoS2712-35/+279
2021-07-23shader: Implement AL2PFernandoS273-4/+36
2021-07-23shader: Fix BRX trackingFernandoS272-3/+4
2021-07-23vk_pipeline_cache: Fix num of pipeline workers on weird platformsReinUsesLisp1-1/+1
2021-07-23shader: Move recursive SSA rewrite to the heapReinUsesLisp1-29/+89
2021-07-23shader: Fix ShadowCube declaration type, set number of pipeline threads based on hardwareFernandoS272-2/+4
2021-07-23shader: Fix splits on blocks using indirect branchesReinUsesLisp3-17/+38
2021-07-23shader: Eliminate orphan blocks more efficientlyReinUsesLisp1-7/+8
2021-07-23shader: Add subgroup masksReinUsesLisp10-45/+169
2021-07-23shader: Implement BAR and fix memory barriersReinUsesLisp7-5/+79
2021-07-23shader: Abstract breadth searches and use the abstractionReinUsesLisp4-104/+106
2021-07-23shader: Reimplement GetCbufU64 as GetCbufU32x2ReinUsesLisp9-22/+21
It may generate better code on some compilers and it's easier to handle.
2021-07-23vk_compute_pass: Fix compute passesReinUsesLisp3-23/+19
2021-07-23shader: Remove atomic flags and use mutex + cond variable for pipelinesReinUsesLisp4-11/+32
2021-07-23shader: Remove unused header in VOTEReinUsesLisp1-2/+0
2021-07-23vk_pipeline_cache: Remove unnecesary scope in pipeline cache lockingReinUsesLisp1-15/+12
2021-07-23shader: Rework global memory tracking to use breadth-first searchReinUsesLisp1-69/+80
2021-07-23shader: Fix fp16 merge when using native fp16ReinUsesLisp1-3/+3
2021-07-23shader: Fix FADD32IReinUsesLisp1-6/+4
2021-07-23shader: Fix undetected bug from reviewFernandoS271-0/+3
2021-07-23shader: Address feedbackFernandoS273-13/+16
2021-07-23shader: "Implement" NOPFernandoS271-1/+1
2021-07-23vk_pipeline_cache: Small fixes to the pipeline cacheFernandoS271-10/+14
2021-07-23shader: Address FeedbackFernandoS2716-211/+60
2021-07-23shader: Implement SR_LaneIdFernandoS277-0/+15
2021-07-23shader: Fix shared memory on cool driversFernandoS271-0/+1
2021-07-23shader: Implement MEMBARFernandoS279-11/+121
2021-07-23shader: Improve VOTE.VTG stubFernandoS277-4/+147
2021-07-23shader: Mark SSBOs as written when they areFernandoS274-4/+32
2021-07-23shader: Implement ViewportIndexFernandoS278-2/+33
2021-07-23shader: Stub TLD4's PTP when it isn't constantFernandoS271-1/+2
2021-07-23shader: Stub VOTE.VTGFernandoS274-4/+15
2021-07-23shader: Fold composite extractFernandoS271-0/+62
2021-07-23shader: Fold comparisons and Pack/Unpack16FernandoS271-1/+41
2021-07-23shader: Fix branches to visited virtual blocksReinUsesLisp2-0/+12
2021-07-23vulkan: Serialize pipelines on a separate threadReinUsesLisp2-67/+64
2021-07-23vulkan: Create pipeline layouts in separate threadsReinUsesLisp7-63/+65
2021-07-23vulkan: Build pipelines in parallel at runtimeReinUsesLisp9-165/+197
Wait from the worker thread for a pipeline to build before binding it to the command buffer. This allows queueing pipelines to multiple threads.
2021-07-23shader: Fix dependency on identity removal passReinUsesLisp2-3/+8
2021-07-23shader: Fix constant propagation to use reverse post orderReinUsesLisp1-1/+2
2021-07-23shader: Implement LDG .U.128 as .128ReinUsesLisp1-3/+2
2021-07-23shader: Unroll "using enum" for opcode declarationsReinUsesLisp1-1/+27
2021-07-23vk_pipeline_cache: Name SPIR-V modulesReinUsesLisp1-1/+11
2021-07-23spirv: Remove unnecesary variable for clip distancesReinUsesLisp2-6/+2
2021-07-23shader: Implement ClipDistanceFernandoS275-0/+36
2021-07-23shader: Fix TXDFernandoS272-2/+2
2021-07-23shader: Address feedbackFernandoS275-53/+49
2021-07-23shader: Always pass a lod for TexelFetchReinUsesLisp3-25/+17
2021-07-23shader: Implement TXDFernandoS274-10/+183
2021-07-23shader: Implement ImageGradientFernandoS278-2/+84
2021-07-23shader: Implement TMML partiallyFernandoS276-13/+137
2021-07-23shader,spirv: Implement ImageQueryLod.FernandoS279-1/+38
2021-07-23shader: Implement TLDSFernandoS273-4/+253
2021-07-23shader: Implement TLDFernandoS278-16/+174
2021-07-23spirv: Add fixed pipeline point sizeReinUsesLisp4-1/+11
2021-07-23shader: Add PointCoord attributeFernandoS275-0/+16
2021-07-23shader: Add PointSize attributeameerj5-0/+13
2021-07-23shader: Store type of phi nodes in flagsReinUsesLisp3-2/+11
This is needed because pseudo-instructions where invalidated.
2021-07-23shader: Fix indirect branches to scheduler instructionsReinUsesLisp3-7/+17
2021-07-23spirv: Fix default output attribute initializationReinUsesLisp1-3/+3
2021-07-23shader: Add missing new linesReinUsesLisp1-0/+2
2021-07-23shader: Implement FSWZADDameerj14-4/+87
2021-07-23shader: Implement BRXFernandoS2721-48/+437
2021-07-23shader: Fix alignment checks on RZReinUsesLisp1-1/+1
2021-07-23shader: Implement I2I CCameerj3-24/+45
2021-07-23shader: Implement I2I SATameerj6-10/+52
2021-07-23vk_pipeline_cache: Fix size hashing of shadersReinUsesLisp1-8/+7
2021-07-23shader: Fix ISCADD logic for PO/CCameerj1-7/+8
2021-07-23shader: Implement LDS, STS, LDL, and STS and use SPIR-V 1.4 when availableReinUsesLisp20-36/+730
2021-07-23shader: Implement ISCADD CCameerj1-1/+4
2021-07-23shader: Implement VMAD, VMNMX, VSETPameerj9-23/+319
2021-07-23shader: Add missing I2I exception when CC is usedReinUsesLisp1-0/+4
2021-07-23shader: Better interpolation and disabled attributes supportReinUsesLisp9-25/+101
2021-07-23spirv: Remove dependencies on Environment when generating SPIR-VReinUsesLisp5-16/+15
2021-07-23vk_pipeline_cache: Fix pipeline and shader cachesReinUsesLisp2-6/+21
2021-07-23shader: Implement front faceReinUsesLisp5-0/+12
2021-07-23shader: Fix structured control flow on KIL instructionsReinUsesLisp2-3/+7
This could potentially leave unvisited blocks, leading to illegal phi nodes.
2021-07-23shader: Fix TXQFernandoS271-1/+1
2021-07-23shader: Fix rasterizer integration order issuesReinUsesLisp3-7/+6
2021-07-23shader: Implement TXQ and fix FragDepthReinUsesLisp15-21/+264
2021-07-23shader: Refactor PTP and other minor changesReinUsesLisp14-123/+67
2021-07-23shader: Add IR opcode for ImageFetchFernandoS277-5/+55
2021-07-23shader: Implement TLD4.PTPFernandoS2715-28/+111
2021-07-23shader: Fix Array Indices in TEX/TLD4FernandoS272-6/+6
2021-07-23shader: Implement FragDepthFernandoS272-1/+7
2021-07-23shader: Implement TLD4S.FernandoS273-4/+134
2021-07-23shader: Implement TLD4 and TLD4_BFernandoS2713-11/+315
2021-07-23shader: Implement SHFLameerj16-69/+284
2021-07-23shader: Track first bindless argument instead of the instruction itselfReinUsesLisp1-1/+1
2021-07-23shader: Properly insert Prologue instructionReinUsesLisp1-1/+2
2021-07-23shader: Minor style nitsReinUsesLisp1-2/+4
2021-07-23shader: Fix F2IFernandoS2710-9/+147
2021-07-23shader: Implement NDC [-1, 1], attribute types and default varying initializationReinUsesLisp15-43/+186
2021-07-23shader: Fix use-after-free bug in object_poolReinUsesLisp1-3/+3
2021-07-23shader: Implement VOTEameerj18-6/+182
2021-07-23vk_pipeline_cache: Fix ReleaseContents orderReinUsesLisp1-2/+2
2021-07-23shader: Fix TEX maskReinUsesLisp1-1/+3
2021-07-23vk_pipeline_cache: Add pipeline cacheReinUsesLisp2-0/+7
2021-07-23vk_pipeline_cache: Add pipeline cacheReinUsesLisp8-106/+347
2021-07-23shader: Fold interpolation multiplicationsReinUsesLisp1-0/+34
2021-07-23shader: Better but still partial interpolation supportReinUsesLisp1-5/+7
2021-07-23shader: Implement DMNMX, DSET, DSETPameerj16-59/+210
2021-07-23shader: Implement FADD32IFernandoS271-2/+15
2021-07-23shader: Implement F2FFernandoS276-20/+192
2021-07-23shader: Add missing fp64 usage flagsReinUsesLisp1-0/+34
2021-07-23shader: Implement DMUL and DFMAameerj8-30/+111
Also add a missing const on DADD
2021-07-23shader: Add FP64 register load/store helpersameerj3-21/+24
2021-07-23shader: Add support for fp16 comparisons and misc fixesReinUsesLisp11-14/+56
2021-07-23shader: Fix floating point comparison for FP16FernandoS275-32/+56
2021-07-23shader: Implement HSETP2FernandoS273-12/+117
2021-07-23shader: Implement HSET2FernandoS275-14/+119
2021-07-23shader: Implement HMUL2FernandoS273-16/+144
2021-07-23shader: Implement HFMA2FernandoS275-20/+192
2021-07-23spirv: Implement VertexId and InstanceId, refactor codeReinUsesLisp10-144/+244
2021-07-23shader: Refactor half floating instructionsFernandoS274-58/+84
2021-07-23shader: Implement I2FReinUsesLisp17-70/+429
2021-07-23shader: Implement ISCADD (imm)ReinUsesLisp1-2/+2
2021-07-23shader: Implement LOP32IReinUsesLisp2-18/+45
2021-07-23shader: Add partial rasterizer integrationReinUsesLisp54-566/+1927
2021-07-23shader: Implement DADDameerj8-14/+132
2021-07-23shader: Implement CSET and CSETPameerj6-15/+114
2021-07-23shader: Reorder phi nodes when redefined as undefined opcodesReinUsesLisp1-1/+9
2021-07-23shader: Fix instruction transitions in and out of PhiReinUsesLisp1-9/+11
2021-07-23shader: Implement FSET and FSETPameerj9-94/+204
Also fix oversight with adding SignedZeroInfNanPreserve execution mode.
2021-07-23shader: Implement TEXSReinUsesLisp8-7/+287
2021-07-23shader: Implement CAL inlining function callsReinUsesLisp24-330/+286
2021-07-23spirv: Add SignedZeroInfNanPreserve logicameerj3-0/+12
2021-07-23shader: Implement FMNMXameerj8-25/+101
And add a const in FCMP
2021-07-23shader: Fix rebase issueReinUsesLisp1-1/+0
2021-07-23shader: Implement FCMPameerj9-50/+203
still need to configure some settings for NV denorm flush and intel NaN
2021-07-23shader: Partial implementation of LDCReinUsesLisp16-50/+405
2021-07-23shader: Initial support for textures and TEXReinUsesLisp33-342/+1489
2021-07-23shader: Implement R2Pameerj8-15/+88
2021-07-23shader: Implement SHFameerj8-31/+119
2021-07-23shader: Implement LEAameerj9-29/+136
2021-07-23shader: Deduplicate HADD2 codeReinUsesLisp1-19/+16
2021-07-23shader: Implement I2Iameerj3-12/+100
2021-07-23shader: Implement HADD2ReinUsesLisp12-42/+400
2021-07-23shader: Implement LOP and LOP3ameerj8-31/+227
2021-07-23shader: Implement IADD3ameerj3-12/+104
2021-07-23shader: Implement PSETPameerj4-5/+40
2021-07-23Implement PSET, refactor common comparison funcsameerj9-101/+88
2021-07-23shader: Implement FLOameerj8-18/+75
2021-07-23shader: Implement ISET, add common_funcsameerj8-50/+150
2021-07-23shader: Make IMNMX, SHR, SEL stylistically more consistentameerj3-5/+5
2021-07-23shader: Implement ICMPameerj3-16/+84
2021-07-23shader: Implement IMNMXameerj8-12/+105
2021-07-23shader: Implement BFIameerj3-16/+57
2021-07-23shader: Implement BFEameerj3-12/+67
2021-07-23shader: Implement POPCameerj8-12/+59
2021-07-23shader: Implement SHRameerj8-18/+80
2021-07-23shader: Implement SELameerj4-16/+53
2021-07-23spirv: Move phi arguments emit to a separate functionReinUsesLisp1-27/+27
2021-07-23shader: Avoid infinite recursion when tracking global memoryReinUsesLisp1-5/+26
2021-07-23shader: Fix conditional execution of exit instructionsReinUsesLisp2-5/+6
2021-07-23spirv: Add support for self-referencing phi nodesReinUsesLisp1-3/+10
2021-07-23shader: Fix control flowReinUsesLisp8-20/+39
2021-07-23shader: Implement more of XMAD and FFMA32I and fix XMAD.CBCCReinUsesLisp5-28/+76
2021-07-23shader: FMUL, select, RRO, and MUFU fixesReinUsesLisp18-119/+507
2021-07-23shader: Fix MOV(reg), add SHL variants and emit neg and abs instructionsReinUsesLisp4-11/+11
2021-07-23spirv: Fixes and Intel specific workaroundsReinUsesLisp11-32/+44
2021-07-23shader: Rename, implement FADD.SAT and P2R (imm)ReinUsesLisp18-127/+213
2021-07-23shader: Add denorm flush supportReinUsesLisp20-93/+260
2021-07-23spirv: Add lower fp16 to fp32 passReinUsesLisp32-285/+479
2021-07-23shader: Primitive Vulkan integrationReinUsesLisp43-3036/+1003
2021-07-23shader: Remove old shader managementReinUsesLisp80-19568/+54
2021-07-23shader: Add XMAD multiplication folding optimizationReinUsesLisp1-5/+77
2021-07-23shader: Simplify ISCADDReinUsesLisp1-6/+1
2021-07-23shader: Add utility to resolve identities on a valueReinUsesLisp2-0/+8
2021-07-23spirv: Implement EmitIdentityReinUsesLisp2-3/+3
2021-07-23spirv: Initial bindings supportReinUsesLisp22-292/+671
2021-07-23shader: Improve object poolReinUsesLisp3-50/+66
2021-07-23shader: Fix trackingReinUsesLisp1-50/+72
2021-07-23shader: Add support for forward declarationsReinUsesLisp10-68/+79
2021-07-23shader: Support SSA loops on IRReinUsesLisp12-46/+150
2021-07-23shader: Misc fixesReinUsesLisp10-89/+104
2021-07-23shader: Initial implementation of an ASTReinUsesLisp32-589/+1345
2021-07-23spirv: Initial SPIR-V supportReinUsesLisp20-3299/+1400
2021-07-23shader: Better constant foldingReinUsesLisp2-13/+48
2021-07-23shader: Properly store phi on InstReinUsesLisp6-75/+132
2021-07-23shader: Add pools and rename filesReinUsesLisp30-108/+255
2021-07-23shader: Make typed IRReinUsesLisp19-269/+495
2021-07-23shader: Remove illegal character in SSA passReinUsesLisp1-1/+1
2021-07-23shader: Constant propagation and global memory to storage bufferReinUsesLisp17-63/+652
2021-07-23shader: Initial instruction supportReinUsesLisp28-334/+1450
2021-07-23shader: SSA and dominanceReinUsesLisp24-77/+570
2021-07-23shader: Initial recompiler workReinUsesLisp57-0/+7061
2021-07-23thread_worker: Fix compile time errorameerj1-1/+1
state is unused in the branch where with_state is false
2021-07-22yuzu_cmd: Make use of fullscreen_mode settinglat9nq3-15/+34
Reverts 48259de0c1a6a1aca77eec31cb8aca5ca2b680dd to the previous hierarchy and fixes the resolution issue with this fullscreen mode. yuzu-cmd will now read the fullscreen_mode setting and use it appropriately.
2021-07-21yuzu-cmd: Fullscreen Improvements (#6656)san4-9/+13
* emu_window_sdl2_vk: Use the generated SDL config On Linux, due to the way we include SDL2 as a submodule, it makes it difficult for us to specify which SDL_config.h we intended to include. Before, CMake would default to the dummy one included with SDL and ignore the generated one. This tells CMake to use the generated one. In addition, we define USING_GENERATED_CONFIG_H to throw an error in case the dummy config is used by accident. Fixes Vulkan not working on Linux yuzu-cmd. * emu_window_sdl2_vk: Specify the window manager if it should be supported The original language "not implemented" is wrong if the implementation exists but is not compiled. This causes a bit of a debugging headache when it goes wrong. Log it if the window manager is known before exiting. * sdl_impl, emu_window: Remove clang ignore Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd * Enable fullscreen support for Vulkan on yuzu-cmd Hooked up the existing SDL2 logic for fullscreen support in the Vulkan window of yuzu-cmd. * Change fullscreen logic to attempt desktop resolution first on yuzu-cmd Changed the order in which we attempt to switch to fullscreen. First try desktop resolution first, if it fails fall back to streched fullscreen using windowed resolution. Co-authored-by: lat9nq <22451773+lat9nq@users.noreply.github.com> Co-authored-by: san <san+gitkraken@smederijmerlijn.nl>
2021-07-21hle: service: kernel_helpers: Remove unnecessary pragma once.bunnei1-2/+0
2021-07-21hle: kernel: svc: Remove part of ExitProcess.bunnei1-5/+0
- ExitProcess is not actually implemented either way, and this needs more work before we implement.
2021-07-21hle: service: nvdrv: Remove unused kernel reference.bunnei1-1/+0
2021-07-21hle: service: hid: npad: Remove unused kernel reference.bunnei1-1/+0
2021-07-21hle: kernel: Track and release server sessions, and protect methods with locks.bunnei4-13/+82
2021-07-21hle: kernel: KProcess: Change process termination assert to a warning.bunnei1-1/+1
- Since we do not implement multiprocess right now, this should not be a crashing assert.
2021-07-21hle: kernel: Ensure current running process is closed.bunnei1-5/+6
2021-07-21hle: kernel: Ensure global handle table is finalized before closing.bunnei1-0/+1
2021-07-21kernel: svc: ConnectToNamedPort: Close extra reference to port.bunnei1-0/+1
2021-07-21hle: service: sm: Refactor to better manage ports.bunnei4-45/+47
2021-07-21hle: kernel: k_process: Close the handle table on shutdown.bunnei1-0/+3
2021-07-21hle: kernel: k_process: Close main thread reference after it is inserted into handle table.bunnei1-0/+3
2021-07-21hle: kernel: Ensure global handle table is initialized.bunnei1-0/+1
2021-07-21hle: service: Add a helper module for managing kernel objects.bunnei10-20/+146
2021-07-21hle: kernel: Provide methods for tracking dangling kernel objects.bunnei4-2/+43
2021-07-20gl_buffer_cache: Use glClearNamedBufferSubData:GL_RED instead of GL_RGBAReinUsesLisp1-1/+1
Avoids reading out of bounds from the stack.
2021-07-20buffer_cache: Simplify clear logicReinUsesLisp1-6/+2
Use existing helper functions and avoid looping when only one buffer has to be active.
2021-07-20vk_texture_cache: Use VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL when possibleReinUsesLisp1-21/+35
Silences performance warnings generated from validation layers on each frame.
2021-07-20gl_texture_cache: Workaround slow PBO downloads on radeonsiReinUsesLisp1-1/+1
There's an optimization bug on non-git mesa versions where not specifying GL_CLIENT_STORAGE_BIT causes very slow reads on the CPU side. Add this bit for all vendors.
2021-07-20uuid: Directly compare UUID instead of checking per elementChloe Marcec1-3/+2
We can now update this for C++20
2021-07-20vk_buffer_cache: Fix quad index array with 0 vertices (#6627)Fernando S1-0/+7
2021-07-20input/sdl_impl: fix rumble support on DualSense. (#6683)Nicolas Jallamion1-2/+2
- value return can be different 0, is not error is normal, error is only -1.
2021-07-20applet_controller: Add preliminary support for version 8Morph2-3/+33
Version 8 adds support for key remapping introduced in FW 11.0, we will not be implementing this for now.
2021-07-20bootmanager: Create a dummy render widgetMorph1-0/+6
This ensures that Qt positions the render window at the correct position on initializing the respective render backends.
2021-07-20file_sys: Support load game collection (#6582)Feng Chen17-108/+171
Adds support for loading games with multiple programs embedded within such as the Dragon Quest 1+2+3 Collection
2021-07-19Update src/video_core/renderer_vulkan/vk_texture_cache.cppyzct123451-1/+1
Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com>
2021-07-19Update src/video_core/renderer_vulkan/vk_texture_cache.cppyzct123451-1/+1
Co-authored-by: Vitor K <vitor-kiguchi@hotmail.com>
2021-07-18Ignore wrong blit formatyzct123451-1/+4
2021-07-18vk_texture_cache: Finalize renderpass when downloading imagesReinUsesLisp1-0/+1
2021-07-18vk_compute_pass: Fix pipeline barriers on non-initialized ASTC imagesReinUsesLisp1-2/+3
2021-07-18vk_compute_pass: Fix ASTC buffer setup synchronizationReinUsesLisp1-14/+14
2021-07-18texture_cache/util: Fix size calculations of multisampled imagesReinUsesLisp1-53/+33
On the texture cache we handle multisampled images by keeping their real size in samples (e.g. 1920x1080 with 4 samples is 3840x2160). This works nicely with size matches and other comparisons, but the calculation for guest sizes was not having this in mind, and the size was being multiplied (again) by the number of samples per dimension. For example a 3840x2160 texture cache image had its width and height multiplied by 2, resulting in a much larger texture. Fix this issue. - Fixes performance regression on cooking related titles when an unrelated bug was fixed.
2021-07-18texture_cache: Always prepare image views on render targetsReinUsesLisp1-0/+6
Images used as render targets were not being "prepared", causing desynchronizations on the texture cache. Needs #6669 to avoid performance regressions on certain cooking titles. - Fixes black shadows on Age of Calamity.
2021-07-17configure/ui: Add sliders for trigger buttonsgerman772-0/+78
2021-07-17input_common: Fix mouse panning behaivourgerman773-5/+8
2021-07-16sdl_impl, emu_window: Remove clang ignorelat9nq4-33/+0
Fixed upstream by libsdl-org/SDL@25fc40b0bd44c484051064bc6b945ea9943f88dd
2021-07-16emu_window_sdl2_vk: Specify the window manager if it should be supportedlat9nq1-0/+15
The original language "not implemented" is wrong if the implementation exists but is not compiled. This causes a bit of a debugging headache when it goes wrong. Log it if the window manager is known before exiting.
2021-07-16emu_window_sdl2_vk: Use the generated SDL configlat9nq2-0/+11
On Linux, due to the way we include SDL2 as a submodule, it makes it difficult for us to specify which SDL_config.h we intended to include. Before, CMake would default to the dummy one included with SDL and ignore the generated one. This tells CMake to use the generated one. In addition, we define USING_GENERATED_CONFIG_H to throw an error in case the dummy config is used by accident. Fixes Vulkan not working on Linux yuzu-cmd.
2021-07-16configure_audio: Fix volume clamping to 0Morph1-6/+6
2021-07-16yuzu_cmd: Add missing or update current settingslat9nq2-4/+112
Many settings in common/settings.h are missing from yuzu-cmd, either they were added to default_ini.h but not read in, or vice versa, or the setting was altogether omitted from yuzu-cmd. Some defaults were reported wrong, so those were fixed where noticed.
2021-07-16input_common: Make button threshold customizablegerman772-3/+13
2021-07-16default_ini: Remove deprecated settingslat9nq1-61/+1
These settings are not being read in config.cpp AND they do not exist in common/settings.h. Remove their references.
2021-07-15input_common: Support SDL toggle buttonsgerman772-5/+53
2021-07-15vic: Fix dimension compuation of YUV framesameerj1-11/+10
Fixes out of bound memory crashes in Mario Golf
2021-07-15applets/web: Resolve Nintendo CDN URLsMorph1-0/+13
This fixes the hint videos in New Super Mario Bros. U Deluxe
2021-07-15nvhost_nvdec_common: Read Submit ioctl data from object addrameerj1-8/+2
Fixes Mario Golf intro video decoding.
2021-07-15nvhost_nvdec_common: Fix {Slice/Write}Vectors returnameerj1-37/+38
Plus some minor cleanup for consistency.
2021-07-15Buffer cache: Fixes, Clang and Feedback.Fernando Sahmkow3-11/+10
2021-07-14GPUMemoryManager: Force inmediate invalidation when writting block.Fernando Sahmkow1-1/+1
2021-07-14Buffer Cache: Fixes to DMA Copy.Fernando Sahmkow1-6/+7
2021-07-14DMAEngine: Revert flushing from Pitch to BlpockLinear.Fernando Sahmkow1-2/+7
2021-07-14BufferCache: fix clearing on forced download.Fernando Sahmkow1-10/+20
2021-07-14service: Append service name prefix to common filenamesMorph41-56/+56
2021-07-14applets: Append applet_ prefix to backend appletsMorph19-33/+33
2021-07-14applets: Append qt_ prefix to Qt frontend appletsMorph15-25/+26
2021-07-13vk_rasterizer: Only clear valid color attachmentsameerj1-2/+4
2021-07-13DMAEngine: Accelerate BufferClearFernando Sahmkow11-6/+115
2021-07-12accelerateDMA: Fixes and feedback.Fernando Sahmkow3-88/+62
2021-07-12content_archive: Remove unnecessary include to <ranges>ReinUsesLisp1-1/+0
Fixes build issues on clang.
2021-07-12web_service: Silence -Wmaybe-uninitialized on httplib.hReinUsesLisp1-0/+10
2021-07-12boxcat: Silence -Wmaybe-uninitialized in httplib.hReinUsesLisp1-0/+3
2021-07-11npad: Disable vibration check if disabledgerman771-0/+5
2021-07-11input_common: Fix build with sdl disabledgerman771-2/+2
2021-07-11accelerateDMA: Accelerate Buffer Copies.Fernando Sahmkow9-13/+176
2021-07-10Buffer Cache: Address Feedback.Fernando Sahmkow3-5/+10
2021-07-10settings: Disable FPS unlimit setting between title launchesameerj6-29/+10
Some titles crash if the FPS limit is disabled when launching. This change ensures that titles launch with the limit in-place to avoid issues. In order to simplify the change, the UI toggle was removed as it will always be overridden at launch to be disabled. The setting can still be toggled during gameplay with the hotkey, and indicated by the fps label in the status bar.
2021-07-09Buffer Cache: Fix GCC copmpile errorFernando Sahmkow1-1/+0
2021-07-09Fence Manager: remove reference fencing.Fernando Sahmkow3-31/+6
2021-07-09BufferCache: Additional download fixes.Fernando Sahmkow2-23/+107
2021-07-09Buffer Cache: Revert unnecessary range reduction.Fernando Sahmkow1-29/+13
2021-07-09Fence Manager: Force ordering on WFI.Fernando Sahmkow4-38/+71
2021-07-09Buffer Cache: Eliminate the AC Hack as the base game is fixed in Hades.Fernando Sahmkow1-14/+4
2021-07-09Fence Manager: Add fences on Reference Count.Fernando Sahmkow8-6/+57
2021-07-09Videocore: Address Feedback & CLANG Format.Fernando Sahmkow2-78/+75
2021-07-09Buffer Cache: Fix High Downloads and don't predownload on Extreme.Fernando Sahmkow4-92/+123
2021-07-09yuzu qt: config: Only save renderer_debug as a global settinglat9nq1-2/+8
This is a bug fix. Enabling graphics debug mode, then saving a custom configuration causes graphics debugging to be saved and read from the custom configuration. Isolate it the same way we isolate the CPU settings.
2021-07-09Update src/yuzu/main.cppFernando S1-2/+2
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2021-07-09vk_buffer_cache: Use emulated null buffers for transform feedbackReinUsesLisp2-11/+19
Vulkan does not support null buffers on transform feedback bindings. Emulate these using the same null buffer we were using for index buffers.
2021-07-09configure_input: Use u8 for mouse sensitivityameerj3-11/+8
2021-07-09config: Remove float {Read,Write}Setting variantsameerj2-29/+2
2021-07-09configure_graphics: Use u8 for bg_color valuesameerj5-19/+20
2021-07-09configure_audio: Use u8 for volume valueameerj4-10/+9
2021-07-09Settings: Eliminate ASYNC & MULTICORE Toggles and add GPU Accuracy Toggle.Fernando Sahmkow2-39/+45
2021-07-09common/thread_worker: Stop workers on stop_token when waitingReinUsesLisp1-18/+20
2021-07-09common/thread_worker: Add support for stateful threadsReinUsesLisp3-78/+86
2021-07-09common/thread_worker: Simplify logicFernandoS271-8/+1
2021-07-09common/thread_worker: Fix data raceFernandoS272-1/+18
2021-07-09common/thread_worker: Use unique functionReinUsesLisp2-28/+24
2021-07-09common: Add unique functionReinUsesLisp4-0/+172
2021-07-09common/thread_worker: Add wait for requests methodReinUsesLisp2-0/+11
2021-07-08settings, arm_dynarmic, yuzu qt: Move CPU debugging optionlat9nq18-132/+244
Decouples the CPU debugging mode from the enumeration to its own boolean. After this, it moves the CPU Debugging tab over to a sub tab underneath the Debug tab in the configuration UI.
2021-07-08arm_dynarmic_64: Re-add fastmem_address_space_bits to Auto settinglat9nq1-0/+1
2021-07-08qt/main: Make title string more i18n-friendlyLioncash1-2/+4
Currently, whether or not the title is 32-bit or 64-bit was being appended as a suffix to the title, which is fine for left-to-right languages, but may not always fly so smoothly with some right-to-left languages. We also weren't marking that portion of the string as translatable, which prevents translators from translating part of the title string.
2021-07-08settings, yuzu qt: Add migration code for CPU accuracylat9nq2-1/+10
Old CPU Accuracy setting won't translate well into since we're adding one at the beginning of the list. On first boot with the new setting, just use the default setting.
2021-07-08arm_dynarmic{32,64}: Fixes from test buildlat9nq2-18/+5
Now sets optimizations regardless of the Settings. Drops unsafe fastmem optimization.
2021-07-08core,common,yuzu qt: Add CPU accuracy option 'Auto'lat9nq4-16/+50
The current CPU accuracy settings in yuzu are fairly polarized and require more than common knowledge to know what the optimal settings for yuzu would be. This adds a curated option called 'Auto' that applies a few at the moment known-good unsafe optimizations to Dynarmic.
2021-07-08general: Code formatting improvementslat9nq4-22/+25
Slight improvements to readability. Dropped suggestions for string_view (settings.h:101), pass by value (settings.h:82), reverting double to a float (config.cpp:316), and other smaller ones, some out of scope. Addresses review feedback. Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-07-08Out of bound blit (#6531)Feng Chen2-58/+35
* Fix out of bound blit error * Fix code read * Fix ci error Co-authored-by: Feng Chen <chen.feng@gloritysolutions.com>
2021-07-08Replace NaN mix volume samples with silence.Kelebek11-0/+9
Fixes Xenoblade Chronicles 2 blowing out the audio.
2021-07-08audio_core: Preserve front channel volume after 6 to 2 downmixKelebek15-75/+81
Many games report 6 channel output while only providing data for 2. We only output 2-channel audio regardless, and in the downmixing, front left/right only provide 36% of their volume. This is done assuming all of the other channels also contain valid data, but in many games they don't. This PR alters the downmixing to preserve front left/right, so volume is not lost. This improves volume in Link's Awakening, New Super Mario Bros U, Disgaea 6, Super Kirby Clash.
2021-07-07util_shaders: Fix BindImageTexturelat9nq1-2/+2
According to https://gitlab.freedesktop.org/mesa/mesa/-/issues/3820#note_753371 we need to set these to true for use with 3D textures. Fixes BOTW teleporting on RadeonSI and iris.
2021-07-06Report 2 channels active. Fixes Tales of Vesperia's mono channel audio.Kelebek11-1/+1
2021-07-06Support more PCM formats. Fixes Ys IX audio.Kelebek12-18/+51
2021-07-06CMakeLists: Treat -Wsign-compare as an error on GCC/ClangMorph4-8/+1
Treats (un)signed comparison mismatches as errors to be consistent with MSVC
2021-07-06common: logging: backend: Close the file after exceeding the write limitMorph1-8/+11
There's no point in keeping the file open after the write limit is exceeded. This allows the file to be committed to the disk shortly after it is closed and avoids redundantly checking whether or not the write limit is exceeded.
2021-07-06common: fs: file: Revert Flush to its previous behavior and add CommitMorph2-3/+34
It became apparent that logging can continuously spam errors that trigger file flushing. Since committing the files to disk is an expensive operation, this causes unnecessarily high disk usage. As such, we will revert Flush() to the previous behavior and add a Commit() member function in the event that this behavior is needed.
2021-07-06common: fs: file: Flush the file in GetSizeMorph1-0/+3
This ensures that GetSize always retrieves the correct file size after a write operation.
2021-07-05input_common: Add missing modifier callback to analog from buttongerman771-0/+1
2021-07-05profiler: Fix deprecated functionsgerman771-4/+5
2021-07-04Texture Cache: Fix collision with multiple overlaps of the same sparse texture.Fernando Sahmkow1-1/+6
2021-07-04Texture Cache: Fix GCC & Clang.Fernando Sahmkow2-11/+11
2021-07-04Texture Cache: Address feedback.Fernando Sahmkow5-18/+37
2021-07-04Texture Cache: Improve accuracy of sparse texture detection.Fernando Sahmkow6-131/+342
2021-07-04Texture Cache: Initial Implementation of Sparse Textures.Fernando Sahmkow12-23/+310
2021-07-04service: mii: Retrieve the correct default miis.Morph1-2/+3
We were including the first 2 default miis which are not meant to be shown in games. With this change, we properly retrieve the 6 default miis shown in games, with 3 of each gender.
2021-07-03TextureCacheOGL: Implement Image Copies for 1D and 1D Array.Fernando Sahmkow1-0/+26
2021-07-03TextureCache: Fix 1D to 2D overlapps.Fernando Sahmkow1-3/+0
2021-07-03CMakeLists: Enforce C4189Morph1-0/+1
This supplements C4101 by detecting initialized but unreferenced local variables
2021-07-02config: Read UISettings as basic settingslat9nq1-30/+19
I must have been asleep or something. These need to be read with the new ReadBasicSetting function.
2021-07-01settings: Set resolution_factor default to 1lat9nq1-1/+1
Fixes Disgaea 6 Demo issues.
2021-07-01Slightly refactor NVDEC and codecs for readability and safetyKelebek110-356/+522
2021-07-01Fix XC2/VOEZ crashing, add audio looping and a few misc fixesKelebek17-132/+188
2021-07-01yuzu_cmd: config: Pass a reference inlat9nq2-5/+11
Also adds documentation for the ReadSetting function. Address review comments. Co-authored-by: Mai M. <mathew1800@gmail.com>
2021-06-29core, input_common: Miscellaneous fixeslat9nq3-5/+8
bcat: Fix settings access telemetry_session: Fix settings accesses So this is what I get for testing with the web service disabled. touch_from_button: Fix settings access for clang
2021-06-29yuzu qt: Make most UISettings a BasicSettinglat9nq12-91/+107
For simple primitive settings, moves their defaults and labels to definition time. Also fixes typo and clang-format yuzu qt: config: Fix rng_seed
2021-06-28general: Make most settings a BasicSettinglat9nq32-660/+807
Creates a new BasicSettings class in common/settings, and forces setting a default and label for each setting that uses it in common/settings. Moves defaults and labels from both frontends into common settings. Creates a helper function in each frontend to facillitate reading the settings now with the new default and label properties. Settings::Setting is also now a subclass of Settings::BasicSetting. Also adds documentation for both Setting and BasicSetting.
2021-06-28CMakeLists: Disable all warnings for external headersMorph1-0/+5
This lets us avoid needing to wrap external headers with #pragma warning directives for warnings we treat as errors and avoids generating warnings for external code. Thanks to MerryMage for pointing this out.
2021-06-28video_core: Remove #pragma warning directives for external headersMorph2-15/+0
2021-06-28input_common: Remove #pragma warning directives for external headersMorph2-14/+0
2021-06-28CMakeLists: Enforce C4018, C4267, C4305, C4389Morph1-3/+7
2021-06-28core: Enforce C4242Morph1-6/+3
2021-06-28input_common: Enforce C4242Morph1-12/+4
2021-06-28video_core: Enforce C4242Morph1-3/+2
2021-06-28patch_manager: Do not apply LayeredFS mods when dumpingMorph3-4/+8
We should not apply any mods when dumping a game's RomFS.
2021-06-28filesystem: Open a read-only directory for SDMC modsMorph3-19/+25
This prevents mod files from being locked due to the read-only share flag in Windows.
2021-06-28core: Simplify SDMC mod loadinglat9nq3-21/+10
If someone else wants to support other mod formats in the SDMC directory, that can be added later. For now, just allow RomFS modding here and force people to do other types of mods the old way. Addresses review comments. Co-authored-by: LC <mathew1800@gmail.com>
2021-06-28core: Support LayeredFS mod from SDMC directorylat9nq5-2/+47
Enables loading a mod directly from `[yuzu data directory]/sdmc/atmosphere/contents/[title_id]`. For use with some homebrew mod managers.
2021-06-28yuzu qt: Add option to dump to SDMC directorylat9nq4-7/+23
Enables dumping the RomFS to SDMC directory, specifically '[yuzu data directory]/sdmc/atmosphere/contents/[title_id]/romfs'.
2021-06-28video_core: Silence signed/unsigned mismatch warningsMorph4-5/+6
2021-06-28main: Display the instruction set of the running title in the window nameameerj1-0/+3
Displays whether the currently running title uses 64-bit instructions or only 32-bit instructions.
2021-06-27Decouple audio processing and run at variable rateKelebek13-79/+115
Currently, processing of audio samples is called from AudioRenderer's Update method, using a fixed 4 buffers to process the given samples. Games call Update at variable rates, depending on framerate and/or sample count, which causes inconsistency in audio processing. From what I've seen, 60 FPS games update every ~0.004s, but 30 FPS/160 sample games update somewhere between 0.02 and 0.04, 5-10x slower. Not enough samples get fed to the backend, leading to a lot of audio skipping. This PR seeks to address this by de-coupling the audio consumption and the audio update. Update remains the same without calling for buffer queuing, and the consume now schedules itself to run based on the sample rate and count.
2021-06-26hle: service: hwopus: OpenHardwareOpusDecoderEx: Remove unused buffer size.bunnei1-1/+30
2021-06-26configuration: Defer to common/settings for per-game settings defaultslat9nq2-127/+100
Avoids double-setting defaults, and avoids potential accidents when inconsistently setting the default on new settings.
2021-06-26common: Force defaults for Settings::Setting'slat9nq1-44/+57
Requires a default value when creating each per-game setting.
2021-06-26buffer_cache: Only flush downloaded sizeReinUsesLisp1-2/+3
Fixes a regression unintentionally introduced by the garbage collector. This makes regular memory downloads only flush the requested sizes. This negatively affected Koei Tecmo games.
2021-06-26video_core: Enforce C4244ReinUsesLisp1-0/+1
Enforce implicit integer casts to a smaller type as errors.
2021-06-26codec,vic: Disable warnings in ffmpeg headersReinUsesLisp2-4/+29
2021-06-26vk_buffer_cache: Silence implicit cast warningsReinUsesLisp1-2/+3
2021-06-26buffer_cache/texture_cache: Make GC functions privateReinUsesLisp2-5/+5
2021-06-26buffer_cache: Silence implicit cast warningReinUsesLisp1-1/+1
2021-06-25vulkan_device: Make device memory match the rest of the fileReinUsesLisp2-19/+18
Match the style in the file.
2021-06-25hle: hle_helpers: Skip data payload offset checks on TIPC requests.bunnei1-2/+6
- TIPC does not use this.
2021-06-25hle: service: hwopus: Implement GetWorkBufferSizeEx and OpenHardwareOpusDecoderEx.bunnei2-5/+15
- This is used by the latest update of Doom Eternal.
2021-06-25hle: service: aoc: Stub GetAddOnContentListChangedEventWithProcessId.bunnei2-1/+10
- This is used by the latest update of Doom Eternal.
2021-06-25audio_core: common: Bump audio revision to 9.bunnei1-1/+1
- This is used in fw 12.x.x games.
2021-06-24common: Replace common_sizes into user-literalsWunkolo19-126/+152
Removes common_sizes.h in favor of having `_KiB`, `_MiB`, `_GiB`, etc user-literals within literals.h. To keep the global namespace clean, users will have to use: ``` using namespace Common::Literals; ``` to access these literals.
2021-06-24general: Add missing #pragma once directivesMorph4-0/+8
2021-06-24Add missing includes (#6521)Chloe4-0/+7
* Add missing includes * Add array
2021-06-23General: Resolve fmt specifiers to adhere to 8.0.0 API where applicableLioncash9-15/+23
Also removes some deprecated API usages.
2021-06-23maxwell3d: Add missing return in default SizeInBytes() caseLioncash1-0/+1
We were returning '1' in ComponentCount()'s default case but were neglecting to do the same with SizeInBytes().
2021-06-23Simple resizing of the Per-Game configuration window and removal of useless Help question mark button in the title barOZtistic2-1/+8
2021-06-22Reaper: Set minimum cleaning limit on OGL.Fernando Sahmkow1-1/+4
2021-06-22common: fs: Add a description of a regular file in IsFileMorph1-4/+6
This provides a more concrete example of what a regular file is and isn't.
2021-06-22vfs_real: Fix Mode to FileAccessMode conversionMorph1-6/+1
These enforce requiring the file to exist prior to opening.
2021-06-22common: fs: Amend IsFile check in FileOpen / (Write/Append)StringToFileMorph4-9/+12
This check was preventing files with the Write or Append file access modes from being created, as per the documented behavior in FileAccessMode. This amends the check to test for the existence of a filesystem object prior to checking whether it is a regular file. Thanks to liushuyu for pointing out that removing the check altogether would not guard against attempting to open non-regular files such as directories, symlinks, FIFO (pipes), sockets, block devices, or character devices. The documentation has also been updated for these functions to clarify that a file refers to a regular file.
2021-06-22common: fs: file: Remove [[nodiscard]] attribute from FlushMorph2-3/+3
Similarly, Flush() is typically called to attempt to flush a file into the disk. In the one case where this is used, we do not care whether the flush has succeeded or not, making [[nodiscard]] unnecessary.
2021-06-22common: fs: Remove [[nodiscard]] attribute on Remove* functionsMorph6-26/+26
There are a lot of scenarios where we don't particularly care whether or not the removal operation and just simply attempt a removal. As such, removing the [[nodiscard]] attribute is best for these functions.
2021-06-22core: Make is_powered_on atomicRodrigo Locatti1-2/+3
Fixes potential data races when shutting down.
2021-06-22common/detached_tasks: Wait for tasks before shutting downRodrigo Locatti1-0/+2
If this is not waited on, the synchronization primitives are destroyed whe main exits and the detached task ends up signalling garbage and not properly finishing.
2021-06-22npad: Fix data race when updating devicesRodrigo Locatti2-0/+8
Add a lock to avoid data races. This reduces the number of -fsanitize=thread errors significantly.
2021-06-22input_common/mouse_input: Fix data raceRodrigo Locatti2-12/+10
Fix data race using std::jthread and std::stop_token.
2021-06-22Implement audout GetAudioOutPlayedSampleCountKelebek13-3/+20
Used in Ninja Gaiden games.
2021-06-22bootmanager: Use std::stop_source for stopping emulationReinUsesLisp8-18/+18
Use its std::stop_token to abort shader cache loading. Using std::stop_token instead of std::atomic_bool allows the usage of other utilities like std::stop_callback.
2021-06-22vk_master_semaphore: Use jthread for debug threadReinUsesLisp2-19/+8
2021-06-21gl_device: Expand on Mesa driver nameslat9nq1-3/+28
Makes this list a bit more capable at identifying Mesa drivers. Tries to deal with two of the overloaded vendor strings in a more generic fashion.
2021-06-21video_core: Add GPU vendor name to window title barameerj9-10/+75
2021-06-20Update dynarmic and add new unsafe CPU option.Fernando Sahmkow7-0/+31
2021-06-20Reaper: Guarantee correct deletion.Fernando Sahmkow5-2/+23
2021-06-20Reaper: Upgrade label from unsafe to experimental as no regressions are known now.Fernando Sahmkow1-1/+1
2021-06-19util_shaders: Specify ASTC decoder memory barrier bitsameerj1-1/+6
2021-06-19astc_decoder.comp: Remove unnecessary LUT SSBOsameerj5-113/+34
We can move them to instead be compile time constants within the shader.
2021-06-19astc: Various robustness enhancements for the gpu decoderameerj5-47/+16
These changes should help in reducing crashes/drivers panics that may occur due to synchronization issues between the shader completion and later access of the decoded texture.
2021-06-19host_memory: Correct MEM_RESERVE_PLACEHOLDERlat9nq1-1/+1
Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our manually imported version of it drops the last zero.
2021-06-18externals: httplib: replace custom httplib header with upstream as submodule.Vortex1-1/+2
This also includes a minor change to web_service.cpp - to fix compatibility with upstream changes.
2021-06-18service: time: Use GetFileRelative to get files within subdirectoriesMorph1-1/+1
The timezone info file can be within subdirectories (such as Asia/Tokyo), use GetFileRelative instead of GetFile to get files within subdirectories.
2021-06-18kernel: Fix missing peak set in KResourceLimit::SetLimitValueMorph1-0/+1
2021-06-18vulkan_debug_callback: Skip logging known false-positive validation errorsameerj1-0/+8
Avoids overwhelming the log with validation errors that are not applicable
2021-06-17Reaper: Correct size calculation on Vulkan.Fernando Sahmkow1-5/+3
2021-06-17config: Add frame limiter toggle hotkeyameerj3-3/+8
2021-06-17nvflinger: Add toggle to disable buffer swap interval limitsameerj8-0/+38
Enabling this setting will allow some titles to present more frames to the screen as they become available in the nvflinger buffer queue.
2021-06-17Reaper: Change memory restrictions on TC depending on host memory on VK.Fernando Sahmkow10-41/+90
2021-06-16Reaper: Address Feedback.Fernando Sahmkow6-20/+43
2021-06-16Reaper: Setup settings and final tuning.Fernando Sahmkow10-32/+64
2021-06-16Reaper: Tune it up to be an smart GC.Fernando Sahmkow5-13/+130
2021-06-16Initial Reaper SetupReinUsesLisp6-56/+226
WIP
2021-06-16vulkan_memory_allocator: Release allocations with no commitsReinUsesLisp2-5/+22
2021-06-16spl: Mark the other functions as unimplementedMorph1-5/+30
2021-06-16spl: Implement spl::GetConfigMorph2-1/+90
2021-06-16hle: api_version: Add HLE API version constantsMorph3-33/+54
2021-06-16spl: Add the general SPL interfaceMorph4-45/+64
2021-06-16spl: Add SPL typesMorph2-0/+231
2021-06-16spl: Add SPL result codesMorph2-0/+30
2021-06-16common: fs: file: Remove redundant call to WriteStringToFileMorph2-6/+1
The Append open mode will create a new file if said file does not exist at a given path, making this call redundant.
2021-06-16fsp_srv: Fix filesystem access loggingMorph10-38/+63
This introduces a new setting Enable FS Access Log which saves the filesystem access log to sdmc:/FsAccessLog.txt If this setting is not enabled, this will indicate to FS to not call OutputAccessLogToSdCard. Fixes softlocks during loading in Xenoblade Chronicles 2 when certain DLC is enabled.
2021-06-16astc_decoder: Fix LDR CEM1 endpoint calculationameerj2-2/+2
Per the spec, L1 is clamped to the value 0xff if it is greater than 0xff. An oversight caused us to take the maximum of L1 and 0xff, rather than the minimum. Huge thanks to wwylele for finding this. Co-Authored-By: Weiyi Wang <wwylele@gmail.com>
2021-06-16yuzu_cmd/config: Add Accelerate ASTC and missing NVDEC emulation settingsameerj2-2/+12
2021-06-16configure_graphics: Add Accelerate ASTC decoding settingameerj9-2/+32
2021-06-16textures: Reintroduce CPU ASTC decoderameerj4-2/+1592
Users may want to fall back to the CPU ASTC texture decoder due to hangs and crashes that may be caused by keeping the GPU under compute heavy loads for extended periods of time. This is especially the case in games such as Astral Chain which make extensive use of ASTC textures.
2021-06-15lm: Demote guest logs to LOG_DEBUGameerj1-27/+20
Guest logs are not very useful, as they are intended for use by the game developers during development. As such, they provide little meaning to be logged by yuzu and tend to overwhelm the log output at times.
2021-06-15texture_cache/util: Avoid relaxed image views on different bytes per pixelReinUsesLisp1-1/+9
Avoids API usage errors on UE4 titles leading to crashes.
2021-06-13general: Remove extraneous includesMorph3-3/+0
2021-06-13common: logging: Restructure backend codeMorph8-278/+288
2021-06-13common: logging: backend: Wrap IOFile in a unique_ptrMorph2-6/+27
Allows us to forward declare Common::FS::IOFile.
2021-06-13common: fs: file: Flush the file to the disk when Flush() is calledMorph1-1/+5
std::fflush does not guarantee that file buffers are flushed to the disk. Use _commit on Windows and fsync on all other OSes to ensure that the file is flushed to the disk.
2021-06-13cmake: Fix find_program usage for 3.15lat9nq1-1/+4
yuzu requires CMake 3.15 yet find_program was using REQUIRED, which is only available on 3.18 and later. Instead, we check for "<VAR>-NOTFOUND". In addition, check for additional requirements before building libusb or FFmpeg with autotools. Otherwise, CMake configuration will pass yet compilation will fail.
2021-06-13configure_cpu_debug: Clarify settings behaviorMorph1-1/+1
This makes it clear that the disabled settings only take effect when CPU Accuracy is set to Debug Mode.
2021-06-12common: fs: Use the normal directory iterator in *Recursively functionsMorph1-2/+16
MSVC's implementation of recursive_directory_iterator throws an exception on an error despite a std::error_code being passed into its constructor. This is most likely a bug in MSVC's implementation since directory_iterator does not throw an exception on an error. We can replace the usage of recursive_directory_iterator for now until MSVC fixes their implementation of it.
2021-06-11hid: Stub IsFirmwareUpdateAvailableForSixAxisSensorgerman772-1/+23
2021-06-11yuzu: main: Ensure enough space is available for RomFS dumpingMorph1-0/+12
This warns the user if there isn't enough free space to dump the entire RomFS to disk. It requires at least the size of the extracted RomFS + 1 GiB as a buffer of free space.
2021-06-11common/host_memory: Implement a fallback if fastmem fails.Markus Wick2-14/+49
This falls back to the old approach of using a virtual buffer. Windows is untested, but this build should fix support for Windows < 10 v1803. However without fastmem support at all.
2021-06-11common/host_shader: Load Windows 10 functions dynamicallyReinUsesLisp1-29/+88
Workaround old headers and libraries shipped on MinGW.
2021-06-11GPUTHread: Remove async reads from Normal Accuracy.Fernando Sahmkow1-18/+6
2021-06-11rasterizer: Update pages in batchesReinUsesLisp1-15/+41
2021-06-11host_memory: Support staged VirtualProtect callsReinUsesLisp1-3/+12
2021-06-11General: Add settings for fastmem and disabling adress space check.FernandoS2712-6/+83
2021-06-11common/host_memory: Optimize for huge tables.Markus Wick2-11/+24
In theory, if we have 2 MB continously mapped, this should save one layer of TLB. Let's make it at least more likely by aligning the memory.
2021-06-11core: Make use of fastmemMarkus Wick6-8/+30
2021-06-11tests: Add tests for host memoryReinUsesLisp2-0/+184
2021-06-11common/host_memory: Add Linux implementationMarkus Wick1-10/+120
2021-06-11common/host_memory: Add interface and Windows implementationReinUsesLisp3-0/+384
2021-06-11kernel: Unconditionally set thread state when appropriateMorph2-23/+12
2021-06-11kernel: KLightConditionVariable: Update implementation to 12.xMorph2-14/+31
Updates the implementation of KLightConditionVariable to FW 12.x
2021-06-10Fix GCC undefined behavior sanitizer.Markus Wick3-1/+9
* Wrong alignment in u64 LOG_DEBUG -> memcpy. * Huge shift exponent in stride calculation for linear buffer, unused result -> skipped. * Large shift in buffer cache if word = 0, skip checking for set bits. Non of those were critical, so this should not change any behavior. At least with the assumption, that the last one used masking behavior, which always yield continuous_bits = 0.
2021-06-10hle: service: sm: Remove redundant session reservation, etc.bunnei2-18/+13
- We were double-reserving, causing us to run out of sessions in Pokemon Sword & Shield.
2021-06-10hle: service: Increase arbitrary max sessions limit.bunnei1-4/+1
- Pokemon Sword/Shield are still hitting this for some reason, causing an svcBreak.
2021-06-10hle: kernel: KClientPort: Add an assert for session count.bunnei1-0/+3
- Prevents us from over decrementing num_sessions.
2021-06-10hle: service: sm: Fix GetService setup of session & port.bunnei2-5/+5
2021-06-10hle: service: Use correct size for ServerSessionCountMax.bunnei1-4/+6
2021-06-10hle: kernel: KServerSession: Fix client disconnected.bunnei3-9/+8
- Prevents a cloned session's handler from being overwritten by another disconnected session. - Fixes session handler nullptr asserts with Pokemon Sword & Shield.
2021-06-10kernel: svc: Add missing error check to CancelSynchronization.bunnei1-2/+2
- Avoids a potential crash if the handle is invalid, and also makes this code accurate to real kernel behavior.
2021-06-09hle: service: Increase arbitrary max sessions limit.bunnei1-1/+1
- Pokemon Sword/Shield are still hitting this for some reason, causing an svcBreak.
2021-06-09src/common/CMakeLists.txt: fix variable escapingliushuyu1-8/+9
2021-06-09common/fs/path_util: Remove [[nodiscard]] from function with void returnLioncash1-1/+1
We can't make use of the return value here, since we don't a return value to work with.
2021-06-09configure_ui: Add translation context for file-scope stringsLioncash1-13/+27
Allows for these strings to show up in the translation files.
2021-06-08hle: kernel: KServerSession: Work-around scenario where session is closed too early.bunnei1-7/+24
2021-06-08hle: kernel: hle_ipc: Ensure SessionRequestHandler is valid.bunnei3-5/+26
2021-06-08hle: kernel: Remove service thread manager and use weak_ptr.bunnei3-18/+8
- We no longer need to queue up service threads to be destroyed. - Fixes a race condition where a thread could be destroyed too early, which caused a crash in Pokemon Sword/Shield.
2021-06-08yuzu qt: Start games from context menulat9nq4-3/+23
This connects the BootGame function to the context menu. In addition, there is an option to boot without using the custom configuration.
2021-06-07Various suggestions by v1993 and lioncashClément Gallet2-11/+9
2021-06-07hle: kernel: KServerSession: Use ASSERT_MSG where appropriate.bunnei1-1/+1
2021-06-07hle: kernel: k_server_session: Return service thread by strong pointer.bunnei2-4/+4
2021-06-07hle: kernel: k_server_session: Ensure service thread is valid before dereference.bunnei1-1/+3
2021-06-07hle: kernel: hle_ipc: Use default destructor for SessionRequestManager.bunnei1-1/+1
2021-06-07hle: kernel: KAutoObjectWithListContainer: Use boost::instrusive::rbtree.bunnei11-22/+26
- Fixes some crashes introduced by our common intrusive red/black tree impl.
2021-06-06Add sdl2 audio description in the yuzu-cmd config fileClément Gallet1-1/+2
2021-06-06Add SDL2 audio backendClément Gallet4-0/+211
2021-06-06limitable_input_dialog: Implement character limiterKewlan3-5/+48
When using GetText() you can now choose what set of characters the user can't enter.
2021-06-05Avoid -Wshadow warningClément Gallet1-1/+1
Co-authored-by: Mai M. <mathew1800@gmail.com>
2021-06-05result: Add [[nodiscard]] specifiers where applicableLioncash1-20/+20
The result code classes are used quite extensively throughout both the kernel and service HLE code. We can mark these member functions as [[nodiscard]] to prevent a few logic bugs from slipping through.
2021-06-05hle: kernel: Refactor to allocate a ServiceThread per service handler.bunnei13-67/+75
- Previously, we would allocate a thread per session, which adds new threads on CloneCurrentObject. - This results in race conditions with N sessions queuing requests to the same service interface. - Fixes Pokken Tournament DX crashes/softlocks, which were regressed by #6347.
2021-06-04yuzu-cmd: Fix OpenGL renderingClément Gallet2-12/+6
2021-06-04decoders: Break instead of continuelat9nq1-2/+2
continue causes a memory leak in A Hat in Time.
2021-06-04decoders: Avoid out-of-bounds accesslat9nq1-0/+8
This is not a real fix, so assert here and continue before crashing.
2021-06-04[game_list] Correct light theme loading (#6408)Maide1-5/+1
Correct light theme loading The setLayout call in game list instantiation will call resizing signals with default values in light theme, which was then being erroneously saved. setLayout doesn't seem to call resizing for any other theme, so I'm not sure why that happens.
2021-06-04yuzu-cmd: Add touch_from_button in config fileClément Gallet2-1/+50
2021-06-03cmake: General improvements to libusb linkinglat9nq1-2/+1
Delegates libusb external communication to externals/CMakeLists.txt Ensures an interface library `usb` for every pathway input_common just links to the `usb` library now externals/libusb/CMakeLists.txt sets variables to override SDL2's libusb finding Other minor cleanup
2021-06-03fsp-srv: Replace one last instance of RESULT_SUCCESSMorph1-1/+1
2021-06-03fspsrv: Implement DisableAutoSaveDataCreation (#6355)Chloe6-2/+25
- Used by Mii Edit
2021-06-03yuzu qt: Revert some usages of string_viewlat9nq7-18/+27
Causes a heap-use-after free reported by AddressSanitizer. This makes use of std::filesystem::path, but due to that we have to use their string() function which may not work for all characters.
2021-06-02game_list: Minor for loop optimizationsKewlan1-9/+6
There's no need to check the first and last rows since they'll always be the Favorites and AddDir rows. Also change the name of the clear_all variable for consistency.
2021-06-02Stop the columns resizing on NAND installKelebek12-34/+17
2021-06-02general: Replace RESULT_UNKNOWN with ResultUnknownMorph13-45/+45
Transition to PascalCase for result names.
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph113-933/+930
Transition to PascalCase for result names.
2021-06-02common: fs: fs_util: Move PathToUTF8String to fs_utilMorph4-15/+14
2021-06-02common: fs: fs_util: Add more string conversion functionsMorph2-0/+33
2021-06-01yuzu qt: Use lambda and std::function for reset callbacklat9nq4-19/+17
Also makes use of std::move, and performs a clang-format cleanup. This addresses review comments. Co-authored-by: LC <mathew1800@gmail.com>
2021-06-01yuzu: Add settings reset button to general configurationlat9nq8-23/+111
Builds on german77's work to reset all settings back to their defaults. This include UISettings and Settings values structs, but does not affect save profiles, input profiles, and game directories. This works from a button input in configure_general. When activated, it calls a callback to close the whole configure dialog, then GMainWindow deletes the old configuration, both on disk and in memory, and reinitalizes a new one. It also resets a portion of the UI and calls the telemetry window prompt.
2021-06-01configuration: Initial work to reset all settingsfearlessTobi6-0/+33
This commit does not compile. Initial work to add and connect a Reset to Defaults button to the configure_general tab. Co-authored-by: german77 <juangerman-13@hotmail.com>
2021-06-01buffer_cache: Simplify uniform disabling logicameerj8-6/+29
2021-05-31common_funcs: Move R_ macros to result.hLioncash2-25/+25
These macros all interact with the result code type, so they should ideally be within this file as well, so all the common_funcs machinery doesn't need to be pulled in just to use them.
2021-05-30settings: Disable controller preview if controller is not activegerman773-2/+25
2021-05-30input_common: Analog button, use time based position instead of frequent updatesgerman773-73/+138
2021-05-29k_class_token: Use variable templates where applicableLioncash1-43/+36
Same behavior, less code.
2021-05-29video_core: gpu: WaitFence: Do not block threads during shutdown.bunnei2-1/+13
- Fixes a hang on shutdown when NVFlinger thread is waiting on a syncpoint that will never occur. - Commonly observed when stopping emulation in Super Mario Odyssey.
2021-05-29core/memory: Check our memory fallbacks for out-of-bound behavior.Markus Wick3-4/+46
This makes it by far harder to crash yuzu. Also implement the 48bit masking of AARCH64 while touching this code.
2021-05-29core/arm_interface: Improve the performance of memory fallbacks.Markus Wick2-29/+31
We just create one memory subsystem. This is a constant all the time. So there is no need to call the non-inlined parent.Memory() helper on every callback.
2021-05-29kernel: Add missing override specifiersLioncash15-53/+48
Over the course of the kernel refactoring a tiny bit of missing overrides slipped through review, so we can add these. While we're at it, we can remove redundant virtual keywords where applicable as well.
2021-05-29Fix two GCC 11 warnings: Unneeded copies.Markus Wick2-3/+3
std::move created an unneeded copy. iterating without reference also created copies.
2021-05-29externals: Update dynarmic.Markus Wick6-11/+11
The new version supports fastmem on a64.
2021-05-29k_thread: Move dereference after null check in Initialize()Lioncash1-5/+5
Prevents a -Wnonnull warning on GCC.
2021-05-29hle: kernel: KSlabHeap: Allow host or guest allocations.bunnei2-11/+191
- Use host allocations for kernel memory, as this is not properly emulated yet. - Use guest allocations for TLS, as this needs to be backed by DeviceMemory.
2021-05-28touchscreen: Make use of common point structLioncash2-10/+10
2021-05-28common: Extract point into a common structLioncash3-29/+65
This is generic enough that it can be moved into the Common class for reuse.
2021-05-28common/fs/file: Explicitly delete copy constructorsLioncash1-1/+4
Relocates them to the same place the move equivalents are at for consistent viewing.
2021-05-28common/fs/file: Devirtualize destructorLioncash1-1/+1
IOFile is a final class, so there's no need for a virtual destructor.
2021-05-28common/fs/file: Default initialize IOFile membersLioncash1-2/+2
Prevents a potential uninitialized read vector in the move constructor.
2021-05-28applets/swkbd: Make use of std::move where applicableMorph2-22/+19
Avoids redundant string copies
2021-05-28applets/swkbd: Only read the text check message on Failure/ConfirmMorph1-2/+7
Applications may leave this region of memory uninitialized when the text check result is not either Failure or Confirm. Attempting to read uninitialized memory may cause an exception within the UTF16 to UTF8 string converter. Fix this by only reading the text check message on Failure or Confirm.
2021-05-27video_core: rasterizer_cache: Use u16 for cached page count.bunnei2-9/+9
- Greatly reduces the risk of overflow, at the cost of doubling the size of this array.
2021-05-27core/arm_interface: Call SVC after end of dynarmic block.Markus Wick6-18/+42
So we can modify all of dynarmic states within SVC without ExceptionalExit. Especially as the ExceptionalExit hack is dropped on upstream dynarmic.
2021-05-27vulkan_memory_allocator: Allow textures to be allocated in host memoryReinUsesLisp2-31/+43
Allow Vulkan's allocator to use host memory when there's no more device local memory. This delays OOM, but it will eventually still happen.
2021-05-26cmake: Download Qt binaries on Linux if neededlat9nq1-2/+11
If the local version of Qt is older than the minimum version required by yuzu, download a pre-built binary package from yuzu-emu/ext-linux-bin and build yuzu with it, instead. This also requires linking yuzu to the correct libraries after building it, and copying over the required binaries when building yuzu. This sets the Qt requirement to 5.12, which is intentionally behind the versions used by our toolchains since they are not all updated yet to 5.15.
2021-05-26core/arm: Drop ChangeProcessorID.Markus Wick5-12/+0
This code was used to switch the CPU ID on thread switches. However since "hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.", the CPU ID is not a constant. This has been dead code since this rewrite, and dropped in dynarmic as well. So there is no need to keep it.
2021-05-26ldn: Add and stub lp2p:sys lp2p:app INetworkServiceMonitor INetworkServicegerman771-0/+141
2021-05-26yuzu qt: Restore const qualifierslat9nq2-23/+12
This addresses review comments. Co-authored-by: LC <mathew1800@gmail.com>
2021-05-26yuzu qt: Handle per-game configs for title id 0lat9nq8-22/+46
Currently with programs that have a 0 title id, yuzu loads the custom configuration 0000000000000000.ini for per-game configs. This is not ideal since many homebrews share this id. Instead for these programs, we load a config that is simply the file name and `.ini` appended to it.
2021-05-26common: fs: Rework the Common Filesystem interface to make use of std::filesystem (#6270)Morph74-2173/+3789
* common: fs: fs_types: Create filesystem types Contains various filesystem types used by the Common::FS library * common: fs: fs_util: Add std::string to std::u8string conversion utility * common: fs: path_util: Add utlity functions for paths Contains various utility functions for getting or manipulating filesystem paths used by the Common::FS library * common: fs: file: Rewrite the IOFile implementation * common: fs: Reimplement Common::FS library using std::filesystem * common: fs: fs_paths: Add fs_paths to replace common_paths * common: fs: path_util: Add the rest of the path functions * common: Remove the previous Common::FS implementation * general: Remove unused fs includes * string_util: Remove unused function and include * nvidia_flags: Migrate to the new Common::FS library * settings: Migrate to the new Common::FS library * logging: backend: Migrate to the new Common::FS library * core: Migrate to the new Common::FS library * perf_stats: Migrate to the new Common::FS library * reporter: Migrate to the new Common::FS library * telemetry_session: Migrate to the new Common::FS library * key_manager: Migrate to the new Common::FS library * bis_factory: Migrate to the new Common::FS library * registered_cache: Migrate to the new Common::FS library * xts_archive: Migrate to the new Common::FS library * service: acc: Migrate to the new Common::FS library * applets/profile: Migrate to the new Common::FS library * applets/web: Migrate to the new Common::FS library * service: filesystem: Migrate to the new Common::FS library * loader: Migrate to the new Common::FS library * gl_shader_disk_cache: Migrate to the new Common::FS library * nsight_aftermath_tracker: Migrate to the new Common::FS library * vulkan_library: Migrate to the new Common::FS library * configure_debug: Migrate to the new Common::FS library * game_list_worker: Migrate to the new Common::FS library * config: Migrate to the new Common::FS library * configure_filesystem: Migrate to the new Common::FS library * configure_per_game_addons: Migrate to the new Common::FS library * configure_profile_manager: Migrate to the new Common::FS library * configure_ui: Migrate to the new Common::FS library * input_profiles: Migrate to the new Common::FS library * yuzu_cmd: config: Migrate to the new Common::FS library * yuzu_cmd: Migrate to the new Common::FS library * vfs_real: Migrate to the new Common::FS library * vfs: Migrate to the new Common::FS library * vfs_libzip: Migrate to the new Common::FS library * service: bcat: Migrate to the new Common::FS library * yuzu: main: Migrate to the new Common::FS library * vfs_real: Delete the contents of an existing file in CreateFile Current usages of CreateFile expect to delete the contents of an existing file, retain this behavior for now. * input_profiles: Don't iterate the input profile dir if it does not exist Silences an error produced in the log if the directory does not exist. * game_list_worker: Skip parsing file if the returned VfsFile is nullptr Prevents crashes in GetLoader when the virtual file is nullptr * common: fs: Validate paths for path length * service: filesystem: Open the mod load directory as read only
2021-05-25yuzu qt: Add an Apply button to configuration dialogslat9nq6-18/+57
Most of the code already exists to do this, but the Apply button itself was never added. This adds a button and boolean that tells yuzu to save the configuration after applying settings, even if close/Cancel is pressed on the dialog. Changes after applying will not be saved when Cancel is pressed, though.
2021-05-25kernel: process_capability: Add MapRegion capabilityMorph2-0/+12
- Used by nx-hbloader
2021-05-24zstd_compression: Make use of std::spanLioncash2-3/+4
Allows for the incoming data stream to be non-allocating.
2021-05-24lz4_compression: Make use of std::spanLioncash2-4/+4
Allows making the incoming data stream non-allocating.
2021-05-24hid: ApplyNpadSystemCommonPolicyChloe Marcec1-1/+10
We already do this specifically for homebrew, so we can keep it stubbed out for the time being
2021-05-24settings: Forbid docked mode on handheldgerman773-4/+24
2021-05-23input_common: Add dual joycon supportgerman772-60/+258
2021-05-23settings: Suppress duplicate label name warninggerman771-3/+3
2021-05-22applets/swkbd: Make use of QueuedConnection in returnPressed signalMorph1-15/+3
Some users have reported rare crashes when pressing the Enter key on the keyboard to confirm input in the normal software keyboard, particularly in Super Smash Bros. Ultimate while entering the name of a ruleset or controller layout. It is suspected that the QLineEdit::returnPressed signal is causing a race condition as confirming input through other means does not produce the crash. Since Qt::QueuedConnection posts an event to the event queue of the callee's thread instead of executing it directly on the caller's thread, this eliminates any potential race conditions from occurring in this scenario.
2021-05-21hle: kernel: service_thread: Take reference to KServerSession on service request.bunnei1-9/+5
2021-05-21hle: kernel: k_port: Use AcceptSession to ensure SessionList state is correct.bunnei1-1/+1
- Fixes a use-after-free, work-around until we fixup session/port management.
2021-05-21hle: kernel: Use host memory allocations for KSlabMemory.bunnei4-174/+20
- There are some issues with the current workaround, we will just use host memory until we have a complete kernel memory implementation.
2021-05-21Revert "WORKAROUND: Do not use slab heap while we track down issues with resource management."bunnei1-2/+2
This reverts commit f2c26443f85a3c3fd43137509368ba5c7ab80ee7.
2021-05-21hle: kernel: hle_ipc: Simplify incoming/outgoing move/copy/domain objects.bunnei3-62/+17
2021-05-21common: tree: Avoid a crash on nullptr dereference.bunnei1-0/+11
2021-05-21hle: kernel: Implement CloneCurrentObject and improve session management.bunnei13-99/+184
2021-05-21Revert "WORKAROUND: temp. disable session resource limits while we work out issues"bunnei4-11/+11
This reverts commit fc086f93b2165b5c210cb7dcd6c18ebe17f1fd7b.
2021-05-20configure_cpu: Simplify UpdateGrouplat9nq1-7/+4
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-05-19configuration_shared: Drop unused function and template anotherlat9nq2-52/+7
Drops an unused variant of ApplyPerGameSetting, and turns the QComboBox variants of SetPerGameSetting into a template. Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-05-19applets/swkbd: Send the correct text string on TextCheck::ConfirmMorph1-8/+8
Previously the text string for the inline software keyboard was being sent instead of the normal software keyboard, leading to empty text being sent all the time.
2021-05-18KTransferMemory: Return size instead of size * PageSize in GetSize()Morph1-1/+1
size is already the size in bytes. We do not need to multiply it by the page size
2021-05-18hid/gesture: Factor out last gesture retrieval into its own functionLioncash2-14/+23
Deduplicates a commonly repeated expression.
2021-05-18hid/gesture: Ensure all ID arrays are initializedLioncash1-4/+4
Makes for deterministic initial state.
2021-05-18hid/gesture: Make Point a templateLioncash2-38/+46
We can now use this in a generic context to reuse it with the finger position.
2021-05-18hid/gesture: Replace x,y members of GestureState with a PointLioncash2-6/+4
Simplifies assignments.
2021-05-18hid/gesture: Add default comparators to PointLioncash2-10/+7
Simplifies some comparisons.
2021-05-18hid/gesture: Rename Points to PointLioncash1-5/+5
This only represents a single point
2021-05-17general: Demote custom_rtc to regular settinglat9nq6-58/+30
2021-05-17CMakeLists: Enforce C4715 on MSVCMorph1-0/+1
This is similar to -Werror=return-type
2021-05-17configure_debug: FIx duplicate labelsMorph1-5/+5
Duplicate labels were unintentionally introduced due to copy-paste. This silences the compilation warning produced by the presence of these duplicates.
2021-05-17yuzu/main: Fix version info in logging and about dialogMorph3-14/+17
2021-05-16buffer_cache: Ensure null buffers cannot take the fast uniform bind pathameerj1-1/+4
Fixes a crash in New Pokemon Snap
2021-05-16main: Prevent installing base titles into NANDMorph4-3/+28
Many users have been installing their base titles into NAND instead of adding them into the games list. This prevents users from installing any base titles and warns the user about the action.
2021-05-16hle_ipc: unsigned -> u32Morph1-7/+7
This is more concise and consistent with the rest of the codebase.
2021-05-16hle_ipc: Add a getter for PIDMorph2-2/+7
2021-05-16core: Make variable shadowing a compile-time errorLioncash99-279/+304
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
2021-05-16configuration: Add CPU tab to game propertieslat9nq13-88/+181
Allows setting CPU accuracy to Accurate or Unsafe per-game, as well as the accuracy options for Unsafe. Debug is not allowed here as a per-game CPU accuracy.
2021-05-16nifm, ssl: Fix incorrect response sizesMorph2-2/+2
2021-05-16configuration: Simplify applying per-game settingslat9nq6-112/+69
Originally, every time we add a per-game setting, we'd have to guard for it when setting it on the global config, and use a specific function to do it for the per-game config. This moves the global check into the ApplyPerGameSetting function so that we can use it for changing both the global and per-game states. Less work for the programmer.
2021-05-16configuration_shared: Add some commentslat9nq1-6/+14
Monke brain can't remember what all of these does a year later.
2021-05-16general: Make CPU accuracy and related a Settings::Settinglat9nq7-41/+47
Required to make CPU accuracy and unsafe settings available to use as a per-game setting.
2021-05-16perf_stats: Rework FPS counter to be more accurateameerj10-14/+26
The FPS counter was based on metrics in the nvdisp swapbuffers call. This metric would be accurate if the gpu thread/renderer were synchronous with the nvdisp service, but that's no longer the case. This commit moves the frame counting responsibility onto the concrete renderers after their frame draw calls. Resulting in more meaningful metrics. The displayed FPS is now made up of the average framerate between the previous and most recent update, in order to avoid distracting FPS counter updates when framerate is oscillating between close values. The status bar update frequency was also changed from 2 seconds to 500ms.
2021-05-15main: Add title's version to window name on EA/mainlineameerj1-11/+6
Fixes the missing title version number on EA/mainline builds which override the title bar string.
2021-05-15input_common: Implement SDL motiongerman775-3/+167
2021-05-15input_common: Fix crash when controller disconnectsgerman771-1/+3
2021-05-15input_common: Rewrite sdl analog mappinggerman771-25/+25
2021-05-13input_common: Sanitize motion datagerman771-0/+23
2021-05-13ssl: Stub Import(Client/Server)PkiMorph1-2/+40
- Used in JUMP FORCE Deluxe Edition
2021-05-12common: tree: Avoid a nullptr dereference.bunnei1-1/+1
2021-05-11hle: kernel: hle_ipc: Fix outgoing IPC response size calculation.bunnei3-1/+15
2021-05-11WORKAROUND: temp. disable session resource limits while we work out issuesbunnei4-11/+11
2021-05-11WORKAROUND: Do not use slab heap while we track down issues with resource management.bunnei1-2/+2
2021-05-11audrenbunnei2-25/+16
2021-05-11core: hle: ipc_helpers: Fix cast on raw_data_size calculation.bunnei1-1/+1
2021-05-11hle: service: sm: Add TIPC support.bunnei2-41/+66
- Fixes our error checking of names as well.
2021-05-11hle: kernel: hle_ipc: Improve IPC code and add initial support for TIPC.bunnei2-81/+57
- Fixes our move handles implementation to actually move objects. - Simplifies the traditional IPC path.
2021-05-11hle: service: sm: GetService: Reserve session resource when we create a KSession.bunnei1-0/+7
2021-05-11hle: service: Add support for dispatching TIPC requests.bunnei2-1/+52
2021-05-11hle: service: Implement IPC::CommandType::Close.bunnei3-11/+15
- This was not actually closing sessions before.
2021-05-11hle: service: sm: Use RegisterNamedService to register the service.bunnei1-1/+1
2021-05-11hle: service: sm: Improve Initialize implementation.bunnei2-0/+3
2021-05-11hle: kernel: svc: Update ConnectToNamedPort to use new CreateNamedServicePort interface.bunnei1-4/+3
2021-05-11hle: kernel: Implement named service ports using service interface factory.bunnei4-22/+30
- This allows us to create a new interface each time ConnectToNamedPort is called, removing the assumption that these are static.
2021-05-11hle: kernel: KSession: Improve implementation of CloneCurrentObject.bunnei1-2/+10
2021-05-11hle: service: sm: Increase point buffer size.bunnei1-1/+1
2021-05-11hle: ipc_helpers: Reserve session resource when we create a KSession.bunnei1-0/+5
2021-05-11hle: kernel: KClientPort: Cleanup comment format.bunnei1-1/+1
2021-05-11hle: ipc: Add declarations for TIPC.bunnei1-1/+16
2021-05-11hle: kernel: Further cleanup and add TIPC helpers.bunnei2-4/+12
2021-05-11hle: ipc_helpers: Update IPC response generation for TIPC.bunnei2-19/+39
2021-05-10configure_ui: Call RequestGameListUpdate when toggling "Show Add-Ons Column"Kewlan1-0/+1
2021-05-10parent_of_member: Make sign conversion explicit in OffsetOfImpl()Lioncash1-1/+2
Previously these conversions were implicit and causing quite a few warnings on clang.
2021-05-09kernel: Delete unused filesgerman772-151/+0
2021-05-08kernel: Eliminate variable shadowingLioncash40-140/+138
Now that the large kernel refactor is merged, we can eliminate the remaining variable shadowing cases.
2021-05-08texture_cache: Handle out of bound texture blitsameerj8-61/+99
Some games interleave a texture blit using regions which are out-of-bounds. This addresses the interleaving to avoid oob reads from the src texture.
2021-05-07ldr: Simplify memory copy within LoadNro()Lioncash1-5/+3
We can use the dedicated memory function for performing copies instead of reading into a temporary buffer and then immediately writing it back out to memory. Eliminates a bit of heap memory churn.
2021-05-06nvflinger: Create layers when they are queried but not foundameerj2-5/+35
Fixes Shantae softlock on boot.
2021-05-06hle: kernel: KPageTable: CanContain should not be constexpr.bunnei2-2/+2
2021-05-06hle: kernel: Move slab resource counts to Kernel.bunnei4-33/+52
2021-05-06fixup! hle: kernel: Migrate KSharedMemory to KAutoObject.bunnei1-2/+2
2021-05-06fixup! hle: kernel: Migrate more of KThread to KAutoObject.bunnei1-1/+1
2021-05-06fixup! common: bit_util: Add BIT macro.bunnei1-2/+0
2021-05-06fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei1-2/+0
2021-05-06fixup! hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei1-2/+0
2021-05-06kernel: svc: Remove unused RetrieveResourceLimitValue function.bunnei1-32/+0
2021-05-06hle: kernel: Fix un/sign mismatch errors with NUM_CPU_CORES.bunnei1-3/+3
2021-05-06fixup! hle: kernel: Add initial impl. of slab setup.bunnei1-6/+2
2021-05-06fixup! hle: kernel: Migrate to KHandleTable.bunnei1-0/+3
2021-05-06fixup! hle: kernel: Migrate more of KThread to KAutoObject.bunnei1-7/+0
2021-05-06common: parent_of_member: Fix build for OffsetOf().bunnei1-4/+4
2021-05-06fixup! common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC.bunnei1-5/+0
2021-05-06fixup! hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.bunnei2-2/+2
2021-05-06fixup! hle: kernel: Migrate to KHandleTable.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Add initial impl. of KLinkedList.bunnei1-12/+12
2021-05-06fixup! hle: kernel: Migrate to KHandleTable.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei3-22/+28
2021-05-06fixup! hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Migrate to KHandleTable.bunnei1-60/+58
2021-05-06fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer.bunnei1-11/+9
2021-05-06fixup! hle: kernel: Add initial impl. of KAutoObjectWithListContainer.bunnei1-9/+2
2021-05-06fixup! hle: kernel: Add initial impl. of KAutoObject.bunnei1-46/+46
2021-05-06fixup! hle: kernel: Add initial impl. of KAutoObject.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Add initial impl. of slab setup.bunnei1-8/+8
2021-05-06common: Rename NON_COPYABLE/NON_MOVABLE with YUZU_ prefix.bunnei5-11/+11
2021-05-06fixup! hle: kernel: Rename Process to KProcess.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Migrate to KHandleTable.bunnei1-1/+1
2021-05-06fixup! hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory.bunnei1-3/+3
2021-05-06hle: kernel: svc: ConnectToNamedPort: Use KHandleTable::Reserve.bunnei1-3/+8
2021-05-06hle: kernel: Migrate to KHandleTable.bunnei22-381/+503
2021-05-06hle: kernel: KClassToken: Ensure class tokens are correct.bunnei1-1/+127
2021-05-06hle: kernel: Improve MapSharedMemory and implement UnmapSharedMemory.bunnei10-95/+210
2021-05-06hle: kernel: Rename Process to KProcess.bunnei83-247/+249
2021-05-06hle: kernel: Remove deprecated Object class.bunnei39-423/+34
2021-05-06hle: kernel: Do not shutdown twice on emulator close.bunnei1-3/+1
2021-05-06hle: kernel: Cleanup shutdown of persistent kernel objects.bunnei1-14/+12
2021-05-06hle: kernel: Migrate KPort, KClientPort, and KServerPort to KAutoObject.bunnei22-166/+444
2021-05-06hle: kernel: Migrate KServerPort to KAutoObject.bunnei8-52/+67
2021-05-06hle: kernel: Migrate KClientPort to KAutoObject.bunnei18-63/+92
2021-05-06hle: kernel: HandleTable: Remove deprecated APIs.bunnei7-111/+28
2021-05-06hle: kernel: Migrate KResourceLimit to KAutoObject.bunnei13-122/+197
2021-05-06hle: kernel: svc: Migrate WaitSynchronization.bunnei2-47/+78
2021-05-06hle: kernel: svc: Use new handle table API for Process.bunnei2-16/+17
2021-05-06hle: kernel: Migrate KTransferMemory to KAutoObject.bunnei12-68/+209
2021-05-06hle: kernel: Migrate KSession, KClientSession, and KServerSession to KAutoObject.bunnei31-356/+412
2021-05-06hle: kernel: svc: Migrate GetThreadContext, GetThreadCoreMask.bunnei1-2/+59
2021-05-06hle: kernel: svc: Migrate GetProcessId, CancelSynchronization, SetThreadActivity.bunnei1-13/+67
2021-05-06hle: kernel: KThread: Remove incorrect resource release.bunnei1-2/+1
2021-05-06hle: kernel: svc_results: Update naming..bunnei8-42/+43
2021-05-06hle: kernel: KThread: Add missing resource hint release.bunnei1-1/+1
2021-05-06hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.bunnei35-200/+215
2021-05-06hle: ipc_helpers: Add methods for copy/move references.bunnei1-2/+24
2021-05-06hle: kernel: Move slab heaps to their own container.bunnei2-10/+16
2021-05-06hle: kernel: Refactor several threads/events/sharedmemory to use slab heaps.bunnei11-59/+53
2021-05-06hle: kernel: Move slab heap management to KernelCore.bunnei7-64/+106
2021-05-06hle: kernel: Ensure all kernel objects with KAutoObject are properly created.bunnei20-0/+55
2021-05-06hle: kernel: Use unique_ptr for suspend and dummy threads.bunnei1-8/+8
2021-05-06hle: kernel: Migrate KEvent to KAutoObject.bunnei37-266/+269
2021-05-06hle: kernel: Migrate KSharedMemory to KAutoObject.bunnei16-114/+128
2021-05-06hle: kernel: Migrate KProcess to KAutoObject.bunnei14-58/+80
2021-05-06hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei28-59/+65
2021-05-06hle: kernel: Migrate more of KThread to KAutoObject.bunnei18-294/+451
2021-05-06hle: kernel: svc: Migrate GetThreadPriority, StartThread, and ExitThread.bunnei1-21/+12
2021-05-06hle: kernel: svc: Migrate CreateThread.bunnei1-14/+21
2021-05-06hle: kernel: Migrate idle threads.bunnei2-13/+9
2021-05-06hle: kernel: Migrate KThread to KAutoObject.bunnei2-109/+91
2021-05-06hle: kernel: Add initial impl. of slab setup.bunnei3-0/+227
2021-05-06hle: kernel: Refactor out various KThread std::shared_ptr usage.bunnei10-58/+30
2021-05-06core: Defer CoreTiming initialization.bunnei1-1/+1
2021-05-06core: memory: Add a work-around to allocate and access kernel memory regions by vaddr.bunnei3-1/+46
2021-05-06common: common_funcs: Add Size helper function.bunnei1-0/+15
2021-05-06hle: kernel: Add initial impl. of KLinkedList.bunnei2-0/+234
2021-05-06common: bit_util: Add BIT macro.bunnei1-0/+2
2021-05-06hle: kernel: Add initial impl. of KSlabAllocated.bunnei2-0/+153
2021-05-06hle: kernel: Add initial impl. of KAutoObjectWithListContainer.bunnei3-0/+109
2021-05-06hle: kernel: Add initial impl. of KAutoObject.bunnei3-0/+306
2021-05-06common: intrusive_red_black_tree: Disable static_assert that will not evaluate as constant on MSVC.bunnei1-0/+4
2021-05-06common: common_funcs: Add helper macros for non-copyable and non-moveable.bunnei1-0/+8
- Useful for scenarios where we do not want to inherit from NonCopyable.
2021-05-06Update src/core/hle/service/nvdrv/interface.cppbunnei1-1/+1
Co-authored-by: Ameer J <52414509+ameerj@users.noreply.github.com>
2021-05-05hid: Improve hardware accuracy of gesturesgerman772-76/+340
2021-05-05service: Remove unused class variablesLioncash3-7/+4
Prevents some warnings from occurring.
2021-05-04service: Resolve cases of member field shadowingLioncash60-117/+119
Now all that remains is for kernel code to be 'shadow-free' and then -Wshadow can be turned into an error.
2021-05-03core: Resolve misc cases of variable shadowingLioncash10-25/+27
Resolves shadowing warnings that aren't in a particularly large subsection of core. Brings us closer to turning -Wshadow into an error. All that remains now is for cases in the kernel (left untouched for now since a big change by bunnei is pending), and a few left over in the service code (will be tackled next).
2021-05-03nvdrv: /dev/nvhost-prof-gpu for productionChloe Marcec1-3/+14
While we're at it, we can fix the is_initialized error code. This fixes the crashes on Shante
2021-05-03hid: Fix touch not initializing properly if disabledgerman772-2/+10
2021-05-03input_common: Release mouse buttons on out of focusgerman773-1/+18
2021-05-02file_sys: Resolve cases of variable shadowingLioncash21-114/+132
Brings us closer to enabling -Wshadow as an error in the core code.
2021-05-01service: filesystem: Return proper error codes for CreateFileMorph2-2/+8
This improves the accuracy of CreateFile by returning the correct error codes on certain conditions (parent directory does not exist, path already exists). This fixes saving and the loading of existing saves in New Pokemon Snap
2021-05-01Disable touch if setting is not enabledgerman772-2/+2
2021-04-30game_list: Fix dir move up/down expand stateKewlan1-2/+4
2021-04-30game_list: Update filter results when removing directoriesKewlan2-5/+6
2021-04-29yuzu: config: Silence narrowing conversion warning on MSVCMorph1-2/+1
2021-04-28applets/web: Fix a use-after-free when passing in the URL stringMorph6-25/+28
The URL string was being deleted before being used, leading to a use-after-free occurring when it is used afterwards. Fix this by taking the string by const ref to extend its lifetime, ensuring it doesn't get deleted before use.
2021-04-28yuzu: main: Silence type conversion warning on MSVCMorph1-1/+1
2021-04-27loader: Resolve instances of variable shadowingLioncash19-169/+257
Eliminates variable shadowing cases across all the loaders to bring us closer to enabling variable shadowing as an error in core.
2021-04-27address commentsgerman772-5/+5
2021-04-27input_common: Reset GC sticks center by measuring multiple packetsgerman772-2/+7
2021-04-26gl_device: Intel: Disable texture view formats workaround on mesaA-w-x1-1/+1
2021-04-26service: Eliminate cases of member shadowingLioncash15-76/+81
Resolves a few localized instances of member variable shadowing. Brings us a little closer to turning shadowing warnings into errors.
2021-04-25config: Add new keyboard bindingsMorph1-9/+10
Changes the keyboard bindings to be based on RPCS3's tried and true keyboard bindings.
2021-04-25vk_texture_cache: Swap R and B channels of color flipped formatameerj1-1/+24
Swaps the Red and Blue channels of the A1B5G5R5_UNORM texture format, which was being incorrectly rendered.
2021-04-25nvhost_vic: Fix device closureameerj4-15/+11
Implements the OnClose method of the nvhost_vic device, and removes the remnants of an older implementation. Also cleans up some of the surrounding code.
2021-04-24applets/swkbd: Fix software keyboard button hint scalingIts-Rei1-12/+6
Fixes the scaling of the button hints using background images. Now they scale like the rest of the elements.
2021-04-24glue: Add ectx:aw placeholdergerman774-0/+49
2021-04-24hid: Implement SevenSixAxis and ConsoleSixAxisSensorgerman7710-17/+220
2021-04-24ICommonStateGetter: Stub SetRequestExitToLibraryAppletAtExecuteNextProgramEnabledMorph2-1/+10
- Used by Pixel Game Maker Series Werewolf Princess Kaguya
2021-04-23program_metadata: Set a default resource size when a NPDM is not presentMorph3-4/+8
Sets a default size of 0x1FE00000 bytes (510 MiB) for the system_resource_size when a NPDM is not present.
2021-04-23emu_window: Return pair from ClipToTouchScreen() instead of tupleLioncash2-5/+8
This is only a 2-tuple, so it can be converted over to the std::pair class.
2021-04-23emu_window: unsigned -> u32Lioncash4-23/+23
This is more concise and consistent with the rest of the codebase.
2021-04-23aes_util: Make use of std::spanLioncash2-9/+5
Allows us to simplify the interface quite a bit as it will handle contiguous sequences for us.
2021-04-23acc/lbl: Remove unused variablesLioncash2-6/+0
2021-04-23lm: Make use of insert_or_assign() in Log()Lioncash1-1/+1
Avoids unnecessary default construction of an entry in cases where no entry exists before overwriting the created entry.
2021-04-23lm: Prevent redundant map lookups in Log()Lioncash1-4/+5
We can perform the lookup and then do the contains check by checking the end iterator. The benefit of this is that if we *do* find an entry, then we aren't hashing into the map again to find it. We can also get rid of an unused std::vector temporary while we're at it.
2021-04-23lm: Resolve -Wextra-semi warningLioncash1-1/+1
Resolves a trivial warning with clang.
2021-04-23program_metadata: Explicitly specify copy/move functionsLioncash1-0/+6
The generation of the copy assignment operators are deprecated on being generated when a user-provided destructor is present. We can explicitly specify that we desire this behavior to keep the class forward compatible with future standards.
2021-04-23yuzu_cmd: Remove unused resource.hameerj2-17/+0
2021-04-22service: hid: Get transfer memory for InitializeSevenSixAxisSensorMorph1-1/+38
2021-04-20log/backend: Use in-class initializer for FileBackendLioncash2-6/+8
We can also avoid redundant constructions of the same string repeatedly.
2021-04-20log/backend: Make use of erase_ifLioncash1-4/+4
Same behavior, but less verbose.
2021-04-19texture_cache/util: Fix src being used instead of dst within DeduceBlitImagesLioncash1-1/+1
This line can only ever be reached if src is null, so dereferencing it here is a logic bug that slipped through. Instead, we dereference dst instead which is guaranteed to be valid.
2021-04-19general: Write buffers before pushing raw argumentsMorph3-5/+12
For consistency with the rest of the service implementations
2021-04-19arp: Use type alias for issue functionLioncash1-4/+4
Reduces some verbosity and centralizes the function details in one spot.
2021-04-19arp: Prevent uninitialized read of launch member variableLioncash1-1/+1
If anything happened to call arp functions in the wrong order and called IRegistrar's Issue function before SetApplicationLaunchProperty, we'd read from an uninitialized ApplicationLaunchProperty instance. Instead, we can always initialize it so if this does happen, then the outcome of doing such a thing is at least consistently reproducible.
2021-04-19npad: Remove duplicated class member variableLioncash2-2/+1
ControllerBase already has a System reference that can be accessed from this class, so we can get rid of this to make the class layout a little more straightforward.
2021-04-19time: Write buffer before pushing RESULT_SUCCESS in GetClockSnapshotMorph1-1/+2
2021-04-19time: Fix GetClockSnapshotFromSystemClockContextMorph1-2/+3
This removes an incorrect alignment usage and corrects the positions of the popped parameters. - Fixes Super Kirby Clash crashing on boot
2021-04-18general: Ignore implicit-fallthrough for SDL.hlat9nq5-0/+47
SDL 2.0.14 introduces an incompatibility with Clang, causing it to trigger -Wimplicit-fallthrough even though it is marked. Ignore it for now, with a comment mentioning why this is needed.
2021-04-18cmake: Use SDL 2.0.14 and fix CMake scope issuelat9nq1-1/+1
Forces using SDL 2.0.14. Upgrades the SDL external to that version. Adds a message when switching to the external. Fixes an error where input_common only links to SDL when SDL2_FOUND is set, but externals/CMakeLists cannot set that variable to the required scope. Switch to using ENABLE_SDL2, which we can use since we now include the SDL source.
2021-04-17applets: Send focus state change message on applet state changeMorph10-22/+56
Fixes the softlock after the controller applet exits in Mario Kart 8 Deluxe.
2021-04-17applets: Make the applet mode a protected property of AppletMorph14-22/+20
2021-04-16Address issuesChloe Marcec1-3/+2
2021-04-15applets/swkbd: Implement the Qt Software Keyboard frontendMorph6-14/+5518
The Qt Software Keyboard frontend attempts to mimic the software keyboard rendered by the Nintendo Switch. This frontend implements multiple keyboard types, such as the normal software keyboard, the numeric pad software keyboard and the inline software keyboard. Keyboard and controller input is also supported in this frontend. Keyboard input is handled as native keyboard input, and so the on-screen keyboard cannot be navigated with the keyboard arrow keys as the arrow keys are used to move the text cursor. Controller input is translated into mouse hover movements on the onscreen keyboard or their respective button actions (B for backspace, A for entering the selected button, L/R for moving the text cursor, etc). The text check dialogs can also be confirmed with controller input through the use of the OverlayDialog Massive thanks to Rei for creating all the UI for the various keyboards and OverlayDialog. This would not have been possible without his excellent work. Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-15error: Make the error code as the title text of the OverlayDialogMorph4-15/+17
Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-15overlay_dialog: Add an overlay text dialog that accepts controller inputMorph5-1/+768
An OverlayDialog is an interactive dialog that accepts controller input (while a game is running) This dialog attempts to replicate the look and feel of the Nintendo Switch's overlay dialogs and provide some extra features such as embedding HTML/Rich Text content in a QTextBrowser. The OverlayDialog provides 2 modes: one to embed regular text into a QLabel and another to embed HTML/Rich Text content into a QTextBrowser. Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-15main: Move meta type registration into its own functionMorph2-9/+65
Moves the existing meta type registration into its own function and adds registration of common integral, floating point and string types. This function is also now called in the constructor of the GMainWindow instead of on starting a game.
2021-04-15input_interpreter: Fix button hold being interpreted incorrectly on initMorph2-1/+17
We reset all the button states to 0 except the first index (which has all the buttons as pressed) to prevent a button hold being interpreted as a button that was pressed once on the first poll.
2021-04-15applets/swkbd: Implement the Default Software Keyboard frontendMorph2-2/+236
2021-04-15applets/swkbd: Implement the Normal and Inline Software Keyboard AppletMorph4-13/+1488
2021-04-15ILibraryAppletCreator: Implement CreateHandleStorageMorph2-6/+64
Used by Monster Hunter Generations Ultimate
2021-04-15hle_ipc: Add helper functions to get copy/move handlesMorph2-2/+16
2021-04-15ILibraryAppletAccessor: Demote from ERROR to DEBUG for null storage logsMorph1-2/+2
Avoids unnecessary console spam when the inline software keyboard is used.
2021-04-15applets: Pass in the LibraryAppletMode each applet's constructorMorph13-33/+58
2021-04-15applets: Remove the previous software keyboard applet implementationMorph8-492/+14
2021-04-15game_list: Mark games as favorite to make them appear at the top.Kewlan5-5/+144
Icons are from Icons8.
2021-04-15log/backend: Correct order of const in copy constructorLioncash1-2/+5
Follows our predominant coding style. Also explicitly specifies the move constructor/assignment operator as well.
2021-04-15common/log: Move Log namespace into the Common namespaceLioncash11-43/+53
Forgot to move this over when I moved the rest of the source files with lacking namespaces over.
2021-04-15common: Move settings to common from core.bunnei116-146/+144
- Removes a dependency on core and input_common from common.
2021-04-15core: settings: Add setting for debug assertions and disable by default.bunnei7-2/+28
- This is a developer-only setting and no longer needs to be enabled by default. - Also adds "use_auto_stub" setting to SDL frontend while we are here. - Supersedes #1340.
2021-04-14k_resource_limit: Minor cleanup of member variables/headersameerj4-21/+13
2021-04-13applets/controller: Hook up the "Motion" button functionalityMorph2-0/+19
I forgot to hook this up during the development of the controller applet, this PR amends that.
2021-04-13nvidia_flags: Add missing header guardLioncash1-0/+2
Prevents potential inclusion compilation errors.
2021-04-12kernel/process: Replace process resource limit instance with the kernel's resource limitameerj2-38/+27
This commit addresses the inaccurate behavior of kernel processes creating their own resource limit, rather than utilizing the kernel's system-wide resource limit instance.
2021-04-12k_thread: Remove [[nodiscard]] attribute from ClearWaitCancelled()Lioncash1-1/+1
This function has a void return value, so this attribute doesn't apply to it.
2021-04-12engine_interface: Add missing virtual destructorLioncash4-4/+5
Eliminates a potential bug vector related to inheritance. Plus, we should generally be specifying the destructor as virtual within purely virtual interfaces to begin with.
2021-04-12vk_master_semaphore: Deduplicate atomic access within IsFree()Lioncash1-1/+1
We can just reuse the already existing KnownGpuTick() to deduplicate the access.
2021-04-12vk_master_semaphore: Add missing const qualifier for IsFree()Lioncash1-1/+1
This member function doesn't modify class state.
2021-04-12vk_texture_cache: Make use of Common::BitCast where applicableLioncash1-5/+6
Also clarify the TODO comment a little more on the lacking implementations for std::bit_cast.
2021-04-12texure_cache/util: Resolve implicit sign conversions with std::reduceLioncash2-11/+15
Amends implicit sign conversions occurring with usages of std::reduce and also relocates it to its own utility function to reduce verbosity a little bit.
2021-04-12query_cache: Make use of std::erase_ifLioncash1-5/+4
Same behavior, but much more straightforward to read.
2021-04-11vk_buffer_cache: Fix offset for NULL vertex buffersJoshua Ashton1-1/+1
The Vulkan spec states: If an element of pBuffers is VK_NULL_HANDLE, then the corresponding element of pOffsets must be zero. https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdBindVertexBuffers2EXT.html#VUID-vkCmdBindVertexBuffers2EXT-pBuffers-04112
2021-04-11vulkan_device: Enable EXT_robustness2 featuresJoshua Ashton1-0/+9
When this was being made mandatory, these enablement of these features was removed, but this is still needed. Fixes: 757fd1e91716 ("vulkan_device: Require VK_EXT_robustness2")
2021-04-11renderer_vulkan: Check return value of AcquireNextImageJoshua Ashton3-5/+10
We can get into a really bad state by ignoring this leading to device loss and using incorrect resources.
2021-04-09ns: Update to 12.xMorph1-3/+38
2021-04-09aoc_u: Update to 12.xMorph1-0/+2
2021-04-09nim: Update to 12.xMorph1-44/+55
2021-04-09npns: Update to 12.xMorph1-0/+3
2021-04-09bgtc: Update to 12.x and implement OpenTaskServiceMorph4-1/+36
2021-04-09vi: Update to 12.xMorph1-0/+8
2021-04-09erpt: Update to 12.xMorph1-1/+6
2021-04-09btm: Update to 12.xMorph1-0/+1
2021-04-09btdrv: Update to 12.xMorph1-0/+19
2021-04-09wlan: Update to 12.xgerman771-0/+7
2021-04-09usb: Use proper namesgerman771-21/+21
2021-04-09ITimeZoneService: Update to 12.xgerman771-0/+1
2021-04-09spl: Update to 12.xgerman771-0/+3
2021-04-09sfdnsres: Use proper namesgerman771-2/+2
2021-04-09nsd: Update to 12.xgerman771-0/+1
2021-04-09ethc: Update to 12.xgerman771-0/+1
2021-04-09sm: Use proper names, update to 12.xgerman771-4/+5
2021-04-09set_sys: Update to 12.xgerman771-0/+6
2021-04-09pctl_module: Update to 12.xgerman771-0/+3
2021-04-09pcie: Use proper namesgerman771-1/+1
2021-04-09olsc: Update to 12.xgerman771-0/+1
2021-04-09pl_u: Update to 12.xgerman771-0/+4
2021-04-09ldr: Use proper namesgerman771-16/+16
2021-04-09arp: Use proper names, update to 12.xgerman772-3/+10
2021-04-09caps_u: Update to 12.xgerman771-0/+1
2021-04-09caps_a: Update to 12.xgerman771-0/+1
2021-04-09bpc: Use proper namesgerman771-2/+2
2021-04-09bcat_module: Update to 12.xgerman771-0/+2
2021-04-09codecctl: Use proper namesgerman771-13/+13
2021-04-09audren_u: Use proper namesgerman772-4/+4
2021-04-09audren_a: Use proper namesgerman771-6/+6
2021-04-09audrec_u: Use proper names, update to 12.xgerman771-3/+4
2021-04-09audrec_a: Use proper namesgerman771-2/+2
2021-04-09audout_u: Use proper namesgerman771-3/+3
2021-04-09audout_a: Use proper namesgerman771-6/+6
2021-04-09audin_u: Use proper namesgerman771-7/+7
2021-04-09audin_a: Use proper namesgerman771-4/+4
2021-04-08externals: Search for shared opus installation.Markus Wick1-1/+1
We had used conan for opus before, but there was a bug in the AVX detection. However we still had the Findopus.cmake file within the repository, but not used. This patch reenables the Findopus helper and prefer the system wide installation of opus.
2021-04-08service: time: Setup the network clock with the local clock contextMorph6-21/+38
Setting the network time allows some time based events using the network clock to not reset.
2021-04-08service: hid: Stub SetAnalogStickUseCenterClampMorph4-1/+29
- Used by eBASEBALLパワフルプロ野球2020
2021-04-08service: time: Fix CalculateStandardUserSystemClockDifferenceByUserMorph1-3/+8
CalculateStandardUserSystemClockDifferenceByUser passes in the ClockSnapshots through 2 input buffers and not as raw arguments. Fix this by reading the 2 input buffers instead of popping raw arguments.
2021-04-07video_core: Use a CV for blocking commands.Markus Wick2-23/+31
There is no need for a busy loop here. Let's just use a condition variable to save some power.
2021-04-07video_core/gpu_thread: Keep the write lock for allocating the fence.Markus Wick2-1/+4
Else the fence might get submited out-of-order into the queue, which makes testing them pointless. Overhead should be tiny as the mutex is just moved from the queue to the writing code.
2021-04-07video_core/gpu_thread: Implement a ShutDown method.Markus Wick5-15/+28
This was implicitly done by `is_powered_on = false`, however the explicit method allows us to block until the GPU is actually gone. This should fix a race condition while removing the other subsystems while the GPU is still active.
2021-04-07common/threadsafe_queue: Provide Wait() method.Markus Wick2-3/+10
It shall block until there is something to consume in the queue. And use it for the GPU emulation instead of the spin loop. This is only in booting the emulator, however in BOTW this is the case for about 1 second.
2021-04-07hwopus: Update to 12.xMorph1-0/+4
2021-04-07IFile: Update to 12.xMorph1-3/+7
2021-04-07fsp-srv: Update to 12.xMorph2-3/+8
2021-04-07dauth_o: Update to 11.xMorph1-6/+11
2021-04-07acc_u1: Update to 12.xMorph1-13/+15
2021-04-07acc_su: Update to 12.xMorph1-17/+19
2021-04-07hid: Update service function tablesgerman772-0/+85
2021-04-07ISelfController: Update to 11.xMorph1-0/+1
2021-04-07IApplicationFunctions: Update to 11.xMorph1-0/+6
2021-04-07IDebugFunctions: Update to 12.xMorph1-0/+2
2021-04-07ICommonStateGetter: Update to 12.xMorph1-0/+9
2021-04-07IGlobalStateController: Update to 12.xMorph1-0/+1
2021-04-07IHomeMenuFunctions: Update to 12.xMorph1-0/+3
2021-04-07Amend bizarre clang-format suggestionsLioncash3-5/+5
2021-04-07k_scoped_scheduler_lock_and_sleep: Mark class as [[nodiscard]]Lioncash1-1/+1
Prevents logic bugs from slipping through.
2021-04-07k_scoped_lock: delete copy and move assignment operatorsLioncash1-2/+5
If we delete the copy and move constructor, we should also be deleting the copy and move assignment operators (and even if this were intended, it would be pretty odd to not document why it's done this way).
2021-04-07k_scoped_lock: Mark class as [[nodiscard]]Lioncash1-1/+1
Prevents logic bugs of the kind described in the previous commit from slipping through.
2021-04-07k_scheduler: Mark KScopedSchedulerLock as [[nodiscard]]Lioncash1-1/+1
Prevents logic bugs like: KScopedSchedulerLock{kernel}; instead of: KScopedSchedulerLock lk{kernel}; from slipping through.
2021-04-07kernel: Increase event and session countsameerj1-2/+2
12.x increased the number of available sessions and event resource counts
2021-04-07svc: Expand SVC tablesLioncash1-0/+132
12.x expanded the range of SVC entries from 0x7F to 0xBF (with all new entries being unused), so we can expand it to also match.
2021-04-07process_capability: Handle extended SVC rangeLioncash2-6/+1
12.x extended the range of SVC IDs, so we need to expand the range of bits that need to be tested. The upside of this is that we can eliminate a range check, given the whole range is used.
2021-04-06config: Default to exclusive fullscreen mode on platforms other than WindowsMorph1-0/+12
Several issues have been reported with the borderless windowed fullscreen mode on *nix platforms. Default to exclusive fullscreen mode on these platforms for now.
2021-04-06configure_graphics: Add Borderless Windowed fullscreen modeMorph5-9/+108
The borderless windowed fullscreen mode solves several issues with the presentation of the overlay dialogs and on-screen keyboard in exclusive fullscreen mode, and also has other benefits such as smoother gameplay, lower latency and a significant reduction in screen tearing. Co-authored-by: Its-Rei <kupfel@gmail.com>
2021-04-05nvhost_nvdec_common: Avoid memcpy with null pointerslat9nq1-6/+11
Avoid sending null pointer to memcpy as reported by Undefined Behavious Sanitizer. Co-authored-by: LC <mathew1800@gmail.com>
2021-04-05nvhost_ctrl_gpu: Avoid sending null pointer to memcpylat9nq1-1/+7
Undefined Behaviour Sanitizer reports a null pointer is being sent to memcpy, thought it's "guaranteed to never be null". Guard it with an if statement, and log when the action has been averted.
2021-04-05vp9: Avoid memcpy with null pointerslat9nq1-7/+9
Avoid sending null pointer to memcpy as reported by Undefined Behaviour Sanitizer. Replaces the std::memcpy calls in SpliceVectors with std::copy calls. Opting to replace all the memcpy's with copy's. Co-authored-by: LC <mathew1800@gmail.com>
2021-04-04common: Move assert failure handling into a cpp file.Markus Wick3-6/+20
Advantage: Altering the handler does not need a full recompilation. Disadvantage: noreturn is droped, so the caller is a bit slower. We quite often run yuzu with a YOLO assertion handler. In fact, only very few games run at all with asserts. This patch allows developers to patch the handler without recompiling everything. The overhead of the missing "noreturn" attribute shoul be negletable.
2021-04-04configure_graphics: Prevent stack-use-after-scopelat9nq1-1/+1
Address Sanitizer reports stack-use-after-scope on line 231 `vulkan_devices.push_back(QString::fromStdString(name));`. Instead of using a pointer, copy the string into a std::string and use that, instead.
2021-04-02arm_dynarmic: Increase size of code cacheMerryMage2-0/+8
2021-04-02HID: Fix SL and SR buttons for right joycongerman771-2/+6
2021-03-31Use a single connection for UDP server, make connection test longer and check all pads instead of only the first onegerman774-102/+101
2021-03-31InputCommon: Name properly xbox 360 and one controllers, Fix mappings for Nintendo Pro controllersgerman772-6/+24
2021-03-30ISelfController: Stub SetAlbumImageTakenNotificationEnabledMorph2-1/+17
This service call sets an internal flag whether a notification is shown when an image is captured. Currently we do not support capturing images via the capture button, so this can be stubbed for now.
2021-03-30configuration: Add auto stub toggle that resets on bootameerj5-4/+32
Auto-stub is an experimental debugging feature that may cause unforseen bugs. This adds a toggle to only allow auto-stubbing unimplemented functions when explicitly enabled when yuzu is launched.
2021-03-30service: Auto stub fallbackameerj1-0/+4
For simple services we can implement an automatic stub fallback to help with compatibility until a proper implementation is done. Co-Authored-By: Chloe <25727384+ognik5377@users.noreply.github.com>
2021-03-30nvdrv: Cleanup CDMA Processor on device closureChloe Marcec3-11/+15
Brings us a step closer to unifying all channels to share a common interface.
2021-03-30Addressed issuesChloe Marcec2-21/+22
2021-03-30vulkan_common: enable OpenGL interop on other UnicesJan Beich2-5/+5
2021-03-27yuzu/main: Add user command line argumentgerman771-0/+28
2021-03-27hle: kernel: Initialize preemption task after schedulers.bunnei1-1/+1
- Fixes a startup crash that occurs if CoreTiming tries to preempt before kernel initialization completes.
2021-03-27service: friend: Change logging class from ACC to FriendMorph1-11/+12
2021-03-27Friend: Stub GetPlayHistoryRegistrationKeygerman771-1/+13
2021-03-26HID: Initialize correctly the gesture finger_id and filter invalid resultsNarr the Reg2-3/+13
2021-03-26pctl: Rework how pctl works to be more accurateChloe Marcec6-31/+253
Introduces the usage of compatibilities to allow it the module to be closer to how it works on hardware.
2021-03-25astc_decoder: Refactor for style and more efficient memory useameerj9-2256/+502
2021-03-25nvdrv: Pass device fd and handle device create methods for device opening and closingChloe Marcec20-78/+161
We pass the fd to the ioctl as well as alert the device when it's opened or closed to allow for fd unique actions to take place
2021-03-24gl_device: unblock async shaders on other Unix systemsJan Beich1-1/+1
Mesa is the primary OpenGL provider on all FreeDesktop systems. For example, iris is used on Intel GPU + FreeBSD by default.
2021-03-24arm_dynarmic: Always have a 'valid' jit instanceMerryMage4-53/+26
2021-03-24hle: kernel: Breakup InitializeMemoryLayout.bunnei1-3/+7
2021-03-24hle: kernel: k_memory_region_type: Minor code cleanup.bunnei1-13/+12
2021-03-24hle: kernel: k_memory_region: Minor code cleanup.bunnei1-7/+5
2021-03-24hle: kernel: k_memory_layout: Use pair instead of tuple.bunnei1-2/+4
2021-03-24hle: kernel: k_system_control: Remove unnecessary inline.bunnei1-4/+4
2021-03-24common: common_sizes: Move sizes to the Common namespace.bunnei5-45/+50
2021-03-22nvdrv: Change InitializeEx to AllocAsExChloe Marcec2-27/+49
Wee also report the correct "big page size" now in GetVARegions & fix up the struct for IoctlAllocAsEx
2021-03-21hle: kernel: Merge KMemoryRegionAttr and KMemoryRegionType.bunnei2-11/+9
- Fixes clang errors with mixed enum arithmetic.
2021-03-21hle: kernel: Remove unused variable.bunnei1-1/+0
2021-03-21hle: kernel: k_memory_region_type: Remove extra ".bunnei1-1/+1
2021-03-21core: arm_dynarmic: Ensure JIT state is saved/restored on page table changes.bunnei2-0/+10
- We re-create the JIT here without preserving any state.
2021-03-21hle: kernel: k_memory_layout: Move KMemoryRegionAllocator out of global.bunnei3-35/+47
2021-03-21hle: kernel: k_memory_layout: Derive memory regions based on board layout.bunnei6-56/+1033
2021-03-21common: common_sizes: Move Invalid to Size_* prefix and add missing values.bunnei2-15/+21
2021-03-21hle: kernel: k_memory_region: Refactor to simplify code.bunnei2-83/+89
2021-03-21hle: kernel: board: k_system_control: Extend to include memory region sizes.bunnei3-1/+135
2021-03-21hle: kernel: board: Add secure_monitor module.bunnei2-0/+27
2021-03-21common: Move common sizes to their own header for code reuse.bunnei3-13/+25
2021-03-21hle: kernel: k_address_space_info: Cleanup.bunnei1-9/+9
2021-03-21hle: kernel: Add k_trace module.bunnei2-0/+13
2021-03-21hle: kernel: KSystemControl: Update to reflect board-specific behavior.bunnei4-10/+41
2021-03-21hle: kernel: KMemoryManager: Add CalculateManagementOverheadSize.bunnei2-0/+26
2021-03-21hle: kernel: KMemoryManager: Add aliases.bunnei1-0/+4
2021-03-21hle: kernel: Add architecture and board specific memory regions.bunnei2-0/+72
2021-03-21hle: kernel: KMemoryRegion: Derive region values.bunnei1-0/+327
2021-03-21hle: kernel: Migrate some code from Common::SpinLock to KSpinLock.bunnei5-25/+25
2021-03-21hle: kernel: Add initial KMemoryRegionType module.bunnei3-18/+41
2021-03-21hle: kernel: Move KMemoryRegion to its own module and update.bunnei4-31/+322
2021-03-21gl_device: Block async shaders on AMD and Intellat9nq1-1/+13
Currently, the Windows versions of the Intel OpenGL driver and the AMD proprietary OpenGL driver do not properly support (or in fact degrade) when asynchronous shader compilation is enabled. This blocks specifically those drivers from using this feature. This affects AMDGPU-PRO on Linux, and AMD's and Intel's OpenGL drivers on Windows.
2021-03-20Fix cancelation of choose directory dialogivan-boikov1-1/+4
2021-03-17IApplicationDisplayService: Stub GetIndirectLayerImageMapMorph1-1/+27
Used by games invoking the inline software keyboard such as GNOSIA
2021-03-16bsd: Avoid writing empty buffersMorph1-2/+6
Silences log spam on empty buffer writes
2021-03-14system_version: Update to 11.0.1Morph1-5/+5
2021-03-14system_archive: Update NgWord archive versionMorph1-2/+2
2021-03-13astc_decoder: Reimplement LayersRodrigo Locatti5-142/+161
Reimplements the approach to decoding layers in the compute shader. Fixes multilayer astc decoding when using Vulkan.
2021-03-13astc_decoder: Fix out of bounds memory accessameerj1-2/+10
resolves a crash with some anamolous textures found in Astral Chain.
2021-03-13renderer_vulkan: Accelerate ASTC decodingameerj11-57/+426
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2021-03-13host_shaders: Modify shader cmake integration to allow for larger shadersameerj4-8/+27
using a raw string to encapsulate the entire shader code limits us to shaders of size less than 2KB. This change overcomes this limitation.
2021-03-13renderer_opengl: Accelerate ASTC texture decoding with a compute shaderameerj6-2/+1598
ASTC texture decoding is currently handled by a CPU decoder for GPU's without native ASTC decoding support (most desktop GPUs). This is the cause for noticeable performance degradation in titles which use the format extensively. This commit adds support to accelerate ASTC decoding using a compute shader on OpenGL for GPUs without native support.
2021-03-13video_core: rasterizer_accelerated: Fix un/signed mismatch.bunnei1-1/+2
2021-03-11Fix casing on DeallocateAesKeySlotzkitx1-3/+3
2021-03-11Update SPL to fit N's service refactor (4.0.0+) which split into new services.zkitx3-9/+178
2021-03-10fiber: Double default stack sizeMerryMage1-1/+1
Stack overflow occurs with some guest applications
2021-03-10time: Fix CalculateSpanBetween implementationMorph1-3/+9
CalculateSpanBetween passes in the ClockSnapshots through 2 input buffers and not as raw arguments. Fix this by reading the 2 input buffers instead of popping raw arguments. Partially fixes Super Smash Bros. Ultimate's Spirit Board
2021-03-10time: Assign the current time point to the ClockSnapshotMorph1-0/+2
Fixes the timer in Super Smash Bros Ultimate's Spirit Board.
2021-03-07common: Fiber: use a reference for YieldTo.bunnei5-34/+27
- Fixes another small leak.
2021-03-07qt: Set DISPLAY env var when not presentAni1-0/+9
Fixes web browser opening (Help > Open Mods Page, Help > Open Quickstart Guide)
2021-03-06Enable mouse toggle buttonsgerman775-11/+65
2021-03-06Add toggle button option for normal buttonsgerman1-0/+5
2021-03-06common: fiber: Use weak_ptr when yielding.bunnei2-8/+13
- Avoids a memory leak, as taking a strong reference of the fiber here causes a circular reference. - Supersedes #6006 with a more narrow fix.
2021-03-06Enable button toggle for keyboard in the modifier buttongerman3-6/+44
2021-03-06hle: kernel: KThread: Rework dummy threads & fix memory leak.bunnei6-36/+65
- Dummy threads are created on thread local storage for all host threads. - Fixes a leak by removing creation of fibers, which are not applicable here.
2021-03-06Revert "core: Switch to unique_ptr for usage of Common::Fiber."bunnei10-58/+59
2021-03-05aes_util: Remove malformed mbedtls_cipher_finish function callMorph1-2/+0
2021-03-05CMakeLists: Add /utf-8 compile option for MSVCMorph1-0/+2
Ensures that the source and execution character sets are in UTF-8
2021-03-04texture_cache: Blacklist BGRA8 copies and views on OpenGLameerj9-28/+80
In order to force the BGRA8 conversion on Nvidia using OpenGL, we need to forbid texture copies and views with other formats. This commit also adds a boolean relating to this, as this needs to be done only for the OpenGL api, Vulkan must remain unchanged.
2021-03-04renderer_opengl: Swizzle BGR textures on copyameerj5-2/+132
OpenGL does not natively support BGR internal formats, which causes many BGR textures to render incorrectly, with Red and Blue channels swapped. This commit aims to address this by swizzling the blue and red channels on texture copies when a BGR format is encountered.
2021-03-03video_core: rasterizer_accelerated: Fix delta check ordering.bunnei1-3/+3
2021-03-03video_core: rasterizer_accelerated: Improve error handling & fix implicit conversion.bunnei1-4/+8
2021-03-03video_core: rasterizer_accelerated: Use a flat array instead of interval_map for cached pages.bunnei2-44/+32
- Uses a fixed 64MB for the cache instead of an ever growing map. - Slightly faster by using atomics instead of a single mutex for access. - Thanks for Rodrigo for the idea.
2021-03-02buffer_cache: Heuristically decide to skip cache on uniform buffersReinUsesLisp2-11/+37
Some games benefit from skipping caches (Pokémon Sword), and others don't (Animal Crossing: New Horizons). Add an heuristic to decide this at runtime. The cache hit ratio has to be ~98% or better to not skip the cache. There are 16 frames of buffer.
2021-03-02core: Shutdown: Move kernel cleanup to later in shutdown.bunnei1-12/+1
- Fixes a shutdown crash due to a race condition with GPU still accessing memory.
2021-03-02Fix default bcat_backend initKelebek12-3/+3
2021-03-01inputCommon: Use an unique client id for each socket instancegerman4-19/+23
2021-03-01gpu_thread: Remove Async NVDEC placeholdersameerj3-26/+8
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 reformcomex6-111/+147
`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-28Implements touch, pan, pinch and rotation gesturesgerman2-11/+240
2021-02-28inputCommon: Mouse fixesgerman779-25/+89
2021-02-27core: hle: ldn: Error out on call to Initialization.bunnei1-1/+1
- Since we do not emulate LDN, returning an error here makes more sense.
2021-02-27core: Switch to unique_ptr for usage of Common::Fiber.bunnei10-59/+58
- With using unique_ptr instead of shared_ptr, we have more explicit ownership of the context. - Fixes a memory leak due to circular reference of the shared pointer.
2021-02-24Implement glDepthRangeIndexeddNVKelebek13-1/+12
2021-02-23vk_command_pool: Reduce the command pool size from 4096 to 4ReinUsesLisp1-1/+1
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 Beich1-0/+1
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 Beich1-0/+1
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-21hid: Implement GameCube Controller VibrationsMorph2-3/+130
Implements both SendVibrationGcErmCommand and GetActualVibrationGcErmCommand, and modifies GetVibrationDeviceInfo to account for additional controllers.
2021-02-21acc: Stub GetNintendoAccountUserResourceCacheForApplicationMorph1-1/+17
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-21kernel: Fix resource release exception on exitameerj4-2/+16
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 loadMorph1-0/+4
2021-02-20common: wall_clock: Fix integer overflow with StandardWallClock.bunnei2-7/+28
- 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-19hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.bunnei24-147/+131
2021-02-19hle: kernel: Migrate MemoryManager to KMemoryManager.bunnei8-47/+48
2021-02-19hle: kernel: Migrate PageLinkedList to KPageLinkedList.bunnei8-38/+41
2021-02-19hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.bunnei18-476/+479
2021-02-19hle: kernel: Migrate SlabHeap to KSlabHeap.bunnei4-22/+21
2021-02-19hle: kernel: Migrate MemoryLayout to KMemoryLayout.bunnei5-31/+30
2021-02-19hle: kernel: Migrate AddressSpaceInfo to KAddressSpaceInfo.bunnei4-59/+54
2021-02-19hle: kernel: memory_manager: Rename AllocateContinuous to AllocateContinuous.bunnei2-4/+28
2021-02-19hle: kernel: KSystemControl does not belong in Memory namespace.bunnei7-31/+38
2021-02-19hle: kernel: memory: PageHeap: Migrate to KPageBitmap class.bunnei4-197/+23
2021-02-19hle: kernel: Add KPageBitmap class.bunnei2-0/+280
2021-02-19hle: kernel: system_control: Add function GenerateRandomU64.bunnei2-3/+5
2021-02-19common: Add implementation of TinyMT (Mersenne Twister RNG).bunnei2-0/+251
2021-02-19hle: kernel: Add KSpinLock implementation.bunnei3-0/+89
2021-02-19core: memory: Add templated GetPointer methods.bunnei1-0/+10
2021-02-19common: alignment: Add DivideUp utility method.bunnei1-0/+5
2021-02-19hle: kernel: Rename SharedMemory to KSharedMemory.bunnei13-54/+54
2021-02-18Revert "Port citra-emu/citra#5123: "SDL: Disable hidapi drivers due to compatibility problems with certain controllers""Morph1-7/+0
2021-02-18common/cityhash: Use common typesReinUsesLisp3-116/+100
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 CityHashReinUsesLisp2-0/+23
2021-02-16vk_rasterizer: Fix loading shader addresses twiceReinUsesLisp1-1/+0
This was recently introduced on a wrongly rebased commit.
2021-02-15core: core_timing_util: Optimize core timing math.bunnei3-98/+48
- Avoids a lot of unnecessary 128-bit math for imperceptible accuracy.
2021-02-15common: wall_clock: Optimize GetClockCycles/GetCPUCycles to use a single MUL instruction.bunnei1-8/+9
2021-02-15common: Merge uint128 to a single header file with inlines.bunnei4-135/+84
2021-02-15core/CMakeLists: Add web_types.hMorph1-0/+1
2021-02-15Review 1Kelebek12-3/+3
2021-02-15Implement texture offset support for TexelFetch and TextureGather and add offsets for TldsKelebek13-9/+34
Formatting
2021-02-14debugger: controller: Add access keylat9nq1-1/+1
Adds the access key to the Controller P1 selection at View -> Debugger -> Controller P1. Avoids using the windowTitle as that would add a literal & to the beginning of the window title.
2021-02-14yuzu: Various frontend improvements to avoid crashes and improve experience on Linux.bunnei10-10/+52
2021-02-14hle: service: ldn: IUserLocalCommunicationService: Improve the stub.bunnei1-5/+29
2021-02-14Improve mouse panninggerman1-5/+21
2021-02-14hle: service: ldn: IUserLocalCommunicationService: Indicate that LDN is disabled.bunnei3-3/+19
- Fixes crash on Pokemon Sword/Shield when pressing 'Y'.
2021-02-14hle: service: am: IStorageAccessor: Fix out of bounds error handling.bunnei1-6/+7
2021-02-13vk_resource_pool: Load GPU tick once and compare with itReinUsesLisp2-8/+8
Other minor style improvements. Rename free_iterator to hint_iterator, to describe better what it does.
2021-02-13vk_update_descriptor: Inline and improve code for binding buffersReinUsesLisp4-24/+24
Allow compilers with our settings inline hot code.
2021-02-13fixed_pipeline_cache: Use dirty flags to lazily update keyReinUsesLisp7-56/+103
Use dirty flags to avoid building pipeline key from scratch on each draw call. This saves a bit of unnecesary work on each draw call.
2021-02-13gl_texture_cache: Lazily create non-sRGB texture views for sRGB formatsameerj3-7/+41
This creates non-sRGB texture views for sRGB texture formats to allow for interfacing with these views in compute shaders using imageLoad and imageStore. Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2021-02-13 rebase, fix name shadowing, more constameerj4-11/+10
2021-02-13Address PR feedbackameerj4-12/+7
Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
2021-02-13 streamline cdma_pusher/command_classesameerj1-13/+5
2021-02-13 streamline cdma_pusher/command_classesameerj5-85/+34
2021-02-13nvdec cleanupameerj8-43/+38
2021-02-13vk_master_semaphore: Mark gpu_tick atomic operations with relaxed orderReinUsesLisp1-4/+4
2021-02-13vk_staging_buffer_pool: Inline tick testsReinUsesLisp2-1/+7
Load the current tick to a local variable, moving it out of an atomic and allowing us to compare the value without going through a pointer each time. This should make the loop more optimizable.
2021-02-13gl_stream_buffer/vk_staging_buffer_pool: Fix size checkReinUsesLisp2-2/+2
Fix a tragic off-by-one condition that causes Vulkan's stream buffer to think it's always full, using fallback memory. The OpenGL was also affected by this bug to a lesser extent.
2021-02-13vulkan_device: Require VK_EXT_robustness2ReinUsesLisp2-37/+14
We are already using robustness2 features without requiring it explicitly, causing potential crashes on drivers without the extension. Requiring this at boot allows better diagnostics for it and formalizes our usage on the extension.
2021-02-13config: Make high GPU accuracy the defaultReinUsesLisp2-3/+3
This is a better default for most games, yielding better performance and less graphical issues.
2021-02-13video_core: Fix clang build issuesReinUsesLisp2-8/+5
2021-02-13vk_staging_buffer_pool: Fix softlock when stream buffer overflowsReinUsesLisp2-19/+20
There was still a code path that could wait on a timeline semaphore tick that would never be signalled. While we are at it, make use of more STL algorithms.
2021-02-13vk_buffer_cache: Add support for null index buffersReinUsesLisp2-4/+40
Games can bind a null index buffer (size=0) where all indices are evaluated as zero. VK_EXT_robustness2 doesn't support this and all drivers segfault when a null index buffer is passed to vkCmdBindIndexBuffer. Workaround this by creating a 4 byte buffer and filling it with zeroes. If it's read out of bounds, robustness takes care of returning zeroes as indices.
2021-02-13buffer_cache: Add extra bytes to guest SSBOsReinUsesLisp1-1/+7
Bind extra bytes beyond the guest API's bound range. This is due to some games like Astral Chain operating out of bounds. Binding the whole map range would be technically correct, but games have large maps that make this approach unaffordable for now.
2021-02-13Merge branch 'bytes-to-map-end' into new-bufcache-wipReinUsesLisp1-0/+2
2021-02-13vk_staging_buffer_pool: Get a staging buffer instead of waitingReinUsesLisp2-9/+18
Avoids waiting idle while the GPU finishes to do work, and fixes an issue where we'd wait forever if a single command buffer (logic tick) all the data.
2021-02-13yuzu/config: Disable assembly shaders by defaultReinUsesLisp1-2/+2
Due to BindBufferRangeNV limitations and poor quality code emission from our side, assembly shaders are currently slower than GLSL. Their build time and feature advantages are still relevant, but they are outweighted by their runtime performance.
2021-02-13renderer_opengl: Remove interopReinUsesLisp8-122/+10
Remove unused interop code from the OpenGL backend.
2021-02-13gl_buffer_cache: Drop interop based parameter buffer workaroundsReinUsesLisp3-65/+45
Sacrify runtime performance to avoid generating kernel exceptions on Windows due to our abusive aliasing of interop buffer objects.
2021-02-13buffer_cache: Heuristically detect stream buffersReinUsesLisp2-6/+33
Detect when a memory region has been joined several times and increase the size of the created buffer on those instances. The buffer is assumed to be a "stream buffer", increasing its size should stop us from constantly recreating it and fragmenting memory.
2021-02-13buffer_cache: Split CreateBuffer in separate functionsReinUsesLisp1-29/+52
Allow adding functionality to each function without making CreateBuffer more complex.
2021-02-13buffer_cache: Skip cache on small uploads on VulkanReinUsesLisp3-9/+18
Ports from OpenGL the optimization to skip small 3D uniform buffer uploads. This will take advantage of the previously introduced stream buffer. Fixes instances where the staging buffer offset was being ignored.
2021-02-13vk_staging_buffer_pool: Add stream buffer for small uploadsReinUsesLisp15-127/+298
This uses a ring buffer similar to OpenGL's stream buffer for small uploads. This stops us from allocating several small buffers, reducing memory fragmentation and cache locality. It uses dedicated allocations when possible.
2021-02-13vulkan_device: Enable robustBufferAccessReinUsesLisp1-1/+2
Fix regression on Pascal on Animal Crossing: New Horizons, fixing a validation error.
2021-02-13video_core: Reimplement the buffer cacheReinUsesLisp67-2607/+2514
Reimplement the buffer cache using cached bindings and page level granularity for modification tracking. This also drops the usage of shared pointers and virtual functions from the cache. - Bindings are cached, allowing to skip work when the game changes few bits between draws. - OpenGL Assembly shaders no longer copy when a region has been modified from the GPU to emulate constant buffers, instead GL_EXT_memory_object is used to alias sub-buffers within the same allocation. - OpenGL Assembly shaders stream constant buffer data using glProgramBufferParametersIuivNV, from NV_parameter_buffer_object. In theory this should save one hash table resolve inside the driver compared to glBufferSubData. - A new OpenGL stream buffer is implemented based on fences for drivers that are not Nvidia's proprietary, due to their low performance on partial glBufferSubData calls synchronized with 3D rendering (that some games use a lot). - Most optimizations are shared between APIs now, allowing Vulkan to cache more bindings than before, skipping unnecesarry work. This commit adds the necessary infrastructure to use Vulkan object from OpenGL. Overall, it improves performance and fixes some bugs present on the old cache. There are still some edge cases hit by some games that harm performance on some vendors, this are planned to be fixed in later commits.
2021-02-13vulkan_common: Expose interop and headless devicesReinUsesLisp4-21/+100
2021-02-13vulkan_common: Make interop extensions mandatoryReinUsesLisp1-0/+6
2021-02-13vulkan_device: Enable robust buffersReinUsesLisp1-2/+4
2021-02-13vulkan_device: Use designated initializers for featuresReinUsesLisp1-60/+59
2021-02-13vulkan_wrapper: Add memory barrier pipeline barrier helperReinUsesLisp1-0/+6
2021-02-13vulkan_device: Fix formatting of constantsReinUsesLisp1-10/+6
2021-02-13vulkan_wrapper: Add interop functionsReinUsesLisp2-1/+41
2021-02-13vulkan_instance: Initialize Vulkan instance in a separate threadReinUsesLisp1-1/+5
Workaround an issue on Nvidia where creating a Vulkan instance from an active OpenGL thread disables threaded optimization on the driver. This optimization is important to have good performance on Nvidia OpenGL.
2021-02-13vulkan_wrapper: Pull Windows symbolsReinUsesLisp2-0/+14
2021-02-13gpu: Report renderer errors with exceptionsReinUsesLisp27-232/+176
Instead of using a two step initialization to report errors, initialize the GPU renderer and rasterizer on the constructor and report errors through std::runtime_error.
2021-02-13tests/buffer_base: Add cached CPU writes testsReinUsesLisp1-0/+76
Ensure the behavior of the previous commit in tests.
2021-02-13buffer_base: Add support for cached CPU writesReinUsesLisp1-61/+145
Some games usually write memory pages currently used by the GPU, causing rendering issues (e.g. flashing geometry and shadows on Link's Awakening). To workaround this issue, Guest CPU writes are delayed until the command buffer finishes processing, but the pages are updated immediately. The overall behavior is: - CPU writes are cached until they are flushed, they update the page state, but don't change the modification state. Cached writes stop pages from being flushed, in case games have meaningful data in it. - Command processing writes (e.g. push constants) update the page state and are marked to the command processor as dirty. They don't remove the state of cached writes.
2021-02-13maxwell_to_gl: Remove unused codeameerj2-36/+3
Removes unused declarations in maxwell_to_gl.h
2021-02-13revert to std::sin and std::cosChloe Marcec3-6/+6
2021-02-13address issuesChloe Marcec3-22/+25
2021-02-13audren: Implement I3dl2ReverbChloe Marcec8-18/+569
Most notable fix is the voices in Fire Emblem Three Houses
2021-02-13kernel: More accurately reserve and release resourcesameerj6-14/+42
2021-02-13kernel: KScopedReservation implementationameerj6-26/+152
This implements KScopedReservation, allowing resource limit reservations to be more HW accurate, and release upon failure without requiring too many conditionals.
2021-02-13kernel: Unify result codes (#5890)Chloe21-256/+223
* kernel: Unify result codes Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways. * oops * rename errors to svc_results
2021-02-12yuzu: Create screenshot path before capturelat9nq1-0/+5
Allows screenshots in cases where the screenshots path doesn't already exist.
2021-02-11software_keyboard: Implement Finalize request commandMorph1-0/+4
2021-02-10configure_input_player_widget: Silence unused variable warningslat9nq1-7/+0
Prevents clang 11 from throwing an error since these variables are unused.
2021-02-10common: Add -fsized-deallocation as a Clang flaglat9nq1-0/+2
Prevents an operator delete error when compiling with Clang 11.
2021-02-10core: Add -fsized-dealloction as a Clang flaglat9nq1-0/+2
Prevents a operator delete error when compiling with Clang 11.
2021-02-09bsd: Remove usage of optional emplace() with no argumentsLioncash1-2/+4
Clang 12 currently falls over in the face of this.
2021-02-09am/controller: Remove [[fallthrough]] from unreachable pathLioncash1-1/+2
Prevents warnings on clang 12. This path is reachable on other variations of the build that disable the unreachable macro.
2021-02-09nfp: Correct uninitialized size being used within GetTagInfo()Lioncash1-1/+1
We were previously the name of the object being initialized within its own initializer, which results in uninitialized data being read.
2021-02-09udp: Silence unused member variable warningsLioncash1-2/+2
Simply mark them as unused for now.
2021-02-09udp/client: Define ClientData constructor/destructor in cpp fileLioncash2-0/+7
Prevents compilation errors on clang 12 due to incomplete types within a unique_ptr member.
2021-02-09gl_rasterizer: Remove unused variablesLioncash1-3/+0
Resolves warnings on clang 12
2021-02-09texture_cache/util: Remove unused functionsLioncash1-34/+0
Silences a few warnings on clang 12.
2021-02-09configure_input_player_widget: Reduce duplication of array accessors where applicableLioncash1-108/+125
Reduces the amount of code to read in expressions a little bit by separating constituents out a little.
2021-02-09configure_input_player_widget: Avoid nontrivial copies where applicableLioncash2-5/+6
Previously a function was copying an array of 20 std::string instances by value.
2021-02-09Use GC imagegerman1-0/+3
2021-02-09Settings: Add depth to Joysticks on Pro Controller preview (#5894)Jatoxo2-6/+30
* Add some depth to ProJoysticks * address comments * clang * address nits * fix wrong inner_offset when offset.x was 0
2021-02-08string_util: Remove MSVC workaround for converting between UTF8/UTF16Morph1-14/+0
This has been fixed as of Visual Studio 2019 Version 16.2
2021-02-08hid: Implement GC controllergerman7-6/+206
2021-02-08olsc: Stub GetSaveDataBackupSettinggerman1-1/+12
2021-02-08Add mouse panninggerman11-38/+149
2021-02-08video_core: Delete mortonChloe Marcec3-2/+0
moron.h & morton.cpp are not used anywhere and are just empty files
2021-02-07renderer_opengl: Update OpenGL backend version requirement to 4.6Morph3-42/+17
2021-02-07lm: Fix ReadLeb128Chloe Marcec1-7/+9
Fixes assertion on Bloodstained Ritual of the Night. We would over read sometimes, this is fixed by checking if the top bit is set in the first iteration. We also lock the loop off to be only the max size of the type we can fit. Finally we changed an incorrect print of "DEBUG" to "TRACE" to reflect the proper log severity
2021-02-07Add GC controller animationgerman2-52/+429
2021-02-06ring_buffer: Remove granularity template argumentMerryMage2-16/+15
Non-obvious bug in RingBuffer::Push(std::vector<T>&) when granularity != 1 Just remove it altogether because we do not have a use for granularity != 1
2021-02-06pl_u: Fix read out of boundsAlessandro Astone1-2/+7
2021-02-06Refresh debug controller settingsgerman4-10/+18
2021-02-06Refresh controller only when necessarygerman2-15/+37
2021-02-06Add SL SR vectors, change dual joycon view, add missing raw data from keyboard/mousegerman4-178/+247
2021-02-06Add controller window and single joycon top viewgerman7-29/+391
2021-02-06Replace text with vectorsgerman2-77/+306
2021-02-06Make settings controller image change with controller inputgerman9-75/+2076
2021-02-06k_address_arbiter: Unfold R_UNLESS macrosLioncash1-5/+8
Allows for more descriptive error messages and also doesn't hide control-path exit returns from the reader.
2021-02-06k_address_arbiter: Remove unnecessary usages of std::addressofLioncash1-10/+10
This is a useful function in a generic context or with types that overload unary operator&. However, primitives and pointers will never do this, so we can opt for a more straightforward syntax.
2021-02-06k_address_arbiter: Remove dead codeLioncash1-40/+13
This code is never used, so we can remove it. It's in version control, so it can always be brought back when needed.
2021-02-06svc: Provide more detailed error logs for svc functionsLioncash1-59/+188
Allows SVC calls to have much more informative information during error cases. This also doesn't hide control flow returns from the reader.
2021-02-05hle: kernel: Drop R_UNLESS_NOLOG in favor of expanded if-statement.bunnei3-11/+11
2021-02-05hle: kernel: KAddressArbiter: Remove noisy error log.bunnei1-1/+1
2021-02-05hle: kernel: svc: Cleanup KEvent/KReadableEvent/KWritableEvent SVCs.bunnei5-69/+89
2021-02-05common: scope_exit: Add a cancellable ScopeExit macro.bunnei1-0/+6
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei38-298/+341
2021-02-05hle: kernel: Implement KEvent.bunnei3-0/+91
2021-02-05hle: kernel: KAddressArbiter: Use R_UNLESS_NOLOG where applicable.bunnei1-1/+1
2021-02-05common: common_funcs: Add R_UNLESS_NOLOG for scenarios that should not log.bunnei1-0/+8
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei44-101/+101
2021-02-05hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei42-81/+82
2021-02-05Address reviewer commentslat9nq1-1/+1
2021-02-05CMake: Port citra-emu/citra FindFFmpeg.cmakelat9nq1-2/+2
Also renames related CMake variables to match both the Find*FFmpeg* and variables defined within the file. Fixes odd errors produced by the old FindFFmpeg. Citra's FindFFmpeg is slightly modified here: adds Citra's copyright at the beginning, renames FFmpeg_INCLUDES to FFmpeg_INCLUDE_DIR, disables a few components in _FFmpeg_ALL_COMPONENTS, and adds the missing avutil component to the comment above.
2021-02-05CMake: Implement YUZU_USE_BUNDLED_FFMPEGlat9nq2-7/+6
For Linux, instructs CMake to use the FFmpeg submodule in externals. This is HEAVILY based on our usage of the late Unicorn. Minimal change to MSVC as it uses the yuzu-emu/ext-windows-bin. MinGW now targets the same ext-windows-bin libraries as MSVC for FFmpeg. Adds FFMPEG_LIBRARIES to WIN32 and simplifies video_core/CMakeLists.txt a bit.
2021-02-04k_affinity_mask: Avoid implicit truncation to boolLioncash1-1/+1
This can cause compiler warnings. Instead, we can explicitly add a boolean expression around it to naturally turn the result into a bool.
2021-02-04k_priority_queue: Unfold several declval usagesLioncash1-5/+5
Given these are only used as function existence checks, we can simplify some usages of declval, given they aren't particularly useful here. Reduces a few template instantiations, which at most reduces compile times a tiny bit.
2021-02-04k_priority_queue: Simplify affinity mask type aliasLioncash1-2/+2
We can make use of the _t variants of the templates to cut down on a little bit of verbosity.
2021-02-04k_priority_queue: Resolved reserved identifierLioncash1-2/+2
An identifier containing a starting underscore followed by a capital letter is reserved by the standard. It's trivial to avoid this by moving the underscore to the end of the identifier. While the likelihood of clashing here being minimal, we can turn a "should not break" scenario into a definitive "will not break" one, so why not?.
2021-02-04key_manager: Create the keys directory if it does not existMorph1-0/+5
2021-02-04Add footer types and address commentsgerman7-58/+106
2021-02-04Fix npad struct to match switchbrewgerman4-106/+135
2021-02-04Adds missing controller types and propertiesgerman9-30/+191
2021-02-04Always update handheld configgerman1-4/+2
2021-02-03Simplify limitableresource namesChloe Marcec6-36/+29
2021-02-02Prevent over scheduling audio events and terminate properly the motion update eventgerman2-1/+9
2021-02-02IApplicationFunctions: Implement GetHealthWarningDisappearedSystemEventMorph2-1/+14
2021-02-02settings: Log the cache, config, and mod load directoriesMorph1-0/+3
2021-02-02video_core: host_shaders: Don't pass --quiet to glslangValidator if unavailablelat9nq1-1/+19
Prevents CMake from calling `glslangValidator` with `--quiet` when it is not available, i.e. on older downstream versions from Ubuntu.
2021-02-02Compile errorChloe Marcec1-1/+1
2021-02-02Address issuesChloe Marcec3-19/+15
2021-02-01arm_dynarmic_32: Print out CPSR.T on exceptionMerryMage2-2/+7
2021-02-01audren: Disable reverb for the time beingChloe Marcec1-1/+4
As this is causing issues in a few games, it's best to have it disabled until it's completely implemented
2021-02-01Only update motion for npad and prevent over scheduling eventsgerman1-2/+11
2021-01-31nifm: Stub GetCurrentIpConfigInfoMorph1-1/+29
- Used by Lets Sing 12
2021-01-31prepo: Stub GetTransmissionStatusMorph1-1/+11
2021-01-31prepo: Stub RequestImmediateTransmissionMorph1-1/+8
- Used by Animal Crossing: New Horizons
2021-01-31nifm: Stub GetCurrentNetworkProfileMorph1-1/+41
- Used by Minecraft Bedrock Edition - Used by Bloons TD 5
2021-01-31nifm: Add several structsMorph1-0/+87
2021-01-31am/IApplicationFunctions: Stub IsGamePlayRecordingSupportedMorph2-1/+12
Used by RetroArch
2021-01-31bsd: Fix EventFd stubMorph1-3/+3
2021-01-31nifm: Fix GetAppletInfo stubMorph1-1/+5
2021-01-31bsd: Fix GetSockOpt stubMorph1-1/+5
2021-01-31bsd: Stub EventFdameerj2-1/+12
Used by Family Feud
2021-01-31am: Stub TryPopFromFriendInvitationStorageChannelameerj2-1/+10
Used by Family Feud
2021-01-30fix compile errorChloe Marcec1-1/+1
2021-01-30cleanup commentingChloe Marcec1-2/+2
2021-01-30Drop m_ from lockChloe Marcec2-9/+9
2021-01-30Move to GetGlobalTimeNs, fix GetTotalPhysicalMemoryAvailableChloe Marcec3-9/+7
2021-01-30kernel: Rewrite resource limit to be more accurateChloe Marcec13-231/+357
Matches closer to hardware
2021-01-30Stub GetSystemSessionIdgerman1-1/+10
2021-01-30analog_from_button: Fix update_thread.join exceptionameerj1-5/+9
This commit aims to address an exception that occurs when trying to join the Analog object's update_thread. By using an atomic bool for the status of the update thread, we ensure its value is consistent across the threads accessing it.
2021-01-29hle: kernel: KLightLock: Fix several bugs.bunnei1-3/+3
2021-01-29common: common_funcs: Change R_UNLESS to LOG_ERROR.bunnei1-1/+1
2021-01-29arm: dynarmic: Reintroduce JIT checks on SaveContext/LoadContext.bunnei2-0/+12
2021-01-29hle: kernel: KThread: Release thread resource on thread exit.bunnei1-0/+1
2021-01-29yuzu: debugger: Ignore HLE threads.bunnei3-9/+21
2021-01-29hle: kernel: process: Add state lock.bunnei3-6/+15
2021-01-29hle: kernel: threading: Fix bug with host thread naming.bunnei1-3/+2
2021-01-29hle: kernel: k_scheduler_lock: Cleanup.bunnei1-3/+3
2021-01-29core: arm: Remove unnecessary JIT checks.bunnei2-24/+0
2021-01-29common: common_funcs: Log error on R_UNLESS.bunnei1-0/+3
2021-01-29hle: kernel: Allocate a dummy KThread for each host thread, and use it for scheduling.bunnei8-43/+45
2021-01-29hle: kernel: k_scheduler: Use atomics for current_thread, etc.bunnei2-26/+28
2021-01-29hle: kernel: k_scheduler: Fix for single core mode.bunnei1-1/+2
2021-01-29kernel: Fix build errors.bunnei2-4/+9
2021-01-29core: cpu_manager: Remove unused variable.bunnei1-1/+0
2021-01-29hle: kernel: KScheduler: Introduce thread context_guard.bunnei2-3/+16
2021-01-29hle: kernel: Recode implementation of KThread to be more accurate.bunnei14-785/+1562
2021-01-29kernel: svc_types: Add ThreadActivity.bunnei1-0/+5
2021-01-29kernel: KSchedulerPriorityQueue: Lowest priority should be LowestThreadPriority.bunnei1-1/+1
2021-01-29kernel: k_light_lock: Simplify EmuThreadHandle implementation.bunnei5-51/+33
2021-01-29hle: kernel: TimeManager: Simplify to not rely on previous EmuThreadHandle implementation.bunnei6-69/+25
2021-01-29common: common_funcs: Add useful kernel macro R_SUCCEED_IF.bunnei1-0/+3
2021-01-29core: hle: kernel: object: Implement Finalize() virtual method.bunnei15-6/+29
2021-01-29core: hle: kernel: svc_results: Populate with several missing error codes.bunnei1-0/+3
2021-01-29core: hle: kernel: Implement KLightLock.bunnei3-0/+173
2021-01-29core: hle: kernel: Implement KThreadQueue.bunnei2-0/+82
2021-01-29common: common_funcs: Add a few more useful macros for kernel code.bunnei1-0/+11
2021-01-29hle: kernel: KThread: Clean up thread priorities.bunnei10-83/+44
2021-01-29hle: kernel: KThread: Reorganize thread priority defaults.bunnei9-31/+31
2021-01-29hle: kernel: KThread: Fix ThreadType definition.bunnei5-11/+12
2021-01-29hle: kernel: Move single core "phantom mode" out of KThread.bunnei4-16/+31
- This is a workaround that does not belong in a kernel primitive.
2021-01-29hle: kernel: KThread: Remove thread types that do not exist.bunnei6-53/+30
2021-01-29arm: arm_dynarmic: Skip calls when JIT is invalid.bunnei2-0/+24
- This can happen if called from an idle or suspension thread.
2021-01-29core: hle: kernel: Rename Thread to KThread.bunnei45-272/+271
2021-01-29Fix user changing to 0 if validgerman1-2/+8
2021-01-28Avoid overwritting usernamegerman1-1/+1
2021-01-28hid: Add static_assert for Parameter sizeMorph1-15/+19
2021-01-28prepo: Fix BufferDescriptorX invalid buffer errors and add "New" variants of SaveReportMorph1-24/+42
The second input buffer could be optional when prepo/srepo is called, test for the availability of the second buffer prior to reading from it.
2021-01-28hle_ipc: Add Can(Read, Write)BufferMorph2-0/+28
Allows us to test whether a buffer can be read from or written to memory
2021-01-28Stub GetSockOptgerman2-1/+17
2021-01-28vk_scheduler: Fix unaligned placement new expressionsReinUsesLisp1-6/+6
We were accidentaly creating an object in an unaligned memory address. Fix this by manually aligning the offset.
2021-01-27vulkan_device: Blacklist Intel from float16 math (#5798)Rodrigo Locatti1-0/+5
Astral Chain crashes Intel's SPIR-V compiler when using fp16. Disable this while the vendor works on a fix.
2021-01-27npad: Remove unused device handle parameterMorph3-11/+9
2021-01-25Omit system referenceChloe Marcec1-2/+1
2021-01-25psm: IPsmSessionChloe Marcec1-2/+114
Used by homebrew menu
2021-01-25Revert "Start of Integer flags implementation"ReinUsesLisp3-59/+3
This reverts #4713. The implementation in that PR is not accurate. It does not reflect the behavior seen in hardware.
2021-01-25vk_graphics_pipeline: Fix narrowing conversion on MSVCReinUsesLisp1-2/+2
2021-01-24vk_texture_cache: Support image store on sRGB images with VkImageViewUsageCreateInfoReinUsesLisp3-38/+72
Vulkan 1.0 didn't support creating sRGB image views on an ABGR8 VkImage with storage usage bits. VK_KHR_maintenance2 addressed this allowing to reduce the usage bits on a VkImageView. To allow image store on non-sRGB image views when the VkImage is created with sRGB, always create VkImages without sRGB and add the sRGB format on the view.
2021-01-25vulkan_device: Lift VK_EXT_extended_dynamic_state blacklist on RDNAReinUsesLisp1-23/+0
It seems to be safe to use this on new drivers.
2021-01-24cmake: Enforce -Warray-bounds and -Wmissing-field-initializers globallyReinUsesLisp2-2/+2
2021-01-24Stub Set/Get/Reset SixaxisSensorFusionParametersgerman4-3/+104
2021-01-24Print Process ID and Thread ID as hexChloe Marcec1-2/+2
2021-01-24hle: Implement remaining services for Stereo VisionChloe Marcec3-7/+60
Used by Zelda Breath of the Wild, Super Mario Odyssey and Nintendo Labo
2021-01-24audout: FlushAudioOutBuffersChloe Marcec3-1/+20
Fixes Devil May Cry
2021-01-24host_shaders/cmake: Pass --quiet to glslang to keep it quietReinUsesLisp1-1/+1
Silences noisy builds on toolchains.
2021-01-24video_core/cmake: Enforce -Warray-bounds and -Wmissing-field-initializersReinUsesLisp1-0/+2
2021-01-24video_core: Silence -Wmissing-field-initializers warningsReinUsesLisp5-25/+56
2021-01-24maxwell_3d: Silence array bounds warningsReinUsesLisp2-35/+35
2021-01-24maxwell_to_vk: Silence -Wextra warnings about using different enum typesReinUsesLisp2-2/+2
2021-01-24Fix connect and disconnect controller eventsgerman2-15/+37
2021-01-23vfs_real: When moving files or directories, don't assume file opening will succeedcomex1-4/+10
Found this via a warning, but it's a substantive fix. Since this is only for a cache, it should be safe to silently drop the entry if opening fails. I think.
2021-01-23shader_ir: Fix comment typoLevi Behunin1-1/+1
2021-01-23sdl_impl: Set the maximum vibration duration to 1 secondMorph1-2/+6
2021-01-23Simplify conditionChloe Marcec1-2/+1
2021-01-23nvdrv: Unregister already registered eventsChloe Marcec1-1/+8
2021-01-23Clamp string reads to buffer sizeChloe Marcec1-3/+5
2021-01-23video_core/cmake: Properly generate fatal errors on AftermathReinUsesLisp1-2/+2
Fix "message(ERROR ..." to "message(FATAL_ERROR ..." to properly stop cmake when Nsight Aftermath can't be configured.
2021-01-23nsight_aftermath_tracker: Fix build issues when enabledReinUsesLisp2-16/+5
Fixes a bunch of build errors when Nsight Aftermath is properly enabled.
2021-01-23vk_pipeline_cache: Properly bypass VertexA shadersReinUsesLisp1-9/+3
The VertexA stage is not yet implemented, but Vulkan is adding its descriptors, causing a discrepancy in the pushed descriptors and the template. This generally ends up in a driver side crash. Bypass the VertexA stage for now.
2021-01-22video_core/memory_manager: Add BytesToMapEndReinUsesLisp2-2/+27
Track map address sizes in a flat ordered map and add a method to query the number of bytes until the end of a map in a given address.
2021-01-22common: Add missing include to bit_util.hbunnei1-0/+1
2021-01-21gl_shader_decompiler: Fix constant buffer size calculationReinUsesLisp1-1/+2
The divide logic was wrong and can cause an uniform buffer size overflow.
2021-01-21video_core/memory_manager: Remove unused CopyBlockUnsafeReinUsesLisp2-8/+0
This function was not being used.
2021-01-21video_core/memory_manager: Flush destination buffer on CopyBlockReinUsesLisp1-0/+4
When we copy into a buffer, it might contain data modified from the GPU on the same pages. Because of this, we have to flush the contents before writing new data. An alternative approach would be to write the data in place, but games can also write data in other ways, invalidating our contents. Fixes geometry in Zombie Panic in Wonderland DX.
2021-01-21video_core/memory_manager: Add GPU address based flush methodReinUsesLisp2-0/+17
Allow flushing rasterizer contents based on a GPU address.
2021-01-21bit_util: Unify implementations of MostSignificantBit32/MostSignificantBit64Lioncash1-35/+13
We can use the standardized CLZ facilities to perform this. This also allows us to make utilizing functions constexpr and eliminate the inclusion of an intrinsics header.
2021-01-21hle: service: am: Stub ILibraryAppletAccessor::PresetLibraryAppletGpuTimeSliceZero.bunnei1-1/+8
- Used by Monster Hunter Rise demo.
2021-01-21renderer_opengl: Avoid precompiled cache and force NV GL cache directoryReinUsesLisp8-5/+59
Setting __GL_SHADER_DISK_CACHE_PATH we can force the cache directory to be in yuzu's user directory to stop commonly distributed malware from deleting our driver shader cache. And by setting __GL_SHADER_DISK_CACHE_SKIP_CLEANUP we can have an unbounded shader cache size. This has only been implemented on Windows, mostly because previous tests didn't seem to work on Linux. Disable the precompiled cache on Nvidia's driver. There's no need to hide information the driver already has in its own cache.
2021-01-20lbl: Implement most of lblChloe Marcec1-22/+261
Pretty basic service, only thing left to do is handle setting applying once set:sys is implemented
2021-01-20mii: Fix BuildRandomStoreData & Cleanup raw_dataChloe Marcec4-2274/+1657
Cleaned up mii raw data to reflect the underlying values instead of just a chunk of bytes. Fixed BuildRandomStoreData not actually generating random miis properly. "values" should be a u32, not a u8.
2021-01-20Mark DestinationToString as staticChloe Marcec1-1/+1
2021-01-20Mark LogPacketHeaderEntry hash as noexceptChloe Marcec1-1/+1
2021-01-20lm: Recode LM serviceChloe Marcec8-345/+286
Rework the service to spit out to logs instead of a seperate file as well as fix any crashes caused by lm.
2021-01-19acc: Stub StoreSaveDataThumbnailChloe Marcec5-6/+66
Fixes ACA NEOGEO METAL SLUG hanging on boot.
2021-01-18npad: Add check for HANDHELD_INDEX in UpdateControllerAt()Morph1-1/+1
2021-01-18Always update configuration for handheldgerman1-0/+10
2021-01-18game_list: Fix folder reorderingFearlessTobi2-28/+32
The bug(s) happened because we swapped the contents on values.game_dirs, but the pointer each item had to their respective game_dir wasn't updated. This made it so that the item had the wrong game_dir associated with it after a "move up" or "move down" operation. It can be observed by choosing "open directory location" after such operation. Changed from raw pointer to an index because it's equivalent but a bit clearer, but the change is not essential. Co-Authored-By: Vitor K <29167336+vitor-k@users.noreply.github.com>
2021-01-17configure_service: Only compile FormatEventStatusString when YUZU_ENABLE_BOXCAT is enabledlat9nq1-0/+2
The function is unused if YUZU_ENABLE_BOXCAT is disabled, causing a -Wunused-funciton error when compiled. Wrapping it with `#ifdef YUZU_ENABLE_BOXCAT` to prevent compiling the function when the variable is disabled. Opting to not use [[maybe unused]] in case the function is totally unused in the future.
2021-01-17Fix player 1 default connected valuegerman1-1/+2
2021-01-17texture_cache/util: Resolve -Wsign-compare warningLioncash1-1/+1
Resolves a -Wsign-compare warning on Clang.
2021-01-17video_core: Resolve -Wdocumentation warningsLioncash2-4/+3
Silences some -Wdocumentation warnings on Clang.
2021-01-17vulkan_debug_callback: Add missing header guardLioncash1-0/+2
Prevents inclusion issues from occurring.
2021-01-16input_interpreter: Mark two member functions as constLioncash1-4/+4
These aren't stateful functions, so we can make use of const. While we're at, we can resolve some -Wdocumentation warnings.
2021-01-16input_interpreter: Add method to check for a button press stateMorph2-0/+25
This allows to check for continuous input for the duration of a button press/hold
2021-01-16vk_shader_decompiler: Show comments as OpUndef with a typeReinUsesLisp1-1/+4
Silence the new validation layer error about SPIR-V not allowing OpUndef on a OpTypeVoid, even when the SPIR-V spec doesn't say anything against it. They will be inserted as an undefined int to avoid SPIRV-Cross and validation errors, but only when a debugging tool is attached.
2021-01-15core/cmake: Enforce Wclass-memaccessReinUsesLisp1-0/+1
Treat -Wclass-memaccess as an error.
2021-01-15core: Silence Wclass-memaccess warningsReinUsesLisp17-205/+215
This requires making several types trivial and properly initialize them whenever they are called.
2021-01-15common/common_funcs: Rename INSERT_UNION_PADDING_{BYTES,WORDS} to _NOINITReinUsesLisp11-149/+149
INSERT_PADDING_BYTES_NOINIT is more descriptive of the underlying behavior.
2021-01-15vulkan_memory_allocator: Remove unnecesary 'device' memory from commitsReinUsesLisp2-15/+15
2021-01-15vk_texture_cache: Use Download memory types for texture flushesReinUsesLisp2-5/+10
Use the Download memory type where it matters.
2021-01-15vulkan_memory_allocator: Add allocation support for download typesReinUsesLisp2-55/+91
Implements the allocator logic to handle download memory types. This will try to use HOST_CACHED_BIT when available.
2021-01-15vulkan_memory_allocator: Add "download" memory usage hintReinUsesLisp9-45/+86
Allow users of the allocator to hint memory usage for downloads. This removes the non-descriptive boolean passed for "host visible" or not host visible memory commits, and uses an enum to hint device local, upload and download usages.
2021-01-15vulkan_common: Move allocator to the common directoryReinUsesLisp11-11/+11
Allow using the abstraction from the OpenGL backend.
2021-01-15renderer_vulkan: Rename Vulkan memory manager to memory allocatorReinUsesLisp15-54/+52
"Memory manager" collides with the guest GPU memory manager, and a memory allocator sounds closer to what the abstraction aims to be.
2021-01-15vk_memory_manager: Improve memory manager and its APIReinUsesLisp13-343/+318
Fix a bug where the memory allocator could leave gaps between commits. To fix this the allocation algorithm was reworked, although it's still short in number of lines of code. Rework the allocation API to self-contained movable objects instead of naively using an unique_ptr to do the job for us. Remove the VK prefix.
2021-01-15Always initialize keyboard inputgerman5-25/+20
2021-01-15Add mutitouch support for touch screensgerman10-85/+137
2021-01-15Allow to return up to 16 touch inputs per enginegerman10-154/+202
2021-01-15Allow all touch inputs at the same time and remove config options that are not longer necesarygerman8-99/+36
2021-01-15Add multitouch supportgerman2-23/+93
2021-01-15common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash10-113/+17
Makes for less code that we need to maintain.
2021-01-15common/alignment: Upgrade to use constraints instead of static assertsReinUsesLisp1-13/+9
2021-01-15common/alignment: Rename AlignBits to AlignUpLog2ReinUsesLisp4-16/+15
AlignUpLog2 describes what the function does better than AlignBits.
2021-01-15common/timer: RemoveLioncash3-202/+0
This is a leftover from citra and dolphin that isn't used at all, particularly given the <chrono> header exists.
2021-01-15common/color: RemoveReinUsesLisp2-272/+0
This is a leftover from Citra we no longer use.
2021-01-15core/cmake: Remove Werror flags already defined code-base wideReinUsesLisp1-2/+0
2021-01-15video_core/cmake: Remove Werror flags already defined code-base wideReinUsesLisp1-2/+0
These flags are already defined in src/cmake.
2021-01-15cmake: Remove yuzu_testerReinUsesLisp12-1057/+0
We never ended up using yuzu_tester. Removing it saves code duplication with yuzu_cmd, and distribution size on prebuilt packages. For unit testing, we can use catch2 from guest code and dump the results to a file. Then execute yuzu from a script on ci if we want this to be automated.
2021-01-15cmake: Enforce -Wunused-function code-base wideReinUsesLisp2-1/+1
2021-01-15video_core: Enforce -Wunused-functionReinUsesLisp1-0/+1
Stops us from merging code with unused functions in the future. If something is invoked behind conditionally evaluated code in a way that the language can't see it (e.g. preprocessor macros), the potentially unused function should use [[maybe_unused]].
2021-01-15vk_buffer_cache: Remove unused functionReinUsesLisp1-4/+0
2021-01-15vulkan_common: Silence missing initializer warningsReinUsesLisp2-145/+146
Silence warnings explicitly initializing all members on construction.
2021-01-15vulkan_device: Enable shaderStorageImageMultisample conditionallyReinUsesLisp2-18/+20
Fix Vulkan initialization on ANV.
2021-01-15astc: Increase integer encoded vector sizeReinUsesLisp1-1/+1
Invalid ASTC textures seem to write more bytes here, increase the size to something that can't make us push out of bounds.
2021-01-15astc: Return zero on out of bound bitsReinUsesLisp1-17/+22
Avoid out of bound reads on invalid ASTC textures. Games can bind invalid textures that make us read or write out of bounds.
2021-01-14yuzu: Remove unused variables in Qt codeLioncash2-21/+2
Removes two unused variables in out Qt code. In this case the removal of these two results in less allocations, given std::map allocates on the heap.
2021-01-14configure_motion_touch: Prevent use after move in ApplyConfiguration()Lioncash1-2/+1
touch_engine was being compared against after being moved into the setter for the engine, so this comparison wouldn't behave properly.
2021-01-14configure_motion_touch: Migrate off QRegExp to QRegularExpressionLioncash1-6/+9
QRegularExpression was introduced in Qt 5 as a better replacement for QRegExp. In Qt 6.0 QRegExp is removed entirely. To remain forward compatible with Qt 6.0, we can transition over to using QRegularExpression.
2021-01-13Fix IP validator error where the last octet produced an error if the value was higher than 199german1-2/+3
2021-01-13yuzu: Migrate off of setMargin() to setContentsMargins()Lioncash2-3/+3
setMargin() has been deprecated since Qt 5, and replaced with setContentsMargins(). We can move over to setContentsMargins() to stay forward-compatible with Qt 6.0.
2021-01-13vulkan_device: Remove requirement on shaderStorageImageMultisampleReinUsesLisp1-1/+0
yuzu doesn't currently emulate MS image stores. Requiring this makes no sense for now. Fixes ANV not booting any games on Vulkan.
2021-01-13tests: Add unit tests for the GPU range tracking buffer containerReinUsesLisp2-0/+474
Due to how error prone the container design is, this commit adds unit tests for it. Some tests taken from here are based on bugs from using this buffer container in games, so if we ever break it in the future in a way that might harm games, the tests should fail.
2021-01-13buffer_cache/buffer_base: Add a range tracking buffer containerReinUsesLisp2-0/+496
It keeps track of the modified CPU and GPU ranges on a CPU page granularity, notifying the given rasterizer about state changes in the tracking behavior of the buffer. Use a small vector optimization to store buffers smaller than 256 KiB locally instead of using free store memory allocations.
2021-01-13cmake: Enforce -Werror=switch and -Werror=unused-variableMorph1-0/+2
2021-01-12common/tree: Convert defines over to templatesLioncash2-592/+666
Reworks the tree header to operate off of templates as opposed to a series of defines. This allows all tree facilities to obey namespacing rules, and also allows this code to be used within modules once compiler support is in place. This also gets rid to use a macro to define functions and structs for necessary data types. With templates, these will be generated when they're actually used, eliminating the need for the separate declaration.
2021-01-12common/tree: Remove unused splay tree definesLioncash1-249/+2
Makes for less code to take care of.
2021-01-12common/parent_of_member: Replace TYPED_STORAGE define with template aliasLioncash2-8/+10
Provides the same construct, but makes it obey namespacing.
2021-01-11hle: kernel: thread: Preserve thread wait reason for debugging only.bunnei8-4/+74
- This is decoupled from core functionality and used for debugging only.
2021-01-11yuzu: debugger: wait_tree: Handle unknown ThreadState.bunnei1-0/+3
2021-01-11hle: kernel: k_scheduler_lock: Fix shadowing errors.bunnei1-1/+1
2021-01-11core: arm: arm_interface: Fix shadowing errors.bunnei1-3/+4
2021-01-11core: hle: Add missing calls to MicroProfileOnThreadExit.bunnei2-0/+5
2021-01-11core: hle: Integrate new KConditionVariable and KAddressArbiter implementations.bunnei15-1182/+508
2021-01-11core: hle: kernel: Update KAddressArbiter.bunnei3-0/+437
2021-01-11core: hle: kernel: Update KConditionVariable.bunnei4-0/+413
2021-01-11core: hle: kernel: Begin moving common SVC defintions to its own header.bunnei2-0/+14
2021-01-11hle: kernel: Remove unnecessary AddressArbiter definition.bunnei1-1/+0
2021-01-11common: common_funcs: Add R_UNLESS macro.bunnei1-0/+8
2021-01-11hle: kernel: k_scheduler: Cleanup OnThreadPriorityChanged.bunnei2-6/+3
2021-01-11hle: kernel: Rename thread "status" to "state".bunnei1-2/+2
2021-01-11hle: kernel: thread: Replace ThreadStatus/ThreadSchedStatus with a single ThreadState.bunnei12-172/+111
- This is how the real kernel works, and is more accurate and simpler.
2021-01-11core: hle: kernel: Add some useful functions for checking kernel addresses.bunnei1-0/+19
2021-01-11core: hle: kernel: svc_types: Add type definitions for KAddressArbiter.bunnei1-0/+12
2021-01-11common: Introduce useful tree structures.bunnei4-0/+1641
2021-01-11core: hle: kernel: Update KSynchronizationObject.bunnei33-621/+397
2021-01-11core: hle: kernel: Begin moving common SVC results to its own header.bunnei2-0/+21
2021-01-11hle: service: nfp: Remove incorrect signaling behavior in GetDeviceState.bunnei1-6/+0
2021-01-10config: Enable docked mode by defaultMorph5-6/+6
2021-01-10cmake: Enforce C4101Morph1-0/+1
This matches GCC's -Wunused-variable