summaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
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-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-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
2021-01-10yuzu_cmd: Silence unreferenced local variable warningMorph1-2/+0
2021-01-09general: Resolve C4062 warnings on MSVCMorph2-0/+4
2021-01-09common/div_ceil: Return numerator typeReinUsesLisp1-5/+5
Fixes instances where DivCeil(u32, u64) would surprisingly return u64, instead of the more natural u32.
2021-01-09cmake: Enforce C4062, C4265, C4388, and C5038ReinUsesLisp1-0/+4
This should match some warnings we treat as errors on gcc and clang, caching bugs early and reducing the number of instances where we have to edit commits to make CI happy when developing from Windows.
2021-01-09file_sys/registered_cache: Silence virtual functions without override warningsReinUsesLisp1-4/+4
2021-01-09core: Silence unhandled enum in switch warningsReinUsesLisp2-10/+5
2021-01-09tests/ring_buffer: Silence signed/unsigned mismatch warningsReinUsesLisp1-15/+15
2021-01-08Stub IsCpuOverclockEnabledgerman2-1/+10
2021-01-08vk_fence_manager: Use timeline semaphores instead of spin waitsReinUsesLisp3-54/+18
With timeline semaphores we can avoid creating objects. Instead of creating an event, grab the current tick from the scheduler and flush the current command buffer. When the fence has to be queried/waited, we can do so against the master semaphore instead of spinning on an event. If Vulkan supported NVN like events or fences, we could signal from the command buffer and wait for that without splitting things in two separate command buffers.
2021-01-07remove inaccurate referenceAmeer J1-1/+1
Co-authored-by: LC <mathew1800@gmail.com>
2021-01-07fix for nvdec disabled, cleanup host1xameerj3-72/+23
2021-01-07nvdec syncpt incorporationameerj11-37/+59
laying the groundwork for async gpu, although this does not fully implement async nvdec operations
2021-01-07vulkan_library: Common::DynamicLibrary::Open is [[nodiscard]]MerryMage1-1/+1
Ignore the return value on __APPLE__ systems as well
2021-01-07texture_cache: Replace PAGE_SHIFT with PAGE_BITSMerryMage1-6/+6
PAGE_SHIFT is a #define in system headers that leaks into user code on some systems
2021-01-05core: Enforce C4715 (not all control paths return a value)ReinUsesLisp1-0/+2
2021-01-05core: Silence warnings when compiling without assertsReinUsesLisp5-8/+11
2021-01-04vk_rasterizer: Skip binding empty descriptor sets on computeReinUsesLisp1-2/+4
Fixes unit tests where compute shaders had no descriptors in the set, making Vulkan drivers crash when binding an empty set.
2021-01-04buffer_queue: Protect queue_sequence list access with a mutexameerj2-13/+21
fixes a data race as this is an unprotected variable manipulated by multiple threads
2021-01-04yuzu/configure_filesystem: Remove "Select Cache Directory" optionFearlessTobi5-57/+1
This tab of the settings is already extremely bloated and the setting itself is quite useless. With a gamelist of almost 30 games, the cache directory is smaller than 1MB for me and therefore I don't see why it needs to be configurable.
2021-01-04vulkan_device: Allow creating a device without surfaceReinUsesLisp1-3/+3
2021-01-04renderer_vulkan/nsight_aftermath_tracker: Move to vulkan_commonReinUsesLisp5-30/+21
2021-01-04renderer_vulkan: Move device abstraction to vulkan_commonReinUsesLisp29-29/+31
2021-01-04gl_texture_cache: Avoid format views on Intel and AMDReinUsesLisp11-21/+48
Intel and AMD proprietary drivers are incapable of rendering to texture views of different formats than the original texture. Avoid creating these at a cache level. This will consume more memory, emulating them with copies.
2021-01-04gl_texture_cache: Create base images with sRGBReinUsesLisp2-99/+100
This breaks accelerated decoders trying to imageStore into images with sRGB. The decoders are currently disabled so this won't cause issues at runtime.
2021-01-04Address review commentsFearlessTobi1-5/+5
2021-01-04Delete the old log file before rotating (#5675)xperia641-0/+3
2021-01-03renderer_vulkan: Rename VKDevice to DeviceReinUsesLisp52-169/+166
The "VK" prefix predates the "Vulkan" namespace. It was carried around the codebase for consistency. "VKDevice" currently is a bad alias with "VkDevice" (only an upcase character of difference) that can cause confusion. Rename all instances of it.
2021-01-03main: Resolve error string not displayingLioncash3-2/+8
During the transition to make the error dialog translatable, I accidentally got rid of the conversion to ResultStatus, which prevented operator<< from being invoked during formatting. This adds a function to directly retrieve the result status string instead so that it displays again.
2021-01-03Fix the old log file to work with the log parser.bunnei1-1/+1
2021-01-03Rotate previous log file to '.old' if it existsxperia641-4/+9
2021-01-03hle: service: nvflinger: buffer_queue: Do not reset id/layer_id on Connect.bunnei1-2/+0
- This behavior is a mistake, fixes Katana Zero.
2021-01-02dynarmic: Add Unsafe_InaccurateNaN optimizationMerryMage6-0/+26
2021-01-02general: Fix various spelling errorsMorph20-43/+43
2021-01-02X86/NativeClock: Reimplement RTDSC access to be lock free.Fernando Sahmkow5-103/+107
2021-01-02X86/NativeClock: Improve performance of clock calculations on hot path.Fernando Sahmkow2-5/+71
2021-01-01typo fixTimotej Leginus1-1/+1
typo fix
2021-01-01configure_input: Modify controller connection delayMorph4-12/+47
Increases the controller connection delay to 60ms and refactors it to attempt to disconnect all controllers prior to connecting all controllers in HID.
2021-01-01memory: Remove MemoryHookMerryMage9-382/+0
2020-12-31yuzu/main: fix mouse not showing on move and port citra-emu/citra#5476gal204-19/+24
2020-12-31main: Make the loader error dialog fully translatableLioncash1-8/+12
Makes the dialog fully localizable and also adds disambiguation comments to help translators understand what the formatting specifiers indicate.
2020-12-31main: Tidy up enum comparisonLioncash1-2/+1
enum classes are comparable with one another, so these casts aren't necessary.
2020-12-31vulkan_instance: Allow different Vulkan versions and enforce 1.1ReinUsesLisp7-41/+39
For listing the available physical devices we can use Vulkan 1.0. Now that MoltenVK supports 1.1 we can require it for running games. Add missing documentation.
2020-12-31vk_device: Use an array to report lacking device limitsReinUsesLisp1-13/+17
This makes easier to add and tune the required device limits.
2020-12-31vk_device: Stop initialization when device is not suitableReinUsesLisp2-61/+39
VKDevice::IsSuitable was not being called. To address this issue, check suitability before initialization and throw an exception if it fails. By doing this, we can deduplicate some code on queue searches. Previosuly we would first search if a present and graphics queue existed, then on initialization we would search again to find the index.
2020-12-31renderer_vulkan: Remove two step initialization on VKDeviceReinUsesLisp6-31/+10
The Vulkan device abstraction either initializes successfully on the constructor or throws a Vulkan exception.
2020-12-31renderer_vulkan: Throw when enumerating devices failsReinUsesLisp5-33/+21
Report device enumeration errors with exceptions to be consistent with other initialization related function calls. Reduces the amount of code to maintain.
2020-12-31renderer_vulkan: Initialize surface in separate fileReinUsesLisp6-73/+109
Move surface initialization code to a separate file. It's unlikely to use this code outside of Vulkan, but keeping platform-specific code (Win32, Xlib, Wayland) in its own translation unit keeps things cleaner.
2020-12-31renderer_vulkan: Catch and report exceptionsReinUsesLisp1-2/+5
Move more Vulkan code to report errors with exceptions and report them through a log before notifying it with an error boolean for backwards compatibility. In the future we can replace the rasterizer two-step initialization to always use exceptions.
2020-12-31renderer_vulkan: Create debug callback on separate file and throwReinUsesLisp8-79/+88
Initialize debug callbacks (messenger) from a separate file. This allows sharing code with different backends. Change our Vulkan error handling to use exceptions instead of error codes, simplifying the initialization process.
2020-12-31renderer_vulkan: Move instance initialization to a separate fileReinUsesLisp4-111/+176
Simplify Vulkan's backend initialization code by moving it to a separate file, allowing us to initialize a Vulkan instance from different backends.
2020-12-31vulkan_common: Rename renderer_vulkan/wrapper.h to vulkan_common/vulkan_wrapper.hReinUsesLisp51-51/+51
Allows sharing Vulkan wrapper code between different rendering backends.
2020-12-31vulkan_common: Move dynamic library load to a separate fileReinUsesLisp4-31/+59
Allows us to initialize a Vulkan dynamic library from different backends without duplicating code.
2020-12-31Port citra-emu/citra#5509german1-2/+45
2020-12-31Make the coding conventions more consistant16-Bit-Dog1-1/+1
lut_index had 0 added when nothing was supposed to be added despite this, index was not added to 0 when nothing was supposed to be added...
2020-12-30half_set: Resolve -Wmaybe-uninitialized warningsLioncash1-7/+7
2020-12-30maxwell_to_vk: Initialize usage variable in SurfaceFormat()Lioncash1-1/+1
Silences a -Wmaybe-uninitialized warning
2020-12-30video_core: Rewrite the texture cacheReinUsesLisp152-8101/+10359
The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage.The current texture cache has several points that hurt maintainability and performance. It's easy to break unrelated parts of the cache when doing minor changes. The cache can easily forget valuable information about the cached textures by CPU writes or simply by its normal usage. This commit aims to address those issues.
2020-12-30cmake: Enforce -WuninitializedReinUsesLisp1-0/+1
2020-12-30service/pcie: Fix invalid initialization argumentReinUsesLisp1-1/+1
2020-12-30video_core: Add a delayed destruction ring abstractionReinUsesLisp2-0/+33
2020-12-30host_shaders: Add Vulkan assembler compute shadersReinUsesLisp4-0/+96
2020-12-30host_shaders: Add helper to blit depth stencil fragment shaderReinUsesLisp2-0/+17
2020-12-30host_shaders: Add texture color blit fragment shaderReinUsesLisp2-0/+15
2020-12-30host_shaders: Add shaders to present to the swapchainReinUsesLisp3-0/+36
2020-12-30host_shaders: Add shaders to convert between depth and color imagesReinUsesLisp3-0/+28
2020-12-30host_shaders: Add compute shader to copy BC4 as RG32UI to RGBA8ReinUsesLisp2-0/+71
2020-12-30host_shaders: Add shader to render a full screen triangleReinUsesLisp2-0/+30
2020-12-30host_shaders: Add pitch linear upload compute shaderReinUsesLisp2-0/+87
2020-12-30host_shaders: Add block linear upload compute shadersReinUsesLisp3-0/+249
2020-12-30host_shaders: Add copyright headers to OpenGL present shadersReinUsesLisp2-0/+8
2020-12-30video_core/host_shaders: Add support for prebuilt SPIR-V shadersReinUsesLisp1-16/+37
Add support for building SPIR-V shaders from GLSL and generating headers to include the text of those same GLSL shaders to consume from OpenGL.
2020-12-30core/memory: Read and write page table atomicallyReinUsesLisp7-147/+132
Squash attributes into the pointer's integer, making them an uintptr_t pair containing 2 bits at the bottom and then the pointer. These bits are currently unused thanks to alignment requirements. Configure Dynarmic to mask out these bits on pointer reads. While we are at it, remove some unused attributes carried over from Citra. Read/Write and other hot functions use a two step unpacking process that is less readable to stop MSVC from emitting an extra AND instruction in the hot path: mov rdi,rcx shr rdx,0Ch mov r8,qword ptr [rax+8] mov rax,qword ptr [r8+rdx*8] mov rdx,rax -and al,3 and rdx,0FFFFFFFFFFFFFFFCh je Core::Memory::Memory::Impl::Read<unsigned char> mov rax,qword ptr [vaddr] movzx eax,byte ptr [rdx+rax]
2020-12-30hle: kernel: service_thread: Make thread naming more consistent.bunnei1-1/+1
2020-12-30hle: kernel: Manage service threads on another thread.bunnei1-9/+20
- This is to allow service threads to defer destruction of themselves.
2020-12-30common: ThreadWorker: Add class to help do asynchronous work.bunnei3-0/+90
2020-12-30hle: kernel: Manage host thread IDs using TLS.bunnei1-46/+31
- Avoids the need to have a large map of host to guest thread IDs.
2020-12-29k_priority_queue: Fix concepts usecomex2-3/+9
- For `std::same_as`, add missing include of `<concepts>`. - For `std::convertible_to`, create a replacement in `common/concepts.h` and use that instead. This would also be found in `<concepts>`, but unlike `std::same_as`, `std::convertible_to` is not yet implemented in libc++, LLVM's STL implementation - not even in master. (In fact, `std::same_as` is the *only* concept currently implemented. For some reason.)
2020-12-29Add missing include of "core/hle/kernel/kernel.h"comex1-0/+1
This is needed as the header invokes methods on KernelCore.
2020-12-29svc: demote SleepThread log to LOG_TRACEameerj1-1/+1
This log is called often, and introduces a lot of noise when debug logging is enabled, making it difficult to see other debug logs.
2020-12-29hle: kernel: Move ServiceThread ownership to KernelCore.bunnei4-5/+48
- Fixes a circular dependency which prevented threads from being released on shutdown.
2020-12-29hle: kernel: service_thread: Add thread name and take weak_ptr of ServerSession.bunnei3-11/+22
2020-12-29hle: service: Acquire and release a lock on requests.bunnei7-40/+41
- This makes it such that we can safely access service members from CoreTiming thread.
2020-12-29audio_core: stream: Ensure buffer is valid before release.bunnei1-2/+10
2020-12-29core: Do not reset device_memory on shutdown.bunnei1-1/+0
- This will be reset on initialization.
2020-12-29core: hle: kernel: Clear process list on boot.bunnei1-2/+2
2020-12-29gpu: gpu_thread: Ensure MicroProfile is shutdown on exit.bunnei1-0/+3
2020-12-29hle: service: vi: Refactor to grab buffer only once.bunnei1-15/+4
2020-12-29service: nvflinger: Improve synchronization for BufferQueue.bunnei5-19/+72
- Use proper mechanisms for blocking on DequeueBuffer. - Ensure service thread terminates on emulation Shutdown.
2020-12-29hle: service: Ensure system is powered on before writing IPC result.bunnei1-1/+5
2020-12-29core: kernel: Clear process list earlier.bunnei1-2/+2
2020-12-29video_core: gpu_thread: Do not wait when system is powered down.bunnei1-1/+2
2020-12-29core: settings: Untangle multicore from asynchronous GPU.bunnei5-21/+4
- Now that GPU is always threaded, we can support multicore with synchronous GPU.
2020-12-29video_core: gpu: Implement synchronous mode using threaded GPU.bunnei4-12/+34
2020-12-29video_core: gpu: Refactor out synchronous/asynchronous GPU implementations.bunnei10-289/+130
- We must always use a GPU thread now, even with synchronous GPU.
2020-12-29hle: kernel: hle_ipc: Remove SleepClientThread.bunnei2-54/+0
- This was kind of hacky, and no longer is necessary with service threads.
2020-12-29hle: service: bsd: Update to work with service threads, removing SleepClientThread.bunnei4-250/+45
2020-12-29hle: service: nvdrv: Revert #4981 to remove usage of SleepClientThread.bunnei23-211/+83
- Note, this always processes the ioctl right away, which fixes BotW 1.0.0 issues.
2020-12-29hle: kernel: service_thread: Add parameter for thread pool size.bunnei3-7/+7
2020-12-29hle: service: nvflinger: Refactor locking and interfaces.bunnei3-45/+31
2020-12-29hle: service: vi: Remove usage of SleepClientThread.bunnei1-34/+43
2020-12-29core: hle: server_session: Use separate threads for each service connection.bunnei6-23/+140
2020-12-27udp client: process packets only for the correct padgal201-0/+5
2020-12-27Allow to invert analog axis with right clickgerman4-65/+99
2020-12-26renderer_vulkan/fixed_pipeline_state: Move enabled bindings to static stateReinUsesLisp3-26/+12
Without using VK_EXT_robustness2, we can't consider the 'enabled' (not null) vertex buffers as dynamic state, as this leads to invalid Vulkan state. Move this to static state that is always hashed and compared in the pipeline key. The bits for enabled vertex buffers are moved into the attribute state bitfield. This is not 'correct' as it's not an attribute state, but that struct has bits to spare, and it's used in an array of 32 elements (the exact same number of vertex buffer bindings).
2020-12-25yuzu/main: Add basic command line argumentsMorph1-3/+39
The following command line arguments are supported: yuzu.exe "path_to_game" - Launches a game at "path_to_game" yuzu.exe -f - Launches the next game in fullscreen yuzu.exe -g "path_to_game" - Launches a game at "path_to_game" yuzu.exe -f -g "path_to_game" - Launches a game at "path_to_game" in fullscreen
2020-12-25core: memory: Ensure thread safe access when pages are rasterizer cached (#5206)bunnei1-12/+40
* core: memory: Ensure thread safe access when pages are rasterizer cached.
2020-12-25cmake: Always enable VulkanReinUsesLisp8-133/+75
Removes the unnecesary burden of maintaining separate #ifdef paths and allows us sharing generic Vulkan code across APIs.
2020-12-25video_core: Enforce C4715 (not all control paths return a value)ReinUsesLisp1-0/+1
Most of the time people write code that always returns a value, terminates execution, throws an exception, or uses an unconventional jump primitive. This is not always true when we build without asserts on mainline builds. To avoid introducing undefined behavior on our most used builds, enforce this warning signalling an error and stopping the build from shipping.
2020-12-25vk_shader_decompiler: Silence warning when compiling without assertsReinUsesLisp1-0/+1
2020-12-23yuzu/main: Improve menubar access keyslat9nq4-38/+38
Adds a unique access key to each action within each menu. A few actions already had their own access key, so those were untouched.
2020-12-23Add option to reset window size to 1080pgerman3-6/+30
2020-12-22yuzu/main: Save settings when starting guestlat9nq2-16/+25
Saves UISettings and Settings when booting a guest. Moves updating UISettings::values from GMainWindow::closeEvent into its own function, then reuses it in GMainWindow::BootGame.
2020-12-19yuzu: Remove gdbstub configurationFearlessTobi9-110/+7
The gdbstub itself was removed with https://github.com/yuzu-emu/yuzu/pull/5028. This PR just removes the remaining gdb configuration code from the emulator and the UI.
2020-12-18applets/web: Implement the online web browser appletMorph8-64/+167
2020-12-18applets/web: Fix keyboard to emulated controller inputMorph3-4/+30
2020-12-18main: Add the ability to disable the web appletMorph2-0/+27
This should only be used for Super Mario 3D All-Stars. This is a temporary solution until it can be implemented properly.
2020-12-18main, applets/web: Re-add progress dialog for RomFS extractionMorph8-68/+125
2020-12-18applets/web: Implement the Qt web browser applet frontendMorph4-5/+600
2020-12-18web_browser_scripts: Add injection scripts for the web browserMorph1-0/+193
2020-12-18pl_u, applets/web: Decrypt shared fonts to TTF filesMorph3-18/+117
2020-12-18ns_vm: Stub NeedsUpdateVulnerabilityMorph1-1/+10
This is used to force system updates on launching the web browser. We do not care about system updates so this can be set to false.
2020-12-18frontend/input_interpreter: Add InputInterpreter APIMorph3-0/+167
The InputInterpreter class interfaces with HID to retrieve button press states. Input is intended to be polled every 50ms so that a button is considered to be held down after 400ms has elapsed since the initial button press and subsequent repeated presses occur every 50ms. Co-authored-by: Chloe <25727384+ogniK5377@users.noreply.github.com>
2020-12-18controllers/npad: Make press_state atomicMorph2-2/+3
2020-12-18util: Add URL Request Interceptor for QWebEngineMorph3-0/+64
2020-12-18bootmanager: Add a check whether loading is completeMorph2-0/+6
2020-12-18applets/web: Implement the default web browser applet frontendMorph3-1/+24
2020-12-18applets/web: Implement the offline browser applet backendMorph2-13/+143
2020-12-18applets/web: Initial implementation of the web browser appletMorph3-2/+428
2020-12-18applets: Remove the previous web browser applet implementationMorph12-1039/+40
2020-12-18system_archive: Add + and - buttons to the Nintendo Extended OSS fontMorph2-315/+343
2020-12-18buffer_queue: better use of std::arrayameerj1-59/+46
2020-12-17Overwrite slots instead of queuing them, add disconnect signalameerj3-27/+33
Fix for Katana Zero and Yoshi's Crafted World
2020-12-17system_archive: Update Nintendo Extended OSS fontMorph2-182/+347
Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-12-13cmake: Fix generating CMake configs and linking with Boostlat9nq1-1/+1
Fixes regression by 761206cf81b271f7f4dd6a167a120325b760dbf3, causing yuzu to not build on Linux with any version of Boost except a cached 1.73 Conan version from before about a day ago. Moves the Boost requirement out of the `REQUIRED_LIBS` psuedo-2D-array for Conan to instead be manually configured, using Conan as a fallback solution if the system does not meet our requirements. Requires any update from the linux-fresh container in order to build. **DO NOT MERGE** until someone with the MSVC toolchain can verify this works there, too.
2020-12-12common: Update CMakeList to fix build issue with Boost.bunnei1-2/+1
2020-12-12controllers/npad: Validate device handles before useMorph2-0/+45
Some games such as NEKOPARA Vol. 3 send invalid device handles when calling InitializeVibrationDevice. Introduce a check to validate the device handle before use.
2020-12-12Revert "Merge pull request #5173 from lioncash/common-fs"Morph2-112/+396
This reverts commit ce5fcb6bb2c358b0251a2ce87945bda52789a76d, reversing changes made to 6f41763061082d5fa2ab039c554427152243cb46.
2020-12-12Revert "Merge pull request #5174 from ReinUsesLisp/fs-fix"Morph2-36/+4
This reverts commit 5fe55b16a11d9ec607fb8a3fdddc77a4393cd96a, reversing changes made to e94dd7e2c4fc3f7ca2c15c01bdc301be2b8a4c1b.
2020-12-12Revert "Merge pull request #5176 from Morph1984/fix-createfile"Morph1-6/+2
This reverts commit 6d6115475b4edccdf1bb4e96ecc3d3b1be319e76, reversing changes made to 5fe55b16a11d9ec607fb8a3fdddc77a4393cd96a.
2020-12-12Revert "Merge pull request #5179 from ReinUsesLisp/fs-path"Morph1-1/+1
This reverts commit 4e94d0d53af2cdb7b03ef9de23cc29f3565df97a, reversing changes made to 6d6115475b4edccdf1bb4e96ecc3d3b1be319e76.
2020-12-12Revert "Merge pull request #5181 from Morph1984/5174-review"Morph1-3/+9
This reverts commit cdb36aef9ec9d30bdef1953f9ed46776ae2f12af, reversing changes made to 5e9b77129f2cf8c039a8d98033cae4ac0f93f515.
2020-12-10vfs: Use existing type aliases consistentlyLioncash28-136/+142
Makes use of the VirtualDir and VirtualFile aliases across the board instead of having a few isolated places that don't use it.
2020-12-10common/file_util: Simplify the behavior of CreateFullPathMorph1-9/+3
2020-12-09common/file_util: Let std::filesystem cast from UTF16 to std::stringReinUsesLisp1-1/+1
Fix invalid encoding paths when iterating over a directory on Windows.
2020-12-09vfs_real: Fix CreateFile for files without a file extensionMorph1-2/+6
2020-12-09common/file_util: Fix and deprecate CreateFullPath, add CreateDirsReinUsesLisp2-4/+31
Fix CreateFullPath to have its intended previous behavior (whatever that was), and deprecate it in favor of the new CreateDirs function. Unlike CreateDir, CreateDirs is marked as [[nodiscard]] to avoid new code ignoring its result value.
2020-12-09common/file_util: Succeed on CreateDir when the directory existsReinUsesLisp1-0/+5
2020-12-09file_util: Migrate remaining file handling functions over to std::filesystemLioncash2-340/+100
Converts creation and deletion functions over to std::filesystem, simplifying our file-handling code. Notably with this, CopyDir will now function on Windows.
2020-12-09file_util: Migrate Exists() and IsDirectory() over to std::filesystemLioncash2-57/+13
Greatly simplifies our file-handling code for these functions.
2020-12-08svc: Remove unnecessary castsLioncash1-35/+25
Simplifies and removes some casts. In all cases, these were generally widening from a 32-bit unsigned type to a 64-bit unsigned type, so no information would be lost from the conversion.
2020-12-08IPurchaseEventManager: Implement GetPurchasedEventReadableHandleMorph1-1/+14
- Used by Pokémon Café Mix - Used by DOOM: Eternal
2020-12-08IPurchaseEventManager: Stub Set(Default)DeliveryTargetMorph1-2/+27
- Used by Pokémon Café Mix - Used by DOOM: Eternal
2020-12-08aoc_u: Stub Create(Permanent)EcPurchasedEventManagerMorph2-2/+38
- Used by Pokémon Café Mix - Used by DOOM: Eternal
2020-12-08memory: Resolve -Wdocumentation warning for Write()Lioncash1-2/+0
Write() doesn't return anything, so the @returns tag shouldn't be present.
2020-12-08fsp_srv: Implement OpenDataStorageWithProgramIndexMorph6-1/+83
- Used by RollerCoaster Tycoon 3: Complete Edition
2020-12-08file_sys: Consolidate common Title ID operationsMorph5-13/+67
2020-12-08core: Remove unnecessary enum casts in log callsLioncash25-96/+90
Follows the video core PR. fmt doesn't require casts for enum classes anymore, so we can remove quite a few casts.
2020-12-08controller: Use std::move within ConvertToFrontendParameters()Lioncash1-3/+3
Avoids unnecessary copies.
2020-12-08controller: Avoid unnecessary copies in ConfigurationComplete()Lioncash1-9/+8
Avoids unnecessary 1072 byte copies when querying info about controllers.
2020-12-08Disable analog joystick from buttons by defaultgerman5-10/+52
2020-12-07video_core: Make use of ordered container contains() where applicableLioncash8-16/+13
With C++20, we can use the more concise contains() member function instead of comparing the result of the find() call with the end iterator.
2020-12-07ast: Improve string concat readability in operator()Lioncash1-5/+4
Provides an in-place format string to make it more pleasant to read.
2020-12-07gl_shader_decompiler: Elide unnecessary copies within DeclareConstantBuffers()Lioncash1-1/+1
Resolves a -Wrange-loop-analysis warning.
2020-12-07buffer_block: Mark interface as nodiscard where applicableLioncash1-7/+7
Prevents logic errors from occurring from unused values.
2020-12-07buffer_block: Remove unnecessary includesLioncash1-5/+0
Reduces the amount of dependencies the header pulls in.
2020-12-07shader_ir: std::move node within DeclareAmend()Lioncash1-2/+2
Same behavior, but elides an unnecessary atomic reference count increment and decrement.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash33-148/+125
fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
2020-12-07maxwell_3d: Move member variables to end of classLioncash1-31/+32
Follows our established coding style.
2020-12-07maxwell_3d: Resolve -Wdocumentation warningLioncash1-1/+1
Removes a documentation comment for a non-existent member.
2020-12-07maxwell_3d: Remove unused dirty_pointer arrayLioncash1-2/+0
This is unused and removing it shrinks the structure by 3584 bytes.
2020-12-07configure_motion_touch: Fix unescaped backslash in regexcomex1-2/+2
Since this is inside a string literal, backslashes that are part of regex syntax have to be escaped. But that's ugly, so convert to a raw string instead.
2020-12-07network, sockets: Replace `POLL_IN`, `POLL_OUT`, etc. constants with an `enum class PollEvents`comex6-71/+82
Actually, two enum classes, since for some reason there are two separate yet identical `PollFD` types used in the codebase. I get that one is ABI-compatible with the Switch while the other is an abstract type used for the host, but why not use `WSAPOLLFD` directly for the latter? Anyway, why make this change? Because on Apple platforms, `POLL_IN`, `POLL_OUT`, etc. (with an underscore) are defined as macros in <sys/signal.h>. (This is inherited from FreeBSD.) So defining a variable with the same name causes a compile error. I could just rename the variables, but while I was at it I thought I might as well switch to an enum for stronger typing. Also, change the type used for values copied directly to/from the `events` and `revents` fields of the host *native* `pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct canonical type on both Unix and Windows.
2020-12-07Fix "explicitly defaulted but implicitly deleted" warningcomex1-1/+1
`PhysicalCore`'s move assignment operator was declared as `= default`, but was implicitly deleted because `PhysicalCore` has fields of reference type. Switch to explicitly deleting it to avoid a Clang warning. The move *constructor* is still defaulted, and is required to exist due to the use of `std::vector<PhysicalCore>`.
2020-12-07hle: Type check ResponseBuilder::Push arguments, and fix use in vi.cppcomex2-34/+37
- Add a type check so that calling Push with an invalid type produces a compile error rather than a linker error. - vi.cpp was calling Push with a variable of type `std::size_t`. There's no explicit overload for `size_t`, but there is one for `u64`, which on most platforms is the same type as `size_t`. On macOS, however, it isn't: both types are 64 bits, but `size_t` is `unsigned long` and `u64` is `unsigned long long`. Regardless, it makes more sense to explicitly use `u64` here instead of `size_t`.
2020-12-07CMakeLists,network: Create YUZU_UNIX macro to replace __unix__comex2-5/+5
__unix__ is not predefined on Apple platforms even though they are Unix.
2020-12-07renderer_vulkan: Add missing `override` specifiercomex1-1/+1
2020-12-07map_interval: Change field order to address uninitialized field warningcomex1-1/+2
Clang complains about `new_chunk`'s constructor using the then-uninitialized `first_chunk` (even though it's just to get a pointer into it).
2020-12-07core: Mark unused fields as [[maybe_unused]]comex2-3/+3
2020-12-07boxcat: Avoid unnecessary object copycomex1-1/+1
2020-12-07nvdrv: Remove useless re-declaration of pure virtual methods that were already declared in the superclasscomex1-33/+0
2020-12-07video_core: Adjust `NUM` macro to avoid Clang warningcomex3-3/+3
The previous definition was: #define NUM(field_name) (sizeof(Maxwell3D::Regs::field_name) / sizeof(u32)) In cases where `field_name` happens to refer to an array, Clang thinks `sizeof(an array value) / sizeof(a type)` is an instance of the idiom where `sizeof` is used to compute an array length. So it thinks the type in the denominator ought to be the array element type, and warns if it isn't, assuming this is a mistake. In reality, `NUM` is not used to get array lengths at all, so there is no mistake. Silence the warning by applying Clang's suggested workaround of parenthesizing the denominator.
2020-12-06hle: kernel: Process: Various style fixes based on code review feedback.bunnei1-2/+2
2020-12-06core: cpu_manager: Fix a typo in PreemptSingleCore, which broke many games.bunnei1-21/+26
- We were reload'ing the old current scheduler, which may have changed.
2020-12-06hle: kernel: Thread: Various style fixes based on code review feedback.bunnei1-22/+25
2020-12-06hle: kernel: KScopedSchedulerLockAndSleep: Various style fixes based on code review feedback.bunnei1-6/+6
2020-12-06hle: kernel: KScopedLock: Various style fixes based on code review feedback.bunnei1-6/+8
2020-12-06hle: kernel: KAbstractSchedulerLock: Various style fixes based on code review feedback.bunnei1-9/+7
2020-12-06hle: kernel: KScheduler: Various style fixes based on code review feedback.bunnei2-50/+41
2020-12-06hle: kernel: KPriorityQueue: Various style fixes based on code review feedback.bunnei1-29/+36
2020-12-06hle: kernel: KAffinityMask: Various style fixes based on code review feedback.bunnei1-17/+13
2020-12-06hle: kernel: GlobalSchedulerContext: Various style fixes based on code review feedback.bunnei2-5/+10
2020-12-06common: BitSet: Various style fixes based on code review feedback.bunnei1-23/+22
2020-12-06hle: kernel: Use C++ style comments in KScheduler, etc.bunnei4-152/+136
2020-12-06kernel: KScopedSchedulerLockAndSleep: Remove unused ctor.bunnei1-13/+7
2020-12-06kernel: time_manager: Add missing lock guards.bunnei1-3/+10
2020-12-06hle: kernel: Migrate to KScopedSchedulerLock.bunnei15-48/+92
2020-12-06hle: kernel: Separate KScopedSchedulerLockAndSleep from k_scheduler.bunnei11-69/+72
2020-12-06hle: kernel: Separate KScheduler from GlobalSchedulerContext class.bunnei9-520/+140
2020-12-06hle: kernel: Rewrite scheduler implementation based on Mesopshere.bunnei26-1223/+1215
2020-12-06hle: kernel: physical_core: Clear exclusive state after each run.bunnei3-0/+7
- This is closer to pre-multicore behavior, and works a bit better.
2020-12-06hle: kernel: Port KAbstractSchedulerLock from Mesosphere.bunnei2-0/+77
2020-12-06hle: kernel: svc: Remove reschedule on svcBreak.bunnei1-5/+0
- This breaks things, and is unnecessary, since emulation will be done at this point.
2020-12-06hle: kernel: process: Add schedule count tracking, to be used for yield impl.bunnei1-0/+13
2020-12-06hle: kernel: svc: Remove unnecessary hack in svcSleep.bunnei1-7/+0
2020-12-06common: Port KPriorityQueue from Mesosphere.bunnei2-0/+444
2020-12-06common: Port BitSet from Mesosphere.bunnei2-0/+101
2020-12-06hle: kernel: Port KAffinityMask from Mesosphere.bunnei7-16/+80
2020-12-05maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflictcomex1-5/+7
On Apple platforms, FALSE and TRUE are defined as macros by <mach/boolean.h>, which is included by various system headers. Note that there appear to be no actual users of the names to fix up.
2020-12-05yuzu_cmd: Remove 'users_size'comex1-1/+0
Specifically: const auto size = sdl2_config->GetInteger("System", "users_size", 0); The variable is never used, producing a warning. I wondered if this ought to be assigning something to in `Settings`, but nothing else in the codebase ever mentions a setting called "users_size", so I guess it's safe to remove...
2020-12-05Update cubeb and request a persistent stream sessionVitor Kiguchi1-0/+1
2020-12-05video_core: Resolve more variable shadowing scenarios pt.3Lioncash49-292/+305
Cleans out the rest of the occurrences of variable shadowing and makes any further occurrences of shadowing compiler errors.
2020-12-05game_list_p: Resolve deprecated usage of QVariant operator<Lioncash1-1/+2
This is designated as obsolete in Qt's docs (see: https://doc.qt.io/qt-5/qvariant-obsolete.html#operator-lt)
2020-12-05applets: Resolve variable shadowingMorph10-19/+19
2020-12-05video_core: Resolve more variable shadowing scenarios pt.2Lioncash39-296/+305
Migrates the video core code closer to enabling variable shadowing warnings as errors. This primarily sorts out shadowing occurrences within the Vulkan code.
2020-12-05xbyak_abi: Shorten std::size_t to size_tLioncash1-8/+8
Makes for less reading.
2020-12-05xbyak_abi: Avoid implicit sign conversionsLioncash1-2/+2
2020-12-05system_version: Update to 11.0.0Chloe Marcec1-6/+6
2020-12-05Fix telemetry-related exit crash from use-after-freeFearlessTobi1-3/+3
Co-Authored-By: xperia64 <xperia64@users.noreply.github.com>
2020-12-04codec: Remove deprecated usage of AVCodecContext::refcounted_framesLioncash1-1/+0
This was only necessary for use with the avcodec_decode_video2/avcoded_decode_audio4 APIs which are also deprecated. Given we use avcodec_send_packet/avcodec_receive_frame, this isn't necessary, this is even indicated directly within the FFmpeg API changes document here on 2017-09-26: https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges#L410 This prevents our code from breaking whenever we update to a newer version of FFmpeg in the future if they ever decide to fully remove this API member.
2020-12-04video_core: Resolve more variable shadowing scenariosLioncash42-206/+219
Resolves variable shadowing scenarios up to the end of the OpenGL code to make it nicer to review. The rest will be resolved in a following commit.
2020-12-04nim: Stub IsLargeResourceAvailableMorph1-1/+13
- Used by Immortals Fenyx Rising
2020-12-03node: Mark member functions as [[nodiscard]] where applicableLioncash1-29/+29
Prevents logic bugs from accidentally ignoring the return value.
2020-12-03node: Eliminate variable shadowingLioncash1-47/+49
2020-12-03vp9/vic: Resolve pessimizing movesLioncash2-11/+11
Removes the usage of moves that don't result in behavior different from a copy, or otherwise would prevent copy elision from occurring.
2020-12-03mouse_poller: Remove unused includesLioncash1-3/+1
2020-12-03mouse_input: Invert conditional in UpdateYuzuSettings()Lioncash1-4/+6
Allows the struct to be constructed in place.
2020-12-03mouse_input: Remove two casts and amend some formattingLioncash1-11/+14
Removes the use of two static casts and improves the readability of some vectors slightly.
2020-12-03mouse_input: Resolve a -Wdocumentation warningLioncash1-1/+1
2020-12-03mouse_input: Remove unused includesLioncash2-7/+3
2020-12-03audio_core: Make shadowing and unused parameters errorsLioncash29-154/+163
Moves the audio code closer to enabling warnings as errors in general.
2020-12-01Fix implicit conversion in mouse inputgerman1-6/+8
2020-11-30Disable web applet and warning when compiling for Linux on CIlat9nq1-0/+2
yuzu's web applet does not or barely reacts to user input while open in Linux. It can be closed via 'Exit Web Applet' on the menubar, however if yuzu is in fullscreen, this is effectively a softlock as the menubar cannot be accessed. This disables building yuzu with the web applet on the Linux CI target. In addition, this disables the QMessageBox warning about not having compiled yuzu with the web applet.
2020-11-29kernel: scheduler: Minor cleanup to remove duplicated code.bunnei2-46/+14
2020-11-29kernel: time_manager: Protect access with a mutex.bunnei2-1/+5
2020-11-29common: fiber: Use VirtualBuffer for stack memory.bunnei1-2/+5
- This will be aligned by default, and helps memory usage.
2020-11-29hle: kernel: thread: Remove unused "Running" state.bunnei3-21/+9
2020-11-29core: arm: Implement InvalidateCacheRange for CPU cache invalidation.bunnei12-16/+56
2020-11-29hle: kernel: time_manager: Avoid a crash on process exit.bunnei1-1/+4
2020-11-29hle: kernel: AddressArbiter: Remove unused code.bunnei2-9/+0
2020-11-29hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled.bunnei1-1/+2
2020-11-29common: fiber: Use boost::context instead of native fibers on Windows.bunnei3-116/+9
2020-11-29hle: kernel: multicore: Replace n-JITs impl. with 4 JITs.bunnei15-72/+124
2020-11-29Add missing types to NpadCommunicationModegerman1-0/+2
2020-11-28audio_core: Remove temp_mix_bufferChloe Marcec2-3/+1
It's unused and doesn't need to be initialized
2020-11-27CMakeLists: disable -Winvalid-offsetofcomex1-0/+1
This Clang warning complains when offsetof is used on a non-standard-layout type (i.e. any class using various C++ features), even though it works fine (and is not undefined behavior as of C++17).
2020-11-27tests: Fix warning about comparison between signed and unsignedcomex1-2/+2
2020-11-27core: Eliminate remaining usages of the global system instanceLioncash21-1593/+58
Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends.
2020-11-27savedata_factory: Eliminate usage of the global system instanceLioncash4-14/+22
Now there's only two meaningful instances left in core.
2020-11-27Stub set and get NpadCommunicationModegerman4-2/+50
2020-11-27service: Eliminate usages of the global system instanceLioncash222-907/+1221
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
2020-11-26codec: Fix `pragma GCC diagnostic pop` missing corresponding pushcomex1-0/+1
2020-11-26vk_shader_decompiler: Implement force early fragment testsReinUsesLisp6-11/+19
Force early fragment tests when the 3D method is enabled. The established pipeline cache takes care of recompiling if needed. This is implemented only on Vulkan to avoid invalidating the shader cache on OpenGL.
2020-11-26core: Reduce string copies in GetGameFileFromPath()Lioncash1-12/+22
Eliminates some minor string churn where applicable. Also eliminates an unnecessary vector copy.
2020-11-26Limit queue size to 10 framesameerj1-0/+4
Workaround for ZLA, which seems to decode and queue twice as many frames as it displays.
2020-11-26Implement full mouse supportgerman14-277/+793
2020-11-26Add multiple udp server supportgerman10-267/+420
2020-11-26Address PR feedbackameerj4-32/+33
remove some redundant moves, make deleter match naming guidelines. Co-Authored-By: LC <712067+lioncash@users.noreply.github.com>
2020-11-26common: Add Common::DivCeil and Common::DivCeilLog2ReinUsesLisp2-0/+27
Add an equivalent to 'Common::AlignUp(n, d) / d' and a log2 alternative.
2020-11-26input_common: ignore some Clang warnings after 5c4774e8ce1dJan Beich1-2/+2
error: unknown warning option '-Werror=unused-but-set-parameter'; did you mean '-Werror=unused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Werror=unused-but-set-variable'; did you mean '-Werror=unused-const-variable'? [-Werror,-Wunknown-warning-option]
2020-11-25Queue decoded frames, cleanup decodersameerj10-338/+227
2020-11-25cleanup unneeded comments and newlinesameerj1-6/+0
2020-11-25hid: Check if applet_resource exists in InitializeVibrationDeviceMorph1-2/+4
2020-11-25Refactor MaxwellToSpirvComparison. Use Common::BitCastameerj3-31/+34
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2020-11-25Address PR feedback from Reinameerj5-40/+31
2020-11-25vulkan_renderer: Alpha Test Culling Implementationameerj5-2/+76
Used by various textures in many titles, e.g. SSBU menu.
2020-11-25core: cpu_manager: Fix shutdown crash when closing before emulation starts.bunnei1-7/+17
2020-11-25frontend: yuzu (qt): Register a callback for ExecuteProgram.bunnei4-7/+38
2020-11-25service: am: Implement ExecuteProgram and required stubs.bunnei2-3/+34
- This is used by Super Mario 3D All-Stars.
2020-11-25core: loader: Implement support for loading indexed programs.bunnei12-26/+74
2020-11-24hle: services: Fix a crash with improper NVFlinger lifetime management. (#4977)bunnei17-100/+104
* hle: services: Fix a crash with improper NVFlinger lifetime management. - This crash would happen when attempting to shutdown yuzu early on in boot.
2020-11-24nvdrv, video_core: Don't index out of bounds when given invalid syncpoint IDcomex2-13/+20
- Use .at() instead of raw indexing when dealing with untrusted indices. - For the special case of WaitFence with syncpoint id UINT32_MAX, instead of crashing, log an error and ignore. This is what I get when running Super Mario Maker 2.
2020-11-24input_common: Fix typo in gc_poller.cpp with [[maybe_unused]].bunnei1-2/+2
2020-11-24nvservices: Reintroducee IoctlCtrlChloe Marcec24-91/+214
Fixes regression caused by #4907 which caused games like Breath of the Wild 1.0.0 not to boot.
2020-11-24input_common: Add more missing [[maybe_unused]] from #4927.bunnei3-4/+6
2020-11-24Fix warnings in core/frontend/input.h with [[maybe_unused]]bunnei1-1/+3
Fixes build break due to #4927
2020-11-23Overhaul EmuWindow::PollEvents to fix yuzu-cmd calling SDL_PollEvents off main threadcomex10-73/+68
EmuWindow::PollEvents was called from the GPU thread (or the CPU thread in sync-GPU mode) when swapping buffers. It had three implementations: - In GRenderWindow, it didn't actually poll events, just set a flag and emit a signal to indicate that a frame was displayed. - In EmuWindow_SDL2_Hide, it did nothing. - In EmuWindow_SDL2, it did call SDL_PollEvents, but this is wrong because SDL_PollEvents is supposed to be called on the thread that set up video - in this case, the main thread, which was sleeping in a busyloop (regardless of whether sync-GPU was enabled). On macOS this causes a crash. To fix this: - Rename EmuWindow::PollEvents to OnFrameDisplayed, and give it a default implementation that does nothing. - In EmuWindow_SDL2, do not override OnFrameDisplayed, but instead have the main thread call SDL_WaitEvent in a loop.
2020-11-23svc: Remove unnecessary [[maybe_unused]] tagLioncash1-1/+1
The parameter is used in this function, so this suppression isn't necessary.
2020-11-22input_common: Treat warnings as errorsLioncash8-10/+23
Migrates over warnings as errors for input common to match how the common library treats warnings as errors.
2020-11-21applets/controller: Use a pair of emulated controller index to controller typeMorph2-44/+96
2020-11-21configure_input_player: Use the npad style set to show the available controllersMorph2-55/+96
This will reduce the likelihood of an invalid controller type to be set within a game
2020-11-21gl_rasterizer: Remove warning of untested alpha testReinUsesLisp1-4/+0
Alpha test has been proven to only affect the first render target.
2020-11-20olsc: Move member initialization to after member functions.bunnei1-2/+2
2020-11-20async_shaders: emplace threads into the worker thread vectorLioncash1-2/+2
Same behavior, but constructs the threads in place instead of moving them.
2020-11-20async_shaders: Simplify implementation of GetCompletedWork()Lioncash1-2/+1
This is equivalent to moving all the contents and then clearing the vector. This avoids a redundant allocation.
2020-11-20async_shaders: Simplify moving data into the pending queueLioncash1-13/+8
2020-11-20async_shaders: std::move data within QueueVulkanShader()Lioncash1-2/+2
Same behavior, but avoids redundant copies. While we're at it, we can simplify the pushing of the parameters into the pending queue.
2020-11-20gl_rasterizer: Make floating-point literal a floatLioncash1-1/+1
Gets rid of an unnecessary expansion from float to double.
2020-11-20shader_bytecode: Make use of [[nodiscard]] where applicableLioncash1-73/+79
Ensures that all queried values are made use of.
2020-11-20shader_bytecode: Eliminate variable shadowingLioncash1-15/+17
2020-11-20common/bit_cast: Add function matching std::bit_cast without constexprReinUsesLisp2-0/+23
Add a std::bit_cast-like function archiving the same runtime results as the standard function, without compile time support. This allows us to use bit_cast while we wait for compiler support, it can be trivially replaced in the future.
2020-11-19hle: service: Stub OLSC Initialize and SetSaveDataBackupSettingEnabled functions.bunnei6-0/+91
- Used by Animal Cross: New Horizons v1.6.0 update, minimal stub gets this update working.
2020-11-19Modify rumble amplificationgerman772-4/+3
2020-11-19virtual_buffer: Do nothing on resize() calls with same sizesLioncash1-1/+6
Prevents us from churning memory by freeing and reallocating a memory block that would have already been adequate as is.
2020-11-18patch_manager: Remove usages of the global system instanceLioncash26-157/+259
With this, only 19 usages of the global system instance remain within the core library. We're almost there.
2020-11-18core: Remove unused private Init function for the System classLioncash2-16/+4
This isn't used, so it can be removed.
2020-11-18core: Make use of [[nodiscard]] with the System classLioncash4-85/+82
Given this is a central class, we should flag cases where the return value of some functions not being used is likely a bug.
2020-11-18configure_input_player: Use static qualifier for IsProfileNameValid()Lioncash1-1/+1
This is a static member function, so we don't need use an existing instance to call this function.
2020-11-18virtual_buffer: Add compile-time type-safety guarantees with VirtualBufferLioncash1-0/+6
VirtualBuffer makes use of VirtualAlloc (on Windows) and mmap() (on other platforms). Neither of these ensure that non-trivial objects are properly constructed in the allocated memory. To prevent potential undefined behavior occurring due to that, we can add a static assert to loudly complain about cases where that is done.
2020-11-18page_table: Allow page tables to be movedLioncash4-9/+30
Makes page tables and virtual buffers able to be moved, but not copied, making the interface more flexible. Previously, with the destructor specified, but no move assignment or constructor specified, they wouldn't be implicitly generated.
2020-11-18page_table: Add missing doxygen parameters to Resize()Lioncash1-0/+2
Resolves two -Wdocumentation warnings.
2020-11-18page_table: Remove unnecessary header inclusionsLioncash1-4/+0
Prevents indirect inclusions for these headers.
2020-11-17rasterizer_interface: Make use of [[nodiscard]] where applicableLioncash1-8/+9
2020-11-17render_base: Make use of [[nodiscard]] where applicableLioncash1-11/+11
2020-11-17gpu: Make use of [[nodiscard]] where applicableLioncash1-31/+35
2020-11-17Addressed changesChloe Marcec4-10/+13
2020-11-17audren: Make use of nodiscard, rework downmixing, release all buffersChloe Marcec13-102/+194
Preliminary work for upmixing & general cleanup. Fixes basic issues in games such as Shovel Knight and slightly improves the LEGO games. Upmixing stitll needs to be implemented. Audio levels in a few games will be fixed as we now use the downmix coefficients when possible instead of supplying our own
2020-11-16sdl_impl: Pump SDL Events at 1000 HzMorph1-1/+1
2020-11-16configure_input: Accommodate for the mouse input device engineMorph2-2/+18
2020-11-16hid: Reimplement Begin/EndPermitVibrationSessionMorph3-5/+17
Upon further investigation, these commands allow temporary vibrations even when the "Controller Vibration" system setting is disabled. As a result, vibrations are allowed when either the system setting or this flag is set to true. Therefore, we can only block vibrations when both flags are set to false.
2020-11-16controllers/npad: Load input devices on initMorph1-0/+2
2020-11-16configure_input: Update the input profiles for other player tabsMorph4-11/+38
2020-11-16general: Fix compiler warnings on linux and miscellaneous changesMorph12-22/+31
2020-11-16sdl_impl: Revert to the "old" method of mapping sticksMorph3-33/+29
Not all controllers have a SDL_GameController binding. This caused controllers not present in the SDL GameController database to have buttons mapped instead of axes. Furthermore, it was not possible to invert the axes when it could be useful such as emulating a horizontal single joycon or other potential cases. This allows us to invert the axes by reversing the order of mapping (vertical, then horizontal).
2020-11-16applets/controller: Change the input button to create input profilesMorph10-100/+117
Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-11-16controllers/npad: Remove the old vibration filterMorph4-65/+64
Previously we used a vibration filter that filters out amplitudes close to each other. It turns out there are cases where this results into vibrations that are too inaccurate. Remove this and move the 100Hz vibration filter (Only allowing a maximum of 100 vibrations per second) from sdl_impl to npad when enable_accurate_vibrations is set to false.
2020-11-16input: Disconnect a controller prior to connecting a new oneMorph2-50/+73
Some games do not respond to a change in controller type if 1) The controller is not disconnected prior to being reconnected and/or 2) The controller is reconnected instantly after being disconnected. Since it is not possible to change controllers instantly on hardware and requiring a disconnect prior to connecting a new one, we should emulate this as well with a small delay, fixing the aforementioned issue.
2020-11-16hid: Implement InitializeVibrationDevice and IsVibrationDeviceMountedMorph3-12/+66
2020-11-16input_common: Add VibrationDevice and VibrationDeviceFactoryMorph19-101/+327
A vibration device is an input device that returns an unsigned byte as status. It represents whether the vibration device supports vibration or not. If the status returns 1, it supports vibration. Otherwise, it does not support vibration.
2020-11-16configure_input: Add per-player vibrationMorph16-28/+730
Allows for enabling and modifying vibration and vibration strength per player. Also adds a toggle for enabling/disabling accurate vibrations. Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-11-16settings: Remove global vibration strength modifierMorph9-19/+1
This will be replaced in favor of per-player vibration strength modifiers.
2020-11-16hid: Mark Begin/EndPermitVibrationSession as stubsMorph3-18/+4
The implementation of these commands seem incomplete and causes rumble in Super Mario Party to stop working since only EndPermitVibrationSession is called. Thus, these are better off being marked as a stub until this can be investigated more thoroughly.
2020-11-16controllers/npad: Send an empty vibration on destruction/deactivationMorph3-22/+38
This stops all controllers from continuously vibrating when emulation is stopped.
2020-11-16hid: Stub IsVibrationDeviceMountedMorph2-1/+23
- Used in Super Mario Odyssey
2020-11-16controllers/npad: Add heuristics to reduce rumble state changesMorph3-35/+72
Sending too many state changes in a short period of time can cause massive performance issues. As a result, we have to use several heuristics to reduce the number of state changes to minimize/eliminate this performance impact while maintaining the quality of these vibrations as much as possible.
2020-11-16configure_input: Hook up the vibration percentage spinboxMorph11-3/+26
This allows setting the vibration strength percentage anywhere from 1% to 100%. Also hooks up the remaining motion button and checkbox in the Controller Applet.
2020-11-16controllers/npad: Stop games from vibrating incorrect controllersMorph1-0/+10
Fixes vibration in 1-2 Switch and potentially other games where they would vibrate both players' joycons at the same time.
2020-11-16hid: Fix controller rumble based on new researchMorph3-43/+69
This fixes the issue where rumble is only sent to the first controller. Now, individual controllers can receive their own rumble commands.
2020-11-16hid: Pop a struct of parameters instead of popping individual parametersMorph1-103/+237
Some parameters need to be doubleword aligned due to the presence of the applet_resource_user_id. Previously, this value was invalid in many commands where it was not doubleword aligned when popped.
2020-11-16hid: Reorder all HID commandsMorph5-217/+232
Reorders all HID commands in command id order.
2020-11-16hid: Implement GetVibrationDeviceInfoMorph2-3/+39
The first u32 describes the vibration device type which is a Linear Resonant Actuator used in Nintendo Switch controller hardware. The second u32 describes the vibration device position, in this case distinguishing between left and right vibration actuators. Pro Controllers have 2 LRAs each that can vibrate independently of each other, which means they have 2 distinct vibration device handles to distinguish between the two actuators. Similarly for joycons, the left joycon can be distinguished from the right joycon through the vibration device handle since each joycon has 1 LRA.
2020-11-16hid: Stub InitializeVibrationDeviceMorph1-3/+11
2020-11-16controllers/npad: Rename NPadType to NpadStyleSetMorph3-9/+9
This more accurately represents the underlying type and avoids confusion with NpadType
2020-11-16controllers/npad: Add DeviceHandle structMorph1-27/+50
A DeviceHandle describes a vibration device or six-axis sensor based on the npad type, npad id, and device index/position
2020-11-16configure_input_player: Change "Defaults" button behaviorMorph2-35/+30
RestoreDefaults() now restores the selected devices' mappings using UpdateMappingWithDefaults(). This allows us to move the keyboard mapping from RestoreDefaults() to UpdateMappingWithDefaults().
2020-11-16settings: Preparation for per-game input settingsMorph19-115/+167
2020-11-16udp/client: Reduce testing period to 5 secondsMorph1-1/+1
2020-11-16config: Migrate config files into config/customMorph4-21/+61
Co-authored-by: lat9nq <lat9nq@virginia.edu>
2020-11-16controllers/npad: Connect a controller on init if none are connectedMorph2-1/+15
2020-11-16applets/controller: Auto accept a valid single player configurationMorph3-14/+24
2020-11-16bootmanager: Allow mouse clicks only if touch is disabledMorph1-3/+13
Previously mouse clicks will not register when touch is disabled. This rectifies that and allows mouse clicks to be mapped to other buttons if the touchscreen is disabled.
2020-11-16input_profiles: Implement input profilesMorph13-130/+509
2020-11-16configure_input_player: Implement input exclusivity and persistenceMorph4-138/+205
With this, the "Input Devices" combobox should accurately reflect the input device being used and disallows inputs from other input devices unless the input device is set to "Any".
2020-11-16ui/themes: Cleanup UIMorph13-397/+263
2020-11-15motion_input: Mark constructor as explicitLioncash1-1/+1
2020-11-15motion_input: Mark member functions as [[nodiscard]] where applicableLioncash1-10/+11
2020-11-11maxwell_3d: Use insert instead of loop push_backReinUsesLisp1-3/+1
This reduces the overhead of bounds checking on each element. It won't reduce the cost of allocation because usually this vector's capacity is usually large enough to hold whatever we push to it.
2020-11-11maxwell_3d: Move code to separate functionsReinUsesLisp2-151/+124
Deduplicate some code and put it in separate functions so it's easier to understand and profile.
2020-11-10fix minor clang errorgerman1-1/+1
2020-11-10Addressed issuesChloe Marcec10-17/+86
2020-11-10core: Make nvservices more standardizedChloe Marcec26-903/+1156
2020-11-10bootmanager: Address review commentslat9nq1-12/+16
Changes QMessageBox usages to warnings, as the problems they bring to light are being safely handled by the application and do not warrant something of the "critical" level. Changes LOG_CRITICAL to LOG_ERROR for the same reason. Preferring ERROR to WARNING as yuzu is denying loading of any guest applications after checking for these conditions. Moved logging the GL_RENDERER string into GetUnsupportedGLExtensions() to make more clear that unsupported extensions were already being logged. Makes placement of the logs easier to understand later, as well.
2020-11-10bootmanager: Log and show GL_RENDERER string when GPU is insufficientlat9nq1-3/+19
Changes the first message to not include the OpenGL version, as the error is caused by OpenGL failing to load. Adds a new check for OpenGL version 4.3. This will display a message with a similar error as well as the GL_RENDERER string. Adds a CRITICAL log message when triggered. This prevents a crash with yuzu trying to use older OpenGL versions. Modifies the unsupported extension message to output the GL_RENDERER string in the message, as well as logging the string.
2020-11-08ipc_helpers: Remove usage of the global system instanceLioncash16-7/+23
Resolves numerous deprecation warnings throughout the codebase due to inclusion of this header. Now building core should be significantly less noisy (and also relying on less global state). This also uncovered quite a few modules that were relying on indirect includes, which have also been fixed.
2020-11-08cpu_interrupt_handler: Mark move contructor/assignment as deletedLioncash1-2/+2
The interrupt handler contains a std::atomic_bool, which isn't copyable or movable, so the special move member functions will always be deleted, despite being defaulted. This can resolve warnings on clang and GCC.
2020-11-08Allow to dial any angle with digital joystickgerman1-19/+103
2020-11-08applets: Rename LibraryAppletVersion to ControllerAppletVersionMorph2-15/+15
2020-11-08applets/controller: Pop normal data for StrapGuide and FirmwareUpdateMorph2-6/+19
2020-11-08applets/controller: Introduce additional checks for mode and callerMorph2-5/+39
Some games like Cave Story+ set invalid values in the ControllerPrivateArg's mode and caller fields. Use other fields to determine the appropriate mode and caller should either or both fields be invalid.
2020-11-08applets/controller: Add ControllerUpdateFirmwareArg structMorph1-0/+7
2020-11-07settings: log value of CPU_Accuracylat9nq1-0/+1
2020-11-07video_core: dma_pusher: Remove integrity check on command lists.bunnei3-29/+1
- This seems to cause softlocks in Breath of the Wild.
2020-11-07hle: service: caps_u: Stub GetAlbumFileList3AaeAruid.bunnei2-9/+17
- This works similiar to GetAlbumContentsFileListForApplication. - Since we do not implement the album, this should be safe to stub for now. - Used by Super Smash Bros. Ultimate (newer updates) in World of Light.
2020-11-07common/fiber: Move all member variables into impl classLioncash2-89/+86
Hides all of the implementation details for users of the class. This has the benefit of reducing includes and also making the fiber classes movable again.
2020-11-06settings: Simplify initializer of resolution factorLioncash1-1/+1
This can use a braced initializer to accomplish the same thing with less code.
2020-11-05General: Fix clang buildLioncash4-7/+14
Allows building on clang to work again
2020-11-04core/settings: Move configuring_global behind an APILioncash9-39/+50
Rather than have directly modified global state here, we can make it an implementation detail and have an interface that changes are queried through.
2020-11-04core: Remove usage of unicornLioncash11-418/+15
Unicorn long-since lost most of its use, due to dynarmic gaining support for handling most instructions. At this point any further issues encountered should be used to make dynarmic better. This also allows us to remove our dependency on Python.
2020-11-02common: Enable warnings as errorsLioncash9-31/+49
Cleans up common so that we can enable warnings as errors.
2020-11-02nvdec: Make use of [[nodiscard]] where applicableLioncash7-16/+16
Prevents bugs from occurring where the results of a function are accidentally discarded
2020-11-01fixup! hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements.bunnei2-3/+11
2020-11-01core: Initialize GPU before services.bunnei1-4/+6
2020-11-01 hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements.bunnei3-46/+106
- Refactor so that SubmitGPFIFO and KickoffPB use shared functionality. - Implement add_wait and add_increment flags.
2020-11-01video_core: dma_pusher: Add support for integrity checks.bunnei2-0/+27
- Log corrupted command lists, rather than crash.
2020-11-01video_core: dma_pusher: Add support for prefetched command lists.bunnei2-25/+52
2020-11-01service: hle: nvflinger: Fix potential shutdown crash when GPU is destroyed.bunnei1-0/+4
2020-11-01video_core: gpu: Implement WaitFence and IncrementSyncPoint.bunnei3-28/+70
2020-11-01hle service: nvdrv: nvhost_ctrl: Update to use SyncpointManager.bunnei3-9/+31
2020-11-01hle service: nvdrv: Update to instantiate SyncpointManager.bunnei2-5/+18
2020-11-01hle: service: nvdrv: Implement SyncpointManager, to manage syncpoints.bunnei4-1/+127
2020-11-01Rename to align with switchbrew and remove gpu function (#4714)Levi Behunin2-16/+10
* Rename to align with switchbrew * Rename to align with switchbrew and remove gpu function that checks if clearing should be done.
2020-10-31hle: service: ldr: Implement UnloadNrr.bunnei1-1/+15
- Used by Final Fantasy X/X-2 HD Remaster.
2020-10-30CMakeLists: Resolve MSVC build failuresLioncash1-1/+0
Prevents the compiler tripping up about Windows headers.
2020-10-30video_core: unbreak -Werror in NVDEC with ClangJan Beich1-1/+1
src/core/hle/service/nvdrv/devices/nvhost_nvdec_common.cpp:41:15: error: unused variable 'OutOfMemory' [-Werror,-Wunused-const-variable] constexpr u32 OutOfMemory{static_cast<u32>(-12)}; ^
2020-10-30General: Catch more expressions with no effect on MSVCLioncash1-0/+4
MSVC lets us fine-tune catching expressions with no side-effects a little more.
2020-10-30General: Make ignoring a discarded return value an errorLioncash3-6/+17
Allows our CI to catch more potential bugs. This also removes the [[nodiscard]] attribute of IOFile's Open member function. There are cases where a file may want to be opened, but have the status of it checked at a later time.
2020-10-30common/stream: Be explicit with copy and move operatorsLioncash1-3/+9
2020-10-30vp9: Be explicit with copy and move operatorsLioncash1-0/+18
It's deprecated in the language to autogenerate these if the destructor for a type is specified, so we can explicitly specify how we want these to be generated.
2020-10-30vp9: Mark functions with [[nodiscard]] where applicableLioncash2-13/+13
Prevents values from mistakenly being discarded in cases where it's a bug to do so.
2020-10-30vp9: Provide a default initializer for "hidden" memberLioncash1-1/+1
The API of VP9 exposes a WasFrameHidden() function which accesses this member. Given the constructor previously didn't initialize this member, it's a potential vector for an uninitialized read. Instead, we can initialize this to a deterministic value to prevent that from occurring.
2020-10-30vp9: Make some member functions internally linkedLioncash2-58/+54
These helper functions don't directly modify any member state and can be hidden from view.
2020-10-30General: Resolve a few missing initializer warningsLioncash5-4/+24
Resolves a few -Wmissing-initializer warnings.
2020-10-29async_shaders: Increase Async worker thread count for 8+ thread cpusameerj1-8/+9
Adds 1 async worker thread for every 2 available threads above 8
2020-10-29kernel/process: Add missing <ctime> includeMorph1-0/+1
Fixes compilation on MSVC
2020-10-29web_service: follow-up fix to #4842 ...liushuyu1-5/+0
* The web_service http request is now fixed on Windows (R) platform. * The issue is due to a complicated race-condition in `httplib`, a detailed explanation is available at https://github.com/yhirose/cpp-httplib/pull/701 * A pending Pull Request on `httplib` has been applied to remedy the said race-condition. * The socket availability check is removed due to a behavioral chice of `httplib` that a socket will not be created before any actual request is sent.
2020-10-29Add hotplug, rumble and fix 3rd party adapters for the GC adaptergerman3-303/+433
2020-10-29web_service: web_backend: Handle socket errors with GenericRequest.bunnei1-0/+11
- Fixes a shutdown crash when we try to submit telemetry if there is a service issue.
2020-10-29video_core: cdma_pusher: Add missing LOG_DEBUG field in ExecuteCommand.bunnei1-1/+1
2020-10-28shader: Partially implement texture cube array shadowReinUsesLisp3-25/+37
This implements texture cube arrays with shadow comparisons but doesn't fix the asserts related to it. Fixes out of bounds reads on swizzle constructors and makes them use bounds checked ::at instead of the unsafe operator[].
2020-10-28shader/arithmetic: Implement FCMP immediate + register variantReinUsesLisp2-1/+4
Trivially add the encoding for this.
2020-10-28video_core: Enforce -Wredundant-move and -Wpessimizing-moveReinUsesLisp4-4/+5
Silence three warnings and make them errors to avoid introducing more in the future.
2020-10-28video_core: Enforce -Werror=type-limitsReinUsesLisp2-1/+2
Silences one warning and avoids introducing more in the future.
2020-10-28common/fiber: Take shared_ptr<Fiber> by copy in YieldToReinUsesLisp2-3/+3
YieldTo does not intend to modify the passed shared_ptrs. Pass it by copy to keep a reference count while this function executes.
2020-10-28tests: Fix data race in fibers testReinUsesLisp1-31/+40
Previous to this commit, the tests were using operator[] from unordered_map to query elements but this silently inserts empty elements when they don't exist. If all threads were executed without concurrency, this wouldn't be an issue, but the same unordered_map could be written from two threads at the same time. This is a data race and makes some previously inserted elements invisible for a short period of time, causing them to insert and return an empty element. This default constructed element (a zero) was used to index an array of fibers that asserted when one of them was nullptr, shutting the test session off. To address this issue, lock on thread id reads and writes. This could be a shared mutex to allow concurrent reads, but the definition of std::this_thread::get_id is fuzzy when using non-standard techniques like fibers. I opted to use a standard mutex. While we are at it, fix the included headers.
2020-10-28service: Update function tablesLioncash5-1/+7
Updates function tables according to info on SwitchBrew.
2020-10-27web_backend: fix a regression introduced in 39c8d18liushuyu2-20/+2
* A regression was in 39c8d18 and token verification function was broken. * The reason being `httplib` now requires OpenSSL 1.1+ API while LibreSSL 2.x provided OpenSSL 1.0 compatible API. * The bundled LibreSSL has been updated to 3.2.2 so it now provides OpenSSL 1.1 compatible API now. * Also the path hint has been added so that it will find the correct path to the CA certs on *nix systems. * An option is provided so that *nix system distributions/providers can use their own SSL implementations when compiling Yuzu/Citra to (hopefully) complies with their maintenance guidelines. * LURLParse is also removed since `httplib` can handle `scheme:host:port` string itself now.
2020-10-27sync_manager: Amend parameter order of calls to SyncptIncr constructorLioncash2-9/+9
Corrects some cases where the arguments would be incorrectly swapped.
2020-10-27h264: Make WriteUe take a u32Lioncash2-7/+8
Enforces the type of the desired value in calling code.
2020-10-27vp9: std::move buffer within ComposeFrameHeader()Lioncash1-1/+1
We can move the buffer here to avoid a heap reallocation
2020-10-27vp9: Remove dead codeLioncash1-6/+0
2020-10-27vp9: Join declarations with assignmentsLioncash1-7/+8
2020-10-27vp9: Remove pessimizing movesLioncash1-2/+2
The move will already occur without std::move.
2020-10-27vp9: Resolve variable shadowingLioncash1-4/+4
2020-10-27nvdec: Tidy up header includesLioncash13-62/+59
Prevents a few unnecessary inclusions.
2020-10-27yuzu: settings: Enable multicore, asynch GPU, and assembly shaders by default.bunnei3-11/+11
- In general, this is now the preferred settings for most games. # Conflicts: # src/yuzu/configuration/config.cpp
2020-10-27hle/kernel: Remove unused registered_core_threads to fix data racesReinUsesLisp1-5/+0
This member was only used on asserts and it triggered data races. Remove it to fix them.
2020-10-27video_core: NVDEC Implementationameerj50-310/+3909
This commit aims to implement the NVDEC (Nvidia Decoder) functionality, with video frame decoding being handled by the FFmpeg library. The process begins with Ioctl commands being sent to the NVDEC and VIC (Video Image Composer) emulated devices. These allocate the necessary GPU buffers for the frame data, along with providing information on the incoming video data. A Submit command then signals the GPU to process and decode the frame data. To decode the frame, the respective codec's header must be manually composed from the information provided by NVDEC, then sent with the raw frame data to the ffmpeg library. Currently, H264 and VP9 are supported, with VP9 having some minor artifacting issues related mainly to the reference frame composition in its uncompressed header. Async GPU is not properly implemented at the moment. Co-Authored-By: David <25727384+ogniK5377@users.noreply.github.com>
2020-10-27kernel: Use the current time as the default RNG seedlat9nq1-1/+1
Use the current time, not zero, as the default RNG seed.
2020-10-27controller: Pass ControllerParameters by reference in ReconfigureControllers()Lioncash4-7/+9
Prevents unnecessary copies and heap reallocations from occurring.
2020-10-27hle: services: TimeZoneContentManager: This can be made explicit.bunnei1-1/+1
2020-10-27core: cpu_manager: Add missing call to MicroProfileOnThreadExit().bunnei1-0/+2
- Fixes an occasional crash when trying to launch subsequent games.
2020-10-25general: Use template deduction guides for lock_guardLioncash2-2/+2
Same behavior, less code.
2020-10-25controller: Convert led_patterns integer literals to bool literalsLioncash1-9/+9
'bool' isn't always guaranteed to be the same size as an int, so this can technically cause truncation warnings if we support other platforms.
2020-10-25applets/profile_select: Resolve a warning in exec()Morph1-1/+1
Resolves a warning where not all control paths return a value.
2020-10-22Don't ask for profile when there's only one.Kewlan3-16/+20
2020-10-22core: Fix clang build pt.3Lioncash4-16/+6
Should finally resolve building with clang.
2020-10-21sdl_impl: Fix controller reconnection issuesMorph1-85/+84
It turns out that after a controller is disconnected, there is a chance that events from the previous controller are sent/processed after it has been disconnected. This causes the previously disconnected controller to reappear as connected due to GetSDLJoystickBySDLID() emplacing this controller back to the map. Fix this by only returning an SDLJoystick if and only if it exists in the map.
2020-10-21core: Fix clang build pt.2Lioncash2-4/+10
Resolves the clang build issue in a more unintrusive way.
2020-10-21Revert "core: Fix clang build"bunnei104-904/+665
2020-10-21video_core: Conditially activate relevant compiler warningsLioncash1-2/+4
These compiler flags aren't shared with clang, so specifying these flags unconditionally can lead to a bit of warning spam. While we're in the area, we can also enable -Wunused-but-set-parameter given this is almost always a bug.
2020-10-21kernel: Fix build with recent compiler flag changesLioncash1-4/+8
This slipped through the cracks due to another change being merged before the compiler flag changes.
2020-10-20configure_input_player: Fix modifier buttonsMorph3-25/+23
Fix them for real this time, now they finally work.
2020-10-20gl_arb_decompiler: Implement robust buffer operationsReinUsesLisp3-33/+54
This emulates the behavior we get on GLSL with regular SSBOs with a pointer + length pair. It aims to be consistent with the crashes we might get. Out of bounds stores are ignored. Atomics are ignored and return zero. Reads return zero.
2020-10-20Added remaining paramsDavid Marcec1-1/+4
2020-10-20nifm: GetAppletInfo stubDavid Marcec1-1/+8
Fixes crash for Catherine Full Body
2020-10-18core: Add boxcat sources with target_sourcesLioncash1-7/+7
Same behavior, minus a script variable.
2020-10-18core: Fix clang buildLioncash104-665/+904
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
2020-10-17mii/manager: Make use of unused lower bound in GetRandomValue()Lioncash1-1/+1
Previously, the lower bound wasn't being used and zero was being used as the lower bound every time this function was called. This affects the outcome of some of the randomized entries a little bit, for example, the lower-bound for beard and mustache flags was supposed to be 1, not 0. Aside from these cases, the bug didn't affect anything else.
2020-10-17service: bcat: Check client connection before interacting with socket.bunnei1-0/+10
- Fixes a crash when BCAT service is offline.
2020-10-16udp/client: Make use of designated initializers in TestCommunication()Lioncash1-2/+5
Same behavior, but makes the callback list nicer to look at.
2020-10-16udp/client: Take std::function by const reference with TestCommunication()Lioncash2-5/+5
Avoids redundant copies.
2020-10-16sdl_impl: Erase the SDLJoystick entry after removing a controllerMorph1-15/+13
Previously, disconnecting a controller still leaves a null SDLJoystick entry within the vector of SDLJoysticks mapped by GUID. When a DirectInput device of the same GUID is reconnected, it adds that device to a new port causing non-detectable input. Furthermore, opening the "Configure" menu would cause yuzu to crash since it first tries to resolve the name of a null SDLJoystick entry that was not removed. Resolve this by properly erasing the SDLJoystick entry from the vector.
2020-10-16input_common/CMakeLists: Make some warnings errorsLioncash19-203/+306
Makes the input_common code warnings consistent with the rest of the codebase.
2020-10-15service: acc: Stub IManagerForApplication::StoreOpenContext.bunnei1-1/+7
- Used by Super Mario 3D All-Stars.
2020-10-14hle: service: vi: Implement BufferQueue::CancelBuffer.bunnei3-14/+53
- This is used by Super Mario 3D All-Stars.
2020-10-13kernel: Implement host thread register methods without lockingReinUsesLisp1-28/+38
Locks on GetCurrentHostThreadID were causing performance issues according to Visual Studio's profiler. It was consuming twice the time as arm_interface.Run(). The cost was not in the function itself but in the lockinig it required. Reimplement these functions using atomics and static storage instead of an unordered_map. This is a side effect to avoid locking and using linked lists for reads. Replace unordered_map with a linear search.
2020-10-13audio_core/CMakeLists: Make warnings consistent with coreLioncash6-8/+17
Normalizes the warnings shared between audio_core and core.
2020-10-13core/CMakeLists: Make some warnings errorsLioncash30-146/+144
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
2020-10-13vk_graphics_pipeline: Manage primitive topology as fixed stateReinUsesLisp6-26/+7
Vulkan has requirements for primitive topologies that don't play nicely with yuzu's. Since it's only 4 bits, we can move it to fixed state without changing the size of the pipeline key. - Fixes a regression on recent Nvidia drivers on Fire Emblem: Three Houses.
2020-10-13filesystem: Fix CreateDirectory and DeleteFileMorph1-2/+3
Add a check if dir is nullptr (does not exist) Fixes save game creation in Hades
2020-10-13service: time: Update current time with changes to RTC setting.bunnei9-198/+341
- This can be used to advance time, e.g. for Pokemon Sword/Shield pokejobs.
2020-10-13hle: service: nvdrv: Implement nvhost_as_gpu::FreeSpace.bunnei2-0/+25
- This is used by Super Mario 3D All-Stars.
2020-10-09video_core: Enforce -Wclass-memaccessReinUsesLisp2-7/+7
2020-10-09vk_device: Block VK_EXT_extended_dynamic_state for RDNA devicesgoldenx861-0/+24
RDNA devices seem to crash when using VK_EXT_extended_dynamic_state in the latest 20.9.2 proprietary Windows drivers. As a workaround, for now we block device names corresponding to current RDNA released products.
2020-10-08shader/texture: Implement CUBE texture type for TMML and fix arraysReinUsesLisp1-19/+22
TMML takes an array argument that has no known meaning, this one appears as the first component in gpr8 followed by s, t and r. Skip this component when arrays are being used. Also implement CUBE texture types. - Used by Pikmin 3: Deluxe Demo.
2020-10-07renderer_vulkan/wrapper: Fix physical device sortingReinUsesLisp1-13/+35
The old code had a sort function that was invalid and it didn't work as expected when the base vector had a different order (e.g. renderdoc was attached). This sorts devices as expected and fixes a debug assert on MSVC.
2020-10-05Address commentsgerman2-40/+40
2020-10-04Add compatibility with only accelerometer and auto calibrate for driftgerman2-12/+106
2020-10-03video_core: Enforce -Wunused-variable and -Wunused-but-set-variableReinUsesLisp3-4/+7
2020-10-02Only use inputs corresponding to controller typegerman1-49/+58
2020-09-30Stubbed EnableSixAxisSensorFusiongerman2-1/+15
2020-09-30caps_c: Stub SetShimLibraryVersionMorph2-1/+18
- Used by caps_su SetShimLibraryVersion
2020-09-30caps_u: Stub SetShimLibraryVersionMorph2-2/+14
- Used in Super Smash Bros. Ultimate
2020-09-30caps_su: Properly stub SetShimLibraryVersionMorph1-1/+6
2020-09-30hid: Stub HomeButtonInputProtection service commandsMorph4-2/+50
- Used in 1-2 Switch. Given that we do not emulate the functionality of the home button yet, we can stub this for now.
2020-09-30Reduce the "shake" requirements when configuring UDP.Lukas Senionis1-2/+6
2020-09-30Remove ext_extended_dynamic_state blacklistMatías Locatti1-8/+0
Latest AMD 20.9.2 driver fixed this, there's no reason to keep it blocked, as the previous stable signed driver release doesn't include the extension.
2020-09-30common/wall_clock: Add virtual destructorsReinUsesLisp3-2/+4
From -fsanitize=address, this code wasn't calling the proper destructor. Adding virtual destructors for each inherited class and the base class fixes this bug. While we are at it, mark the functions as final.
2020-09-29qt/game_list: Give GameListSearchField::KeyReleaseEater a parentReinUsesLisp2-3/+4
This fixes a memory leak as KeyReleaseEater's destructor was never called.
2020-09-29First implementation of controller rumblegerman5-14/+63
2020-09-29CMakeLists: use system zstd on Linuxlat9nq1-1/+6
From what I understand, this tells CMake to use the system, not conan, version of zstd. Required to build on the coming MinGW Docker container.
2020-09-29CMakeLists: fix for finding zstd on linux-mingwlat9nq1-1/+1
2020-09-26main: Allow applets to display on top while fullscreenMorph1-6/+8
Using the Qt::WindowStaysOnTopHint flag allows these dialogs to show up on top while running in fullscreen. However, if yuzu goes out of focus (by alt-tabbing or otherwise), this flag does not seem to have an effect.
2020-09-26core: Mark GetInstance() as deprecatedLioncash1-1/+1
This way it's obvious that this function shouldn't be used in any future code.
2020-09-26frontend/controller: Eliminate dependency on the global system instanceLioncash3-5/+14
2020-09-26Add random motion input to keyboardgerman4-0/+65
2020-09-26Add random motion input to SDLgerman5-5/+230
2020-09-26command_generator: Make lookup table static constexprLioncash1-2/+3
Allows compilers to elide needing to push these values on the stack every time the function is called.
2020-09-25vk_stream_buffer: Fix initializing Vulkan with NVIDIA on Linuxlat9nq1-1/+2
The previous fix only partially solved the issue, as only certain GPUs that needed 9 or less MiB subtracted would work (i.e. GTX 980 Ti, GT 730). This takes from DXVK's example to divide `heap_size` by 2 to determine `allocable_size`. Additionally tested on my Quadro K4200, which previously required setting it to 12 to boot.
2020-09-25behavior_info: Fix typo Renerer -> RendererLioncash2-6/+6
2020-09-25cubeb_sink: Use static_cast instead of reinterpret_cast in DataCallback()Lioncash1-2/+2
Conversions from void* to the proper data type are well-defined and supported by static_cast. We don't need to use reinterpret_cast here.
2020-09-25codec: Make lookup table static constexprLioncash2-3/+4
Allows compilers to elide needing to push these values on the stack every time the function is called.
2020-09-25audio_core: Remove unnecessary inclusionsLioncash5-7/+2
Same behavior, but removes header dependencies where they don't need to be.
2020-09-25audio_core: Resolve sign conversion warningsLioncash8-25/+34
While were at it, we can also enable sign conversion warnings and other common warnings as errors to prevent these from creeping back into the codebase.
2020-09-25effect_context: Make use of explicit where applicableLioncash1-13/+12
While we're at it we can make the destructor of the base class virtual to ensure that any polymorphism issues never occur.
2020-09-25vk_command_pool: Move definition of Pool into the cpp fileLioncash2-4/+6
Allows the implementation details to be changed without recompiling any files that include this header.
2020-09-25vk_command_pool: Make use of override on destructorLioncash1-1/+1
2020-09-25vk_command_pool: Add missing header guardLioncash1-0/+2
2020-09-25More forgetting... duhLevi Behunin1-2/+2
2020-09-25service: Restore "unused" functionLioncash1-0/+17
Turns out this function is actually used, but within a trace log.
2020-09-25Forgot to apply suggestion here as wellLevi Behunin1-1/+1
2020-09-25Address CommentsLevi Behunin3-25/+34
2020-09-25Start of Integer flags implementationLevi Behunin3-3/+50
2020-09-24submission_package: Fix updates integrated into cartridge images.Morph1-3/+22
2020-09-24arithmetic_integer_immediate: Make use of std::move where applicableLioncash1-16/+19
Same behavior, minus any redundant atomic reference count increments and decrements.
2020-09-24video_core: Fix instances where msbuild always regenerated host shadersReinUsesLisp2-12/+7
When HEADER_GENERATOR was included in the DEPENDS section of custom commands, msbuild assumed this was always modified. Changing this file is not common so we can remove it from there.
2020-09-24Use different timing for motiongerman5-76/+157
2020-09-23shader/registry: Silence a -Wshadow warningLioncash2-5/+5
2020-09-23shader/registry: Remove unnecessary namespace qualifiersLioncash1-5/+3
Using statements already make these unnecessary.
2020-09-23shader/registry: Make use of designated initializers where applicableLioncash1-17/+19
Same behavior, less repetition.
2020-09-23memory: Resolve a -Wdocumentation warningLioncash1-1/+1
memory doesn't exist as a parameter any more.
2020-09-23install_dialog: Make use of [[nodiscard]] where applicableLioncash1-2/+2
Allows the compiler to warn against cases where the return value isn't used (which would be a bug).
2020-09-23install_dialog: Remove unused function prototypeLioncash1-1/+0
This function doesn't have an implementation, so it can be removed to prevent others from unintentionally using it.
2020-09-23game_list: Make game list function naming consistentLioncash3-36/+45
Makes the naming consistent with the rest of the functions that are present.
2020-09-23game_list: Eliminate redundant argument copiesLioncash2-16/+22
Several functions can be taken by const reference to avoid copies
2020-09-23control_flow: emplace elements in place within TryQuery()Lioncash1-6/+6
Places data structures where they'll eventually be moved to to avoid needing to even move them in the first place.
2020-09-23control_flow: Make use of std::move in InsertBranch()Lioncash1-7/+8
Avoids unnecessary atomic increments and decrements.
2020-09-22General: Make use of std::nullopt where applicableLioncash17-59/+60
Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals.
2020-09-22ips_layer: Eliminate a redundant copy in Parse()Lioncash1-2/+4
Prevents unnecessary copying of the line being parsed.
2020-09-21acc: Stub LoadOpenContextMorph3-1/+13
This is used in multiple games such as: - Clubhouse Games: 51 Worldwide Classics - Grandia HD Collection - XCOM 2 Collection - Baldur's Gate 1/2 - Dr Kawashima's Brain Training - Super Mario 3D All-Stars
2020-09-20renderer_opengl: Remove emulated mailbox presentationReinUsesLisp13-360/+35
Emulated mailbox presentation was causing performance issues on Nvidia's OpenGL driver. Remove it.
2020-09-19vk_query_cache: Hack counter destructor to avoid reserving queriesReinUsesLisp1-1/+10
This is a hack to destroy all HostCounter instances before the base class destructor is called. The query cache should be redesigned to have a proper ownership model instead of using shared pointers. For now, destroy the host counter hierarchy from the derived class destructor.
2020-09-19renderer_vulkan: Make unconditional use of VK_KHR_timeline_semaphoreReinUsesLisp42-814/+638
This reworks how host<->device synchronization works on the Vulkan backend. Instead of "protecting" resources with a fence and signalling these as free when the fence is known to be signalled by the host GPU, use timeline semaphores. Vulkan timeline semaphores allow use to work on a subset of D3D12 fences. As far as we are concerned, timeline semaphores are a value set by the host or the device that can be waited by either of them. Taking advantange of this, we can have a monolithically increasing atomic value for each submission to the graphics queue. Instead of protecting resources with a fence, we simply store the current logical tick (the atomic value stored in CPU memory). When we want to know if a resource is free, it can be compared to the current GPU tick. This greatly simplifies resource management code and the free status of resources should have less false negatives. To workaround bugs in validation layers, when these are attached there's a thread waiting for timeline semaphores.
2020-09-18Add automap feature for GC adaptergerman3-1/+103
2020-09-18fermi_2d: Make use of designated initializersLioncash2-8/+8
Same behavior, less repetition. We can also ensure all members of Config are initialized.
2020-09-18hid: Implement Get/SetNpadHandheldActivationModeMorph3-5/+28
- Used in Clubhouse Games: 51 Worldwide Classics
2020-09-18configure_input_player: Fixes motion mapping using ConfigureButtonClickMorph1-5/+8
2020-09-18am: Stub GetPreviousProgramIndexMorph2-1/+11
- Used in Super Mario 3D All-Stars
2020-09-18configure_input_player: Re-add "Clear" context menu optionMorph2-31/+66
The context menu was removed in Mjölnir Part 1 as part of the input rewrite as we were unaware of it's usage statistics. However, as this was the only way to clear the inputs of individual buttons, this PR will re-add it back in.
2020-09-18submission_package: Account for multi-content NSPsMorph1-5/+5
Previously we assumed a submission package can only contain one Program NCA with a single TitleID. However, Super Mario 3D All-Stars contains four Program NCAs, each with their unique TitleIDs. This accounts for the existence of multi-content games such as this one. - Fixes booting Super Mario 3D All-Stars from the games list.
2020-09-17decode/image: Eliminate switch fallthrough in DecodeImage()Lioncash1-0/+1
Fortunately this didn't result in any issues, given the block that code was falling through to would immediately break.
2020-09-17decoder/texture: Eliminate narrowing conversion in GetTldCode()Lioncash1-1/+1
The assignment was previously truncating a u64 value to a bool.
2020-09-17audio_core/command_generator: Use const references where applicableLioncash1-10/+11
In a lot of cases, we can make use of const references rather than non-const references. While we're in the area we can silence some truncation and sign conversion warnings.
2020-09-17audio_core/command_generator: Avoid an unnecessary copy in GenerateFinalMixCommand()Lioncash1-1/+1
2020-09-17nfp: Eliminate two unnecessary copiesLioncash1-10/+13
GetAmiiboBuffer() returns by const reference, so we can use a reference instead of taking the returned buffer by value.
2020-09-17arm_dynarmic_cp15: Initialize member variablesLioncash1-2/+2
Ensures that the member variables are always initialized to a deterministic value on creation.
2020-09-17control_metadata: Resolve typo in Portuguese language nameLioncash1-1/+1
This isn't used anywhere, so this is a trivial fix.
2020-09-17service: Remove unused funcationLioncash1-22/+0
This is now completely unused, so it can be removed.
2020-09-17service/sm: Slightly more efficient string name validationLioncash1-2/+2
We can check the end of the string first for null-termination, rather than the beginning of the string.
2020-09-17service/sm: Eliminate dependency on the global system instanceLioncash3-7/+9
2020-09-17file_sys/romfs_factory: Eliminate usage of the global system accessorLioncash5-34/+49
2020-09-17file_sys/bis_factory: Eliminate usage of the global system accessorLioncash5-11/+11
2020-09-17loader/nso: Remove unnecessary [[maybe_unused]]Lioncash1-2/+1
2020-09-16video_core: Enforce -Werror=switchReinUsesLisp7-10/+59
This forces us to fix all -Wswitch warnings in video_core.
2020-09-16core/loader: Remove dependencies on the global system instanceLioncash20-45/+85
Now all that remains is: 18 instances in file_sys code 14 instances in GDB stub code (this can be tossed wholesale) 4 instances in HLE code 2 instances in settings code.
2020-09-15nca_patch: Significantly reduce the stack usage size within SearchBucketEntry()Lioncash1-4/+4
Previously this function was using ~16KB of stack (16528 bytes), which was caused by the function arguments being taken by value rather than by reference. We can make this significantly lighter on the stack by taking them by reference.
2020-09-15nca_patch: Make SearchBucketEntry() internally linkedLioncash2-44/+43
This is only used internally and doesn't depend on any class state, so we can make it fully internal.
2020-09-15cheat_engine: Convert ExtractName into a non-template functionLioncash1-19/+17
We don't need to create two separate instantiations of the same code, we can simply make the character template argument a regular function parameter.
2020-09-15cheat_engine: Remove unnecessary system argument to CheatParser's Parse functionLioncash3-15/+9
This isn't used within the function at all in any implementations, so we can remove it entirely.
2020-09-15patch_manager: Resolve implicit truncations in FormatTitleVersion()Lioncash1-3/+4
We make it explicit that we're truncating arithmetic here to resolve compiler warnings (even if the sizes weren't u32/u64 arithmetic generally promotes to int :<)
2020-09-15patch_manager: Make use of type aliasesLioncash2-69/+79
We can use these to avoid typing the same type redundantly. This way, if these ever change, only a single location needs to be modified.
2020-09-15patch_manager: Make a few functions internally linkedLioncash2-15/+12
These functions are only used within this translation unit, so we can make them internally linked.
2020-09-15gc_adapter: Disable MSVC nonstandard extension warning on libusb.hReinUsesLisp1-0/+9
Pragma disable zero-sized array nonstandard extension warning on MSVC.
2020-09-14crypto/key_manager: Remove dependency on the global system accessorLioncash3-7/+12
We can supply the content provider as an argument instead of hardcoding a global accessor in the implementation.
2020-09-14kernel: Remove all dependencies on the global system instanceLioncash5-11/+20
With this, the kernel finally doesn't depend directly on the global system instance anymore.
2020-09-10Test: Decrease pad_update_nsFearlessTobi1-1/+1
There have been reports of quite heavy input lag in the past. Compared to Citra for example, our pad_update_ns value is very high. So let's decrease it and see if it helps with this problem.
2020-09-07service: Remove two usages of the global system accessorLioncash3-7/+5
Removes more instances of reliance on global state.
2020-09-07gc_adapter: Make DeviceConnected() a const member functionLioncash3-9/+9
This doesn't modify instance state, so it can be made const.
2020-09-07bsd: Resolve unused value within SendToImplLioncash1-0/+1
Previously the address provided to SendToImpl would never be propagated to SendTo(). This fixes that.
2020-09-07bsd: Resolve sign comparison warningsLioncash1-3/+3
2020-09-07sockets_translate: Make use of designated initializersLioncash1-12/+12
Same behavior, less typing.
2020-09-07blocking_worker: Make use of templated lambdaLioncash1-3/+2
We can simplify this a little by explicitly specifying the typename for the lambda function.
2020-09-07blocking_worker: Resolve -Wdocumentation warningLioncash1-1/+1
2020-09-06video_core: Remove all Core::System references in rendererReinUsesLisp53-633/+573
Now that the GPU is initialized when video backends are initialized, it's no longer needed to query components once the game is running: it can be done when yuzu is booting. This allows us to pass components between constructors and in the process remove all Core::System references in the video backend.
2020-09-05configure_input: Hook up the motion button and checkboxMorph7-7/+19
This allows toggling motion on or off, and allows access to the motion configuration. Also changes the [waiting] text for motion buttons to Shake! as this is how motion is connected to a player.
2020-09-05Minor cleanupgerman1-19/+16
2020-09-05Add cemu hook changes related to PR #4609german8-139/+449
2020-09-05Remove RealMotionDevicegerman7-35/+41
2020-09-05configure_input_player: Show/hide motion buttons based on the controllerMorph3-103/+141
2020-09-05controllers/npad: Simplify motion entry assignmentMorph1-29/+18
Simplifies the motion assignment in the Dual Joycon entry and assigns index 1 of the motion entry (Motion 2) for the right joycon.
2020-09-05Include HID and configuration changes related to motiongerman13-16/+448
2020-09-04hid: Implement MergeSingleJoyasDualJoyMorph3-5/+24
- Used in multiple games such as Super Mario Odyssey.
2020-09-04applets/controller: Resolve several compiler warningsMorph2-7/+8
Resolves -Wsign-compare and -Wunused-variable
2020-09-04Address feedbackMorph4-2/+12
2020-09-04clang-formatMorph2-2/+4
2020-09-04applets/controller: Set min_players to have a minimum value of 1.Morph1-1/+1
- Some games like Shipped have a minimum requirement of 0 connected players and is undesired behavior. We must require a minimum of 1 player connected regardless of what games may ask.
2020-09-04applets/controller: Modify heuristic to account for certain gamesMorph1-7/+12
Now left and right joycons have the same priority (meaning both needs to be supported by the game). Explanation of the new heuristic: Assign left joycons to even player indices and right joycons to odd player indices. We do this since Captain Toad Treasure Tracker expects a left joycon for Player 1 and a right Joycon for Player 2 in 2 Player Assist mode.
2020-09-04main: Apply settings after applet configuration is complete.Morph1-0/+4
2020-09-04applets/controller: Implement fallback applet for the SDL frontendMorph3-90/+34
Implement the fallback applet for the SDL frontend, connecting only the minimum amount of players required.
2020-09-04applets/controller: Load configuration prior to setting up connectionsMorph2-23/+29
This avoids unintentionally changing the states of elements while loading them in.
2020-09-04applets/controller: Make 8 a static constexpr value of NUM_PLAYERSMorph2-15/+22
Avoids repetitive usages of the int literal '8' or calls to player_widgets.size()
2020-09-04applets/controller: Implement "Explain Text"Morph6-25/+304
"Explain Text" is additional text that is shown for each player in the controller applet.
2020-09-04Project Mjölnir: Part 2 - Controller AppletMorph20-59/+3803
Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-09-03file_sys/patch_manager: Add missing includeReinUsesLisp1-0/+1
Fixes build issues
2020-09-02main: Use three dots to complete the ellipsislat9nq1-1/+1
Fixes a typo in the UI file. An ellipsis has 3 dots.
2020-09-02input_common/motion_input: Make use of Common::PI constantMorph3-5/+10
Also amend the copyright notice to yuzu's instead of Dolphin's, which was mistakenly copy-pasted from another file.
2020-08-31vk_device: Fix driver id check on AMD for VK_EXT_extended_dynamic_stateReinUsesLisp1-6/+9
'driver_id' can only be known on Vulkan 1.1 after creating a logical device. Move the driver id check to disable VK_EXT_extended_dynamic_state after the logical device is successfully initialized. The Vulkan device will have the extension enabled but it will not be used.
2020-08-30externals: Update Xbyak to 5.96Lioncash2-21/+21
I made a request on the Xbyak issue tracker to allow some constructors to be constexpr in order to avoid static constructors from needing to execute for some of our register constants. This request was implemented, so this updates Xbyak so that we can make use of it.
2020-08-30sdl_joystick: disable the use of the hidapi drivers due to many problems caused by them.Vitor Kiguchi1-0/+7
The main problem is the loss of compatibility with some controllers, but there are also unwanted changes to the behaviour of PS4 controllers (hardcoded lightbar color).
2020-08-30Address second batch of reviewsFearlessTobi9-30/+27
2020-08-29configure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults()Lioncash1-2/+2
Prevents sign mismatch warnings in the loop conditionals.
2020-08-29Reolve reorder warningFearlessTobi2-3/+3
2020-08-29Address review comments and fix code compilationFearlessTobi13-155/+218
2020-08-29bootmanager: Prevent unnecessary copies in TouchUpdateEvent()Lioncash1-1/+1
The list of points is returned by const reference, so we don't need to make a copy of every element in the list.
2020-08-29game_list_p: Avoid string churn in GameListItemPath data()Lioncash1-4/+8
2020-08-29game_list_p: Mark some constants as constexprLioncash1-10/+10
Consistency change with how we mark constants in the rest of the codebase.
2020-08-29yuzu: Add motion and touch configurationFearlessTobi18-3/+1889
2020-08-29yuzu/main: Amend lifetime issues with InputSubsystemLioncash4-7/+8
Due to the way Qt performs destruction of parent/child widgets, we need to make the lifetime of the input subsystem shared across the main window and the render window.
2020-08-29yuzu/configuration: Fix index out of bounds for default_analogsMorph3-12/+13
2020-08-29sdl_impl: Reduce allocations in GetButtonMappingForDevice()Lioncash1-31/+37
These maps can be constexpr arrays of std::pair.
2020-08-29sdl_impl: Make use of std::move on std::string where applicableLioncash1-3/+3
Avoids redundant copies.
2020-08-29sdl_impl: Make use of insert_or_assign() where applicableLioncash1-14/+18
Avoids churning ParamPackage instances.
2020-08-29sdl_impl: Prevent type truncation in BuildAnalogParamPackageForButton() default argumentsLioncash1-1/+1
We need to add the 'f' suffix to make the right hand side a float and not a double.
2020-08-29sdl_impl: Simplify make_tuple callLioncash1-1/+1
The purpose of make_tuple is that you don't need to explicitly type out the types of the things that comprise said tuple. Given this just returns default values, we can simplify this a bit.
2020-08-29sdl_impl: Mark FromEvent() as a const member functionLioncash1-2/+2
This doesn't modify internal member state, so it can be marked as const.
2020-08-29input_common/main: Remove unnecessary headersLioncash3-5/+11
2020-08-29input_common/main: Remove unimplemented prototypeLioncash1-3/+0
I forgot to remove this in the rebase when removing most of the global variables within the input common codebase.
2020-08-29vk_device: Blacklist AMD proprietary from VK_EXT_extended_dynamic_stateReinUsesLisp1-1/+6
Vertex binding's <stride> is bugged on AMD's proprietary drivers when using VK_EXT_extended_dynamic_state. Blacklist it for now while we investigate how to report this issue to AMD.
2020-08-28Fix orientation errors and improve drift correctiongerman2-14/+31
2020-08-28Address commentsgerman2-85/+65
2020-08-28Implement a basic class for motion devicesgerman4-0/+279
2020-08-27input_common: Eliminate most global stateLioncash25-242/+396
Abstracts most of the input mechanisms under an InputSubsystem class that is managed by the frontends, eliminating any static constructors and destructors. This gets rid of global accessor functions and also allows the frontends to have a more fine-grained control over the lifecycle of the input subsystem. This also makes it explicit which interfaces rely on the input subsystem instead of making it opaque in the interface functions. All that remains to migrate over is the factories, which can be done in a separate change.
2020-08-27input_common/main: Add "/Mouse" to the display nameMorph1-1/+1
2020-08-27memory_manager: Make use of [[nodiscard]] in the interfaceLioncash1-17/+17
2020-08-27memory_manager: Make operator+ const qualifiedLioncash1-1/+1
This doesn't modify member state, so it can be marked as const.
2020-08-26configure_input_player: Fix modifier scale button mappingMorph2-20/+19
2020-08-26configuration/input: Add support for mouse button clicksMorph5-11/+82
Supports the Left, Right, Middle, Backward and Forward mouse buttons.
2020-08-26controllers/npad: Fix inconsistencies with controller connection statusesMorph1-1/+7
2020-08-26controllers/npad: Fix LibNX controller connection statusesMorph1-1/+9
This allows homebrew applications to be able to properly detect connected controllers.
2020-08-26controllers/npad: Fix LedPattern for P1-4Morph1-3/+3
2020-08-26input_common: Fix directional deadzone valuesMorph2-2/+2
The hardware tested value is 0.5 which translates to SHRT_MAX / 2
2020-08-26Address feedbackMorph13-96/+77
2020-08-26Project Mjölnir: Part 1Morph43-3177/+8306
Co-authored-by: James Rowe <jroweboy@gmail.com> Co-authored-by: Its-Rei <kupfel@gmail.com>
2020-08-26gc_poller: Resolve compilation warnings on MSVCLioncash1-3/+5
We just need to make our intentional implicit truncations explicit.
2020-08-26hle/scheduler: Fix data race in is_context_switch_pendingReinUsesLisp1-2/+6
As reported by tsan, SelectThreads could write to is_context_switch_pending holding a mutex while SwitchToCurrent reads it without holding any. It is assumed that the author didn't want an atomic here, so the code is reordered so that whenever is_context_switch_pending is read inside SwitchToContext, the mutex is locked.
2020-08-26hle/kernel: Fix data race in GetCurrentHostThreadIDReinUsesLisp1-1/+2
As reported by tsan, host_thread_ids could be read while any of the RegisterHostThread variants were called. To fix this, lock the register mutex when yuzu is running in multicore mode and GetCurrentHostThreadID is called.
2020-08-26common/thread: Fix data race in is_setReinUsesLisp1-4/+5
As report by tsan, Event::Set can write is_set while WaitFor and friends are reading from it. To address this issue, make is_set an atomic.
2020-08-26cpu_interrupt_handler: Misc style changesReinUsesLisp2-5/+3
2020-08-26cpu_interrupt_handler: Make is_interrupted an atomicReinUsesLisp2-2/+3
Fixes a race condition detected from tsan
2020-08-25logging/settings: Increase maximum log size to 100 MB and add extended logging optionM&M5-11/+54
The extended logging option is automatically disabled on boot but can be enabled afterwards, allowing the log file to go up to 1 GB during that session. This commit also fixes a few errors that are present in the general debug menu.
2020-08-24common_funcs: Add missing XOR operators to DECLARE_ENUM_FLAG_OPERATORSLioncash1-4/+10
Ensures that the full set of bitwise operators are available for types that make use of this macro.
2020-08-24common/assert: Make use of C++ attribute syntaxLioncash1-3/+4
Normalizes the syntax used for attributes
2020-08-24async_shaders: Mark getters as const member functionsLioncash2-17/+15
While we're at it, we can also mark them as nodiscard.
2020-08-24memory_manager: Mark IsGranularRange() as a const member functionLioncash2-3/+3
This doesn't modify internal member state, so it can be marked as const.
2020-08-24gl_texture_cache: Take std::string by reference in DecorateViewName()Lioncash2-2/+2
LabelGLObject takes a string_view, so we don't need to make copies of the std::string.
2020-08-24video_core/fence_manager: Remove unnecessary includesLioncash3-9/+4
Avoids pulling in unnecessary things that can cause rebuilds when they aren't required.
2020-08-24video_core/host_shaders: Add CMake integration for string shadersReinUsesLisp7-42/+106
Add the necessary CMake code to copy the contents in a string source shader (GLSL or GLASM) to a header file then consumed by video_core files. This allows editting GLSL in its own files without having to maintain them in source files. For now, only OpenGL presentation shaders are moved, but we can add GLASM presentation shaders and static SPIR-V generation through glslangValidator in the future.
2020-08-24gl_shader_util: Use std::string_view instead of star pointerReinUsesLisp5-9/+21
This allows us passing any type of string and hinting the length of the string to the OpenGL driver.
2020-08-23fsp_srv: Resolve -Wunused-but-set-variable warningLioncash1-1/+8
We can just log out the parameters in the meantime.
2020-08-23file_sys: Replace inclusions with forward declarations where applicableLioncash27-37/+66
Same behavior, minus unnecessary inclusions where not necessary.
2020-08-23fsp_srv: Resolve -Wmaybe_uninitialized warning in OpenSaveDataFileSystem()Lioncash1-2/+5
Initialize id to a deterministic value and also mark the unreachable cases in the switch with UNREACHABLE().
2020-08-23registered_cache: Make use of ends_with for string suffix checkingLioncash1-2/+1
Simplifies code.
2020-08-23registered_cache: Make use of designated initializersLioncash1-15/+15
Removes the need for comments to indicate the fields being assigned.
2020-08-23key_manager: Make data arrays constexprLioncash2-75/+82
We can convert these maps into constexpr arrays to eliminate some runtime static constructors.
2020-08-23cpu_manager: Make use of ranged for where applicableLioncash1-16/+13
We can simplify a few loops by making use of ranged for.
2020-08-23core_timing: Remove unused headerLioncash3-2/+2
2020-08-23core_timing: Move clock initializer into constructor initializer listLioncash1-4/+2
Same behavior, minus unnecessary zeroing out of the pointer.
2020-08-23core_timing: Resolve sign conversion warningLioncash1-2/+2
This constant is only ever assigned to downcount, which is a s64, not a u64.
2020-08-23web_service: Move web_result.h into web_serviceLioncash7-47/+41
This is the only place it's actively used. It's also more appropriate for web-related structures to be within the web service target. Especially given this one doesn't rely on anything in the common library.
2020-08-22video_core: Initialize renderer with a GPUReinUsesLisp22-119/+172
Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance.
2020-08-21vk_state_tracker: Fix primitive topologyReinUsesLisp3-13/+14
State track the current primitive topology with a regular comparison instead of using dirty flags. This fixes a bug in dirty flags for this particular state and it also avoids unnecessary state changes as this property is stored in a frequently changed bit field.
2020-08-20vk_device: Use Vulkan 1.0 properlyReinUsesLisp5-52/+66
Enable the required capabilities to use Vulkan 1.0 without validation errors and disable those that are not compatible with it.
2020-08-20renderer_vulkan: Create a Vulkan 1.0 instance when 1.1 is not availableReinUsesLisp3-6/+26
This commit doesn't make yuzu compatible with Vulkan 1.0 yet, it only creates an 1.0 instance.
2020-08-20Revert "common/time_zone: Simplify GetOsTimeZoneOffset()"bunnei1-5/+9
2020-08-18common/telemetry: Migrate namespace into the Common namespaceLioncash13-35/+43
Migrates the Telemetry namespace into the Common namespace to make the code consistent with the rest of our common code.
2020-08-18vfs_real: Resolve sign conversion warningsLioncash1-2/+2
2020-08-18vfs_real: Avoid redundant map lookupsLioncash1-30/+46
Avoids some trivially avoidable map lookups by keeping the result of find operations around and querying them.
2020-08-18common/color: Migrate code over to the Common namespaceLioncash1-2/+2
No external code makes use of this header, so we can freely change the namespace.
2020-08-18common/concepts: Move <type_traits> include out of the Common namespaceLioncash1-2/+2
This is a compiler/linker error waiting to happen.
2020-08-16Remove unneeded newlines, optional Registry in shader paramsameerj5-14/+9
Addressing feedback from Rodrigo
2020-08-16Morph: Update worker allocation commentAmeer J1-1/+1
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2020-08-16move thread 1/4 count computation into allocate workers methodameerj4-23/+14
2020-08-16Address feedback, add shader compile notifier, update setting textameerj9-162/+117
2020-08-16Vk Async Worker directly emplace in cacheameerj3-58/+41
2020-08-16Address feedback. Bruteforce delete duplicatesameerj7-80/+116
2020-08-16Vk Async pipeline compilationameerj13-20/+182
2020-08-16Preliminary effectsDavid Marcec10-35/+731
2020-08-16dynarmic: Add unsafe optimizationsMerryMage7-4/+108
2020-08-16configure_hotkeys: Don't translate empty stringsLioncash1-2/+2
There's no need to translate an empty string. This just gives translators unnecessary work.
2020-08-16common/fileutil: Convert namespace to Common::FSLioncash40-547/+639
Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
2020-08-16common: Silence two discarded result warningsLioncash2-3/+3
These are intentionally discarded internally, since the rest of the public API allows querying success. We want all non-internal uses of these functions to be explicitly checked, so we can signify that we intentionally want to discard the return values here.
2020-08-16common/time_zone: Simplify GetOsTimeZoneOffset()Lioncash1-9/+5
We can simplify this function down into a single line with the use of fmt. A benefit with the fmt approach is that the fmt variant of localtime is thread-safe as well, making GetOsTimeZoneOffset() thread-safe as well.
2020-08-16yuzu: Resolve -Wextra-semi warningsLioncash3-6/+6
While we're in the same area, we can ensure GameDir member variables are always initialized to consistent values.
2020-08-16main: Add an option to modify the currrent game's configurationlat9nq3-20/+46
Creates a new entry in the Emulation menu called "Configure Current Game..." that is only available if a game is currently being executed in yuzu. When selected, it opens the game properties dialog for the current game. Thanks to @BSoDGamingYT for reminding me to do this.
2020-08-15common/compression: Roll back std::span changesLioncash5-38/+45
Seems like all compilers don't support std::span yet.
2020-08-15common: Make use of [[nodiscard]] where applicableLioncash34-358/+343
Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
2020-08-14configuration_shared: Simplify name lookup in highlighting functionsLioncash7-90/+74
We can query the given object name directly from the widget itself. This removes any potential for forgetting to change the name if the widget gets renamed and makes the API much simpler (just pass in the widget, and not worry about its name).
2020-08-14yuzu: Make use of qOverload where applicableLioncash1-2/+1
Eliminates a verbose function cast.
2020-08-14time_zone_content_manager: Collapse auto and default caseLioncash1-3/+1
Prevents a useless self-assignment from occurring.
2020-08-14Disable biquad filterDavid Marcec1-8/+9
2020-08-14software_keyboard: Resolve a pessimizing move warningLioncash1-2/+1
A std::vector created in place like this is already an rvalue and doesn't need to be moved.
2020-08-14core: Resolve several -Wextra-semi warningsLioncash3-7/+12
We can amend one of the cascade macros to require semicolons in order to compile. In other cases, we can just remove the superfluous semicolons.
2020-08-14shader/memory: Amend UNIMPLEMENTED_IF_MSG without a messageLioncash1-1/+2
We need to provide a message for this variant of the macro, so we can simply log out the type being used.
2020-08-14macro-interpreter: Resolve -Wself-assign-field warningLioncash1-1/+0
This was assigning the field to itself, which is a no-op. The size doesn't change between its initial assignment and this one, so this is a safe change to make.
2020-08-14vulkan/wrapper: Avoid unnecessary copy in EnumerateInstanceExtensionProperties()Lioncash1-1/+1
Given this is implicitly creating a std::optional, we can move the vector into it.
2020-08-14gl_shader_disk_cache: Make use of std::nullopt where applicableLioncash1-11/+12
Allows the compiler to avoid unnecessarily zeroing out the internal buffer of std::optional on some implementations.
2020-08-14async_shaders: Resolve -Wpessimizing-move warningLioncash1-2/+2
Prevents pessimization of the move constructor (which thankfully didn't actually happen in practice here, given std::thread isn't copyable).
2020-08-14maxwell_3d: Resolve -Wextra-semi warningLioncash1-1/+1
Semicolons after a function definition aren't necessary.
2020-08-14Reworked ADPCM decoder to allow better streamingDavid Marcec2-33/+95
2020-08-14emu_window: Mark Scoped constructor and Acquire() as nodiscardLioncash1-2/+2
Ensures that callers make use of the constructor, preventing bugs from silently occurring.
2020-08-14kernel/scheduler: Mark SchedulerLock constructor as nodiscardLioncash1-1/+1
Allows the compiler to warn about cases where the constructor is used but then immediately discarded, which is a potential cause of locking/unlocking bugs.
2020-08-13General: Tidy up clang-format warnings part 2Lioncash17-117/+129
2020-08-12gl_shader_cache: Use std::max() for determining num_workersMorph1-1/+1
Does not allocate more threads than available in the host system for boot-time shader compilation and always allocates at least 1 thread if hardware_concurrency() returns 0.
2020-08-11textures/decoders: Fix block linear to pitch copiesReinUsesLisp3-34/+34
There were two issues with block linear copies. First the swizzling was wrong and this commit reimplements them. The other issue was that these copies are generally used to download render targets from the GPU and yuzu was not downloading them from host GPU memory unless the extreme GPU accuracy setting was selected. This commit enables cached memory reads for all accuracy levels. - Fixes level thumbnails in Super Mario Maker 2.
2020-08-10Remove UI changesameerj5-86/+5
This PR is now only the Analog devices handling the range value defaulting at 100%
2020-08-10Add range slider functionality for gc adapterameerj1-7/+7
2020-08-10undo unnecessary newlines, slider range 50-150Ameer3-6/+5
2020-08-10Address c++20 warning, fix inaccurate range text display when slide == 0Ameer1-2/+2
2020-08-10Add range slider for analog sticksAmeer4-14/+99
2020-08-09General: Tidy up clang-format warningsLioncash1-1/+1
2020-08-07common/concepts: Rename IsBaseOf to DerivedFromLioncash3-6/+8
This makes it more inline with its currently unavailable standardized analogue std::derived_from. While we're at it, we can also make the template match the requirements of the standardized variant as well.
2020-08-06freezer: Move entry finding to its own functionLioncash2-12/+21
Cleans up the callsites in other functions.
2020-08-06freezer: Take address values by valueLioncash1-3/+3
VAddr will always be 64-bit, so there's no need to take a trivial primitive alias by reference.
2020-08-06freezer: Make use of std::erase_ifLioncash1-4/+1
With C++20 we can simplify the erasing idiom.
2020-08-06cheat_engine: Resolve implicit bool->u64 conversionLioncash1-1/+1
We can just return zero here.
2020-08-06cheat_engine: Make use of designated initializersLioncash1-6/+18
Same behavior, but makes the member being assigned obvious.
2020-08-06partition_data_manager: Update master key hashesLioncash1-5/+5
Fills in some hashes that were previously unhandled.
2020-08-06partition_data_manager: Make data arrays constexprLioncash4-138/+141
Previously the constructor for all of these would run at program startup, consuming time before the application can enter main(). This is also particularly dangerous, given the logging system wouldn't have been initialized properly yet, yet the program would use the logs to signify an error. To rectify this, we can replace the literals with constexpr functions that perform the conversion at compile-time, completely eliminating the runtime cost of initializing these arrays.
2020-08-06partition_data_manager: Eliminate magic valueLioncash1-2/+2
We can use sizeof to make it obvious at the call site where the value is coming from.
2020-08-06aes_util: Make use of non-template variant of TranscodeLioncash1-1/+1
Same behavior, less template instantiations.
2020-08-06Fix thread naming on Linux, which limits names to 15 bytes.comex2-1/+13
- In `SetCurrentThreadName`, when on Linux, truncate to 15 bytes, as (at least on glibc) `pthread_set_name_np` will otherwise return `ERANGE` and do nothing. - Also, add logging in case `pthread_set_name_np` returns an error anyway. This is Linux-specific, as the Apple and BSD versions of `pthread_set_name_np return `void`. - Change the name for CPU threads in multi-core mode from "yuzu:CoreCPUThread_N" (19 bytes) to "yuzu:CPUCore_N" (14 bytes) so it fits into the Linux limit. Some other thread names are also cut off, but I didn't bother addressing them as you can guess them from the truncated versions. For a CPU thread, truncation means you can't see which core it is!
2020-08-05common/virtual_buffer: drop unused includesJan Beich1-9/+0
On DragonFly and NetBSD build fails with src/common/virtual_buffer.cpp src/common/virtual_buffer.cpp:16:10: fatal error: sys/sysinfo.h: No such file or directory #include <sys/sysinfo.h> ^~~~~~~~~~~~~~~
2020-08-05system_control: Make functions internally linked where applicableLioncash2-15/+11
These functions are only ever used internally as implementation details for GenerateRandomRange(), so these can be given internal linkage.
2020-08-05kernel: Remove unused variablesLioncash2-18/+11
Resolves a few compiler warnings.
2020-08-05scheduler: Resolve sign conversion warningLioncash1-1/+2
2020-08-05address_arbiter: Resolve sign conversion warningLioncash1-1/+1
Makes our type conversion explicit.
2020-08-05ipc_helpers: Only allow trivially copyable objects with PushRaw() and PopRaw()Lioncash1-0/+4
It's undefined behavior to use non-trivially copyable objects with std::memcpy, so we can add asserts to catch usages of these at compile-time.
2020-08-05vfs_vector: Make creation of array vfs files less verboseLioncash4-41/+41
We can add a helper function to make creation of these files nicer. While we're at it, we can eliminate an unnecessary std::array copy in the constructor. This makes the overhead on some of these functions way less intensive, given some arrays were quite large. e.g. The timezone location names are 9633 bytes in size.
2020-08-05main: Fallback to loader if no control nca is found with patch managerMorph1-6/+17
In some rare instances, the patch manager is not able to find a control nca, fallback to the previous method of parsing a control nca through the loader if this occurs.
2020-08-05main: Fix Open Save/Mod Locations for installed titlesMorph4-12/+12
Previously NAND/SDMC installed titles would open device saves when they are supposed to be user saves. This is due to the control nca not being read and thus returns 0 for both GetDefaultNormalSaveSize() and GetDeviceSaveDataSize(). Fix this by utilizing the patch manager to read the control nca.
2020-08-05game_list_worker: Do not clear entries when > 1 gamedir is presentMorph1-1/+1
Previously the map of entries was being cleared while looping through each game directory, this resulted into all game directories except the last game dir to lose content metadata information. Fix this by clearing the entries only once.
2020-08-03aes_util: Allow SetIV to be non-allocatingLioncash7-27/+36
In a few places, the data to be set as the IV is already within an array. We shouldn't require this data to be heap-allocated if it doesn't need to be. This allows certain callers to reduce heap churn.
2020-08-03perf_stats: Make use of designated initializersLioncash1-6/+7
Same behavior, but allows us to avoid a now-unnecessary zero initialization.
2020-08-03perf_stats: Mark GetMeanFrametime() as constLioncash2-9/+9
The general pattern is to mark mutexes as mutable when it comes to matters of constness, given the mutex acts as a transient member of a data structure.
2020-08-03vulkan: Silence more -Wmissing-field-initializer warningsLioncash6-3/+18
2020-08-03yuzu: Resolve C++20 deprecation warnings related to lambda capturesLioncash9-81/+88
C++20 deprecates capturing the this pointer via the '=' capture. Instead, we replace it or extend the capture specification.
2020-08-03service/ldr: Resolve sign mismatch warningsLioncash1-3/+2
We were performing an int < size_t comparison. We can just correct the type of the induction variable.
2020-08-03CMakeLists: Resolve #4478Lioncash1-1/+6
This switch is enabled by default in all recent versions of GCC and Clang.
2020-08-03tests/core_timing: Remove pragma optimize(off)Lioncash1-9/+5
I made a review comment about this in the PR that this was introduced in (#3955, commit 71c4779211dc081a3b2dd4af52edad5748e7a7f5), but it seems to have been missed. We shouldn't be using this pragma here because it's MSVC specific. This causes warnings on other compilers. The test it's surrounding is *extremely* dubious, but for the sake of silencing warnings on other compilers, we can mark "placebo" as volatile and be on with it.
2020-08-03time_zone_binary: Make use of designated initializersLioncash1-17/+25
2020-08-03logging/backend: Make use of designated initializersLioncash2-21/+15
Same behavior, less code.
2020-08-03buffer_queue: Make use of std::nulloptLioncash1-5/+6
Allows compilers to eliminate unnecessary zeroing out of the optional's buffer.
2020-08-03buffer_queue: Make use of designated initializersLioncash1-5/+5
2020-08-03profile_manager: Make use of std::nulloptLioncash1-4/+4
Allows some implementations to completely avoid unnecessarily zeroing out the internal buffer.
2020-08-03profile_manager: Make use of designated initializersLioncash1-13/+22
More compact code.
2020-08-03dmnt_cheat_vm: Make use of designated initializersLioncash1-105/+121
Allows for more compact code.
2020-08-03file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with ModeLioncash2-18/+21
Same behavior, minus a hand-rolled operator.
2020-08-03sm: Make use of IsBaseOf for GetServiceDavid Marcec1-3/+2
2020-08-03patch_manager: Resolve -Wignored-qualifier warningsLioncash1-2/+2
Top level const will always be ignored in this case, so it can be removed.
2020-08-03registered_cache: Resolve -Wmaybe_uninitialized warningsLioncash1-10/+15
While we're at it, we can avoid a redundant map lookup.
2020-08-03Place in anonymous namespaceDavid Marcec1-0/+4
2020-08-03loader: Make IdentifyFile typesafeDavid Marcec1-20/+32
Relies on #4465 for concept.h Common::IsBaseOf
2020-08-03ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465)David12-30/+64
* ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer With the support of C++20, we can use concepts to deduce if a type is an STL container or not. * More agressive concept for stl containers * Add -fconcepts * Move to common namespace * Add Common::IsBaseOf
2020-08-01mix buffer depoppingDavid Marcec2-30/+101
2020-07-31minor nitsMorph1-1/+3
2020-07-31am: Unstub SetScreenShotPermissionDavid Marcec2-1/+12
2020-07-30fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttributeMorph2-23/+56
Stub these 2 service commands required for Animal Crossing: New Horizons Update 1.4.0
2020-07-30fs: Rename SaveDataDescriptor to SaveDataAttributeMorph5-41/+63
2020-07-30adpcm streamingDavid Marcec4-27/+32
2020-07-29game_list_worker: Fix game list subdirectory scanningMorph1-2/+2
Oddly enough the scan that feeds the manual content provider is hardcoded to scan 2 nested directories deep. This effectively rendered the scan subdirectories setting useless as the manual content provider cannot find any games located more than 2 nested directories deep. Furthermore, this behavior causes game files to be picked up by the manual content provider even if scan subdirectories is disabled. FIx this by utilizing the behavior described when populating the game list for populating the content provider.
2020-07-29main: Add support for removing SDMC installed titlesMorph1-14/+13
2020-07-29xts_archive: Check if the file is nullptr prior to parsingMorph1-5/+9
Fixes an access violation where the file no longer exists at the specified path while being parsed.
2020-07-29registered_cache: Add support for removing folder ncasMorph2-53/+54
2020-07-29game_list: Limit context menu options for homebrewMorph1-1/+7
Hides the following options when the title id is 0: - Open Save Location - Open Mod Data Location - Open Transferable Shader Cache - All removal options except Remove Custom Configuration
2020-07-29main: Remove assert for opening savedata when program_id = 0Morph1-1/+0
2020-07-29main: Silence [[fallthrough]] warningMorph1-3/+2
2020-07-29main: Split removal cases into their individual functions and address feedbackMorph2-113/+131
2020-07-29main: Connect game list remove signals to removal functionsMorph2-5/+167
2020-07-29game_list: Add "Remove" context menuMorph2-4/+37
Adds the following actions: - Remove Installed Update - Remove All Installed DLC - Remove Shader Cache - Remove Custom Configuration - Remove All Installed Contents
2020-07-28configure_graphics: Remove Force 30 FPS modeMorph6-25/+0
The introduction of multicore rendered this setting non-functional as timing code was changed. This removes the setting entirely.
2020-07-28renderer_opengl: Use 1/4 of all threads for async shader compilationMorph1-9/+4
2020-07-28common/atomic_ops: Don't cast away volatile from pointersLioncash3-27/+30
Preserves the volatility of the pointers being casted.
2020-07-28service/bsd: Handle Poll with no entries accuratelyReinUsesLisp1-0/+5
Testing shows that Poll called with zero entries returns -1 and signals an errno of zero.
2020-07-28services/bsd: Implement most of bsd:sReinUsesLisp5-55/+911
This implements: Socket, Poll, Accept, Bind, Connect, GetPeerName, GetSockName, Listen, Fcntl, SetSockOpt, Shutdown, Recv, RecvFrom, Send, SendTo, Write, and Close The implementation was done referencing: SwIPC, switchbrew, testing with libnx and inspecting its code, general information about bsd sockets online, and analysing official software. Not everything from these service calls is implemented, but everything that is not implemented will be logged in some way.
2020-07-28service/sockets: Add worker pool abstractionReinUsesLisp1-0/+30
Manage worker threads with an easy to use abstraction. We can expand this to support thread deletion in the future.
2020-07-28service/sockets: Add worker abstraction to execute blocking calls asynchronouslyReinUsesLisp2-0/+133
This abstraction allows executing blocking functions (like recvfrom on a socket configured for blocking) without blocking the service thread. It is intended to be used with SleepClientThread.
2020-07-28service/sockets: Add translate functionsReinUsesLisp3-0/+215
These functions translate from Network enumerations/structures to guest enumerations/structures and viceversa.
2020-07-28service/sockets: Add enumerations and structuresReinUsesLisp2-0/+81
Add guest enumerations and structures used in socket services
2020-07-28services/nifm: Implement GetCurrentIpAddressReinUsesLisp1-1/+12
This is trivially implemented using the Network abstraction - Used by ftpd
2020-07-28device_memory: Remove unused system memberLioncash3-11/+4
This isn't used by anything in particular, so it can be removed.
2020-07-28cpu_manager: Remove redundant std::function declarationsLioncash1-3/+3
We can just return the function directly. Making for less reading.
2020-07-28Update src/core/hle/service/nvdrv/devices/nvmap.cppbunnei1-1/+1
Co-authored-by: LC <mathew1800@gmail.com>
2020-07-28core_timing: Make use of uintptr_t to represent user_dataLioncash15-43/+52
Makes the interface future-proofed for supporting other platforms in the event we ever support platforms with differing pointer sizes. This way, we have a type in place that is always guaranteed to be able to represent a pointer exactly.
2020-07-28yuzu/main: Remove redundant usages of QStringLiteral("")Lioncash1-6/+5
An empty QStringLiteral can more efficiently be replaced with an empty QString.
2020-07-27remove unused variable;CrazyMax1-1/+0
2020-07-26GCAdapter: only join worker thread if running & joinableBrian J. Tarricone1-1/+3
2020-07-26video_core/gpu: Correct the size of the puller registersBilly Laws1-2/+2
The puller register array is made up of u32s however the `NUM_REGS` value is the size in bytes, so switch it to avoid making the struct unnecessary large. Also fix a small typo in a comment.
2020-07-26config: Make the save-as identifier more consistentlat9nq1-2/+2
Solves an issue with restoring the value upon reloading program.
2020-07-26hle: nvdrv: Rewrite of GPU memory management.bunnei6-593/+431
2020-07-26yuzu/configure_debug: Remove duplicated checkboxesFearlessTobi1-22/+0
Those are already found in the Filesystem tab. They were added back to the Debug tab by mistake in the Vulkan PR.
2020-07-26nvflinger: Mark interface functions with return values as [[nodiscard]]Lioncash1-16/+14
Not using the return value of these functions are undeniably the source of a bug. This way we allow compilers to loudly make any future misuses evident.
2020-07-26nvflinger: Use return value of Lock()Lioncash3-4/+4
comex reported in #4424 that we were incorrectly discarding the return value of Lock() which is correct.
2020-07-25common/string_util: Remove unimplemented function prototype (#4414)LC1-12/+0
This function was relocated to log.h as a constexpr function, so this can be removed.
2020-07-25Fix perf regressionDavid Marcec1-1/+2
2020-07-25vulkan: Resolve -Wmissing-field-initializer warningsLioncash2-0/+4
2020-07-25udp/client: Remove unused boost includeLioncash1-1/+0
Also silences a deprecation warning from boost on Clang/GCC.
2020-07-25gc_adapter: Resolve C++20 deprecation warningLioncash1-1/+1
2020-07-25gc_poller: Resolve -Wsign-compare warningLioncash1-1/+2
2020-07-25gc_poller: Resolve -Wredundant-move warningLioncash1-2/+1
2020-07-25lz4_compression: Make use of std::span in interfacesLioncash2-17/+14
Allows compressing the data and size parameters into one.
2020-07-25zstd_compression: Make use of std::span in interfacesLioncash3-13/+10
Allows condensing the data and size parameters into a single argument.
2020-07-25virtual_buffer: Mark size parameter of FreeMemoryPages() as [[maybe_unused]]Lioncash1-1/+1
This isn't used on Windows, but is used on non-Windows operating systems.
2020-07-25Fix stream channel count when outputting to stereoDavid Marcec1-1/+1
2020-07-25Address issuesDavid Marcec8-101/+104
2020-07-25Queue extra mix bufferDavid Marcec1-0/+1
2020-07-25Disable time stretcher for time beingDavid Marcec2-6/+4
2020-07-25audio_core: Apollo Part 1, AudioRenderer refactorDavid Marcec26-713/+4204
2020-07-23network: add missing include for BSDsJan Beich1-0/+2
src/core/network/network.cpp:112:28: error: use of undeclared identifier 'SHUT_RD' constexpr int SD_RECEIVE = SHUT_RD; ^ src/core/network/network.cpp:113:25: error: use of undeclared identifier 'SHUT_WR' constexpr int SD_SEND = SHUT_WR; ^ src/core/network/network.cpp:114:25: error: use of undeclared identifier 'SHUT_RDWR' constexpr int SD_BOTH = SHUT_RDWR; ^ src/core/network/network.cpp:120:37: error: unknown type name 'in_addr'; did you mean 'in_addr_t'? constexpr IPv4Address TranslateIPv4(in_addr addr) { ^~~~~~~ in_addr_t /usr/include/netdb.h:66:20: note: 'in_addr_t' declared here typedef __uint32_t in_addr_t; ^ src/core/network/network.cpp:121:27: error: member reference base type 'in_addr_t' (aka 'unsigned int') is not a structure or union const u32 bytes = addr.s_addr; ~~~~^~~~~~~ src/core/network/network.cpp:121:15: error: variables defined in a constexpr function must be initialized const u32 bytes = addr.s_addr; ^ src/core/network/network.cpp:126:10: error: incomplete result type 'sockaddr' in function definition sockaddr TranslateFromSockAddrIn(SockAddrIn input) { ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:127:5: error: unknown type name 'sockaddr_in'; did you mean 'sockaddr'? sockaddr_in result; ^~~~~~~~~~~ sockaddr /usr/include/netdb.h:142:9: note: 'sockaddr' declared here struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:127:17: error: variable has incomplete type 'sockaddr' sockaddr_in result; ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:131:29: error: use of undeclared identifier 'AF_INET' result.sin_family = AF_INET; ^ src/core/network/network.cpp:135:29: error: use of undeclared identifier 'AF_INET' result.sin_family = AF_INET; ^ src/core/network/network.cpp:139:23: error: use of undeclared identifier 'htons' result.sin_port = htons(input.portno); ^ src/core/network/network.cpp:143:14: error: variable has incomplete type 'sockaddr' sockaddr addr; ^ /usr/include/netdb.h:142:9: note: forward declaration of 'sockaddr' struct sockaddr *ai_addr; /* binary address */ ^ src/core/network/network.cpp:156:1: error: unknown type name 'linger' linger MakeLinger(bool enable, u32 linger_value) { ^ src/core/network/network.cpp:157:5: error: unknown type name 'linger' linger value; ^ src/core/network/network.cpp:185:16: error: use of undeclared identifier 'AF_INET' return AF_INET; ^ src/core/network/network.cpp:195:16: error: use of undeclared identifier 'SOCK_STREAM' return SOCK_STREAM; ^ src/core/network/network.cpp:197:16: error: use of undeclared identifier 'SOCK_DGRAM' return SOCK_DGRAM; ^ src/core/network/network.cpp:207:16: error: use of undeclared identifier 'IPPROTO_TCP' return IPPROTO_TCP; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=]
2020-07-21vi: IApplicationDisplayService:GetIndirectLayerImageRequiredMemoryInfoDavid Marcec1-1/+19
Needed for dark souls and monster hunter
2020-07-21surface_params: Make use of designated initializers where applicableLioncash1-38/+46
Provides a convenient way to avoid unnecessary zero initializing.
2020-07-21surface_params: Remove redundant assignmentLioncash1-1/+0
This is a redundant assignment that can be removed.
2020-07-21surface_params: Replace questionable usages of the comma operator with semicolonsLioncash1-9/+9
These are bugs waiting to happen.
2020-07-21video_core: Remove unused variablesLioncash8-33/+5
Silences several compiler warnings about unused variables.
2020-07-21vk_rasterizer: Remove unused variable in Clear()Lioncash1-4/+0
The relevant values are already assigned further down in the lambda, so this can be removed entirely.
2020-07-21compatible_formats: Add missing header guardLioncash1-0/+2
Prevents potential inclusion issues from occurring.
2020-07-21video_core: Allow copy elision to take place where applicableLioncash7-26/+26
Removes const from some variables that are returned from functions, as this allows the move assignment/constructors to execute for them.
2020-07-21configure_ui: Ensure a separator follows the returned pathlat9nq1-3/+5
2020-07-21configure_ui: don't use an empty stringlat9nq1-1/+3
If the user had cancelled, it would clear the text box. That behavior was sanitized underneath, but may anyways cause inconveniences.
2020-07-21main: Don't use as many string copieslat9nq1-6/+8
Co-Authored-By: LC <lioncash@users.noreply.github.com>
2020-07-21main: rewrite (save as) screenshot savinglat9nq1-9/+18
This picks a default directory and file name. If on Windows and save-as screenshot saving is enabled, it asks the user, first defaulting to the default screenshot path, and with a default filename in the format `[title_id]_[year-mt-dy_hr-mn-sc-msc].png`. Otherwise, or on Linux for now, it simply saves a file in that directory with that file name.
2020-07-21configuration: Setup UI to config screenshot path and savinglat9nq5-5/+93
This adds two options to the General -> UI tab. The first disables picking a place to save the file. The second chooses a default directory for saving screenshots.
2020-07-21common: Add a screenshots directorylat9nq3-0/+3
Adds a screenshots directory as a path managed by FileUtil.
2020-07-21video_core: Remove redundant pixel format typeDavid Marcec1-1/+0
We already get the format type before converting shadow formats and during shadow formats.
2020-07-20buffer_cache: Eliminate redundant map lookup in MarkRegionAsWritten()Lioncash1-6/+3
We can make use of emplace()'s return value to determine whether or not we need to perform an increment. emplace() performs no insertion if an element already exist, so this can eliminate a find() call.
2020-07-20wait_tree: Include Midnight Blue dark themesMorph1-1/+4
2020-07-20qt-themes: Add Midnight Blue qdarkstyle theme (2.8.1)James Rowe2-1/+3
Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
2020-07-20Address issuesDavid Marcec1-2/+2
2020-07-19configure_graphics_advnaced: clang-format mk iilat9nq1-3/+3
2020-07-19configure_graphics_advanced: Fix oversight from rebaselat9nq1-1/+1
2020-07-19configuration_shared: Remove unused functionslat9nq2-18/+0
These were only kept for compatibility with old code during testing.
2020-07-19configuration: Use forward declares and remove extraneous structslat9nq10-63/+59
2020-07-19configuration_shared: Make CheckState strongly typedlat9nq2-24/+23
Also gets rid of unnecessary explicit namespace usage.
2020-07-19clang-formatlat9nq5-38/+32
2020-07-19configuration_shared: Break up tracker structs to respective classeslat9nq12-49/+58
One less global variable.
2020-07-19configure_system: break instead of semicolonlat9nq1-2/+4
Makes the code more readable Co-Authored-By: LC <lioncash@users.noreply.github.com>
2020-07-19clang-formatlat9nq3-8/+11
2020-07-19configure_system: Highlight labels on startuplat9nq1-0/+5
whoops
2020-07-19configure_graphics: Fix layout in global configlat9nq1-1/+1
Fixes a regression where the global config takes up a lot of extra space.
2020-07-19configure_per_game: Improve style consistencylat9nq3-54/+43
The way the configurations are set up, it is not trivial to do this. I'll leave it as is, but the API selection, and the background color and volume slider selectors are kind of not following the style.
2020-07-19configure_system: Implement highlighted overrideslat9nq3-539/+544
2020-07-19configuration_shared: Add default combobox setup functionlat9nq3-21/+52
Not a catch-all, but helps clean up the code for when I do this a lot. Also fixes some bugs caught in configure_graphics.
2020-07-19configuration_shared: Use an int instead of a QStringlat9nq4-22/+28
I noticed some of the code could be reduced to just passing the function an int, since I was doing the same thing over and over. Also clang-formats configure_graphics
2020-07-19configure_graphics_advanced: Implement highlighted overrideslat9nq3-96/+146
2020-07-19configuration_shared: Switch back to background colorslat9nq1-2/+2
Let's see if I make up my mind.
2020-07-19configuration_shared: Better use global textlat9nq2-0/+15
Also adds trackers for graphics and advanced graphics
2020-07-19configure_audio: fix UI marginslat9nq1-1/+10
2020-07-19configure_graphics: Implement highlighted overrideslat9nq2-134/+200
2020-07-19configure_audio: Implement highlighted overrideslat9nq2-80/+87
2020-07-19configuration_shared: Require name of the widget for highlightinglat9nq3-16/+27
Prevents mass-coloring of elements later on
2020-07-19configuration_shared: Use a highlight instead of background colorlat9nq2-6/+6
Fixes visibility in the built-in dark theme
2020-07-19configure_general: Implement manual tristate buttonslat9nq2-17/+27
2020-07-19configuration_shared: Initial functions and data for manual tristatelat9nq2-0/+58
Sets up initial support for implementing colored tristate functions. These functions color a QWidget blue when it's overriding a global setting, and discolor it when not. The lack of color indicates it uses the global state, replacing the Qt::CheckState::PartiallyChecked state with the global state.
2020-07-19Fix axis thresholding while pollingameerj1-5/+2
axes were very sensitive when mapping controls.
2020-07-19swkbd: Return result for Calc request for inlined swkbdDavid Marcec2-13/+49
Fixes random swkbd popups in monster hunter
2020-07-19core/network: Add network abstractionReinUsesLisp5-0/+840
This commit adds a network abstraction designed to implement bsd:s but at the same time work as a generic abstraction to implement any networking code we have to use from core. This is implemented on top of BSD sockets on Unix systems and winsock on Windows. The code is designed around winsocks having compatibility definitions to support both BSD and Windows sockets.
2020-07-19alignment: explicitly include <new> after 723edb4c0659Jan Beich1-0/+1
In file included from src/core/hle/kernel/memory/page_table.cpp:5: src/./common/alignment.h:67:68: error: no member named 'align_val_t' in namespace 'std' return static_cast<T*>(::operator new (n * sizeof(T), std::align_val_t{Align})); ~~~~~^ src/./common/alignment.h:71:51: error: no member named 'align_val_t' in namespace 'std' ::operator delete (p, n * sizeof(T), std::align_val_t{Align}); ~~~~~^
2020-07-18Address issuesDavid Marcec1-6/+3
2020-07-18Address trivial review comments.FearlessTobi1-1/+1
2020-07-18configure_ui: Address some review comments from the previous PRFearlessTobi2-16/+21
2020-07-18yuzu: Port translation support from CitraFearlessTobi10-84/+235
Co-Authored-By: Weiyi Wang <wwylele@gmail.com>
2020-07-18frontend: Improve wait tree readability for dark themesDavid Marcec1-11/+44
2020-07-18gl_arb_decompiler: Use NV_shader_buffer_{load,store} on assembly shadersReinUsesLisp7-110/+173
NV_shader_buffer_{load,store} is a 2010 extension that allows GL applications to use what in Vulkan is known as physical pointers, this is basically C pointers. On GLASM these is exposed through the LOAD/STORE/ATOM instructions. Up until now, assembly shaders were using NV_shader_storage_buffer_object. These work fine, but have a (probably unintended) limitation that forces us to have the limit of a single stage for all shader stages. In contrast, with NV_shader_buffer_{load,store} we can pass GPU addresses to the shader through local parameters (GLASM equivalent uniform constants, or push constants on Vulkan). Local parameters have the advantage of being per stage, allowing us to generate code without worrying about binding overlaps.
2020-07-18Fix style issuesDavid Marcec2-7/+13
2020-07-18file_sys/nsp: Make SetTicketKeys actually do somethingFearlessTobi2-32/+30
Previously, the method wasn't modifying any class state and therefore not having any effects when called. Since this has been the case for a very long time now, I'm not sure if we couldn't just remove this method altogether.
2020-07-18vk_device: Fix build error on old MSVC versionsReinUsesLisp1-3/+3
Designated initializers on old MSVC versions fail to build when they take the address of a constant.
2020-07-17std::size_t where appropriate, make error message more clear if can't readameerj1-3/+4
2020-07-17alignment: Simplify AlignmentAllocator implementationLioncash1-43/+4
With C++20, much of the allocator interface has been simplified, so we can make the same adjustments.
2020-07-17Drop settings namespaceDavid Marcec1-2/+1
2020-07-17Remove duplicate configDavid Marcec2-2/+1
2020-07-17Use conditional varDavid Marcec2-9/+15
2020-07-17Drop max workers from 8->2 for testingDavid Marcec1-1/+1
2020-07-17Rebase for per game settingsDavid Marcec9-1/+53
2020-07-17async shadersDavid Marcec16-64/+598
2020-07-17macro_hle: Remove unnecessary static keywordsLioncash1-7/+4
These functions are already in an anonymous namespace which makes the functions internally linked.
2020-07-17core/CMakeLists: Add missing physical_memory.h header fileLioncash1-0/+1
Allows this header file to show up in IDE CMake generators.
2020-07-17macro_hle: Simplify shift expression in HLE_771BB18C62444DA0()Lioncash1-2/+1
Given the expression involves a 32-bit value, this simplifies down to just: 0x3ffffff. This is likely a remnant from testing that was never cleaned up. Resolves a -Wshift-overflow warning.
2020-07-17macro_hle: Remove unnecessary std::make_pair callsLioncash1-3/+3
The purpose of make_pair is generally to deduce the types within the pair without explicitly specifying the types, so these usages were generally unnecessary, particularly when the type is enforced by the array declaration.
2020-07-17macro: Resolve missing parameter in doxygen commentLioncash1-1/+2
Resolves a -Wdocumentation warning.
2020-07-17constants: Add missing <array> includeLioncash1-0/+1
Eliminates reliance on an indirect include.
2020-07-17mii/manager: Resolve sign mismatch warningsLioncash1-3/+3
Previously the loop termination condition was testing variables of different signedness.
2020-07-17mii/manager: Make use of designated initializersLioncash1-53/+54
Allows returning the structure in a more concise manner.
2020-07-17wrapper: Make use of designated initializers where applicableLioncash1-56/+64
2020-07-17vk_texture_cache: Make use of designated initializers where applicableLioncash1-96/+135
2020-07-17vk_texture_cache: Amend mismatched access masks and indices in UploadBufferLioncash1-6/+4
Discovered while converting relevant parts of the codebase over to designated initializers.
2020-07-17vk_swapchain: Make use of designated initializers where applicableLioncash1-43/+51
2020-07-17vk_stream_buffer: Make use of designated initializers where applicableLioncash1-19/+16
2020-07-17vk_staging_buffer_pool: Make use of designated initializers where applicableLioncash1-13/+12
2020-07-17vk_shader_util: Make use of designated initializers where applicableLioncash1-7/+7
2020-07-17vk_scheduler: Make use of designated initializers where applicableLioncash1-27/+30
2020-07-17vk_sampler_cache: Make use of designated initializers where applicableLioncash1-24/+27
2020-07-17vk_resource_manager: Make use of designated initializers where applicableLioncash1-15/+14
2020-07-17vk_renderpass_cache: Make use of designated initializers where applicableLioncash1-59/+70
2020-07-17vk_rasterizer: Make use of designated initializers where applicableLioncash1-41/+47
2020-07-17vk_query_cache: Make use of designated initializers where applicableLioncash1-8/+8
2020-07-17vk_pipeline_cache: Make use of designated initializers where applicableLioncash1-31/+35
2020-07-17vk_memory_manager: Make use of designated initializers where applicableLioncash1-7/+6
2020-07-17vk_image: Make use of designated initializers where applicableLioncash1-15/+23
2020-07-17vk_descriptor_pool: Make use of designated initializers where applicableLioncash1-15/+18
2020-07-17vk_graphics_pipeline: Resolve narrowing warningsLioncash1-2/+4
For whatever reason, VK_TRUE and VK_FALSE aren't defined as having a VkBool32 type, so we need to cast to it explicitly.
2020-07-16vk_compute_pipeline: Make use of designated initializers where applicableLioncash1-63/+68
2020-07-16vk_compute_pass: Make use of designated initializers where applicableLioncash1-95/+99
Note: Some barriers can't be converted over yet, as they ICE MSVC.
2020-07-16vk_buffer_cache: Make use of designated initializers where applicableLioncash1-30/+33
Note: An array within CopyFrom() cannot be converted over yet, as it ICEs MSVC when converted over.
2020-07-16decode/other: Implement S2R.LaneIdReinUsesLisp1-2/+1
This maps to host's thread id. - Fixes graphical issues on Paper Mario.
2020-07-16gl_arb_decompiler: Execute BAR even when inside control flowReinUsesLisp1-4/+0
Unlike GLSL, GLASM allows us to call BAR inside control flow. - Fixes graphical artifacts in Paper Mario.
2020-07-16renderer_{opengl,vulkan}: Clamp shared memory to host's limitReinUsesLisp6-9/+42
This stops shaders from failing to build when the exceed host's shared memory size limit. An error is logged.
2020-07-16kernel/thread: Remove unimplemented function prototypeLioncash1-2/+0
This isn't used, so it can be removed.
2020-07-16kernel: Remove unused variablesLioncash3-7/+2
Resolves some compiler warnings in the Linux build.
2020-07-16kernel: Add missing includeLioncash1-0/+1
2020-07-16cpu_manager: Mark function getters as staticLioncash4-10/+11
All these do are return std::function instances of static functions, so these can be used without an instance of the CPU manager.
2020-07-16cpu_manager: Remove unused preemption_count variableLioncash1-1/+0
Shrinks the data structure by 8 bytes.
2020-07-16cpu_manager: Add missing includesLioncash1-0/+3
Previously this header was relying on indirect inclusions that are no longer satisfied.
2020-07-16Refactor adapter codeAmeer2-179/+44
2020-07-16hid: Only update keyboard & debug pad inputs if enabledDavid Marcec2-33/+37
Previously we would ignore this setting and would update the states regardless of the user setting
2020-07-16Check for empty section0 and CNMT prior to installMorph1-3/+19
2020-07-16Add comment to clarify the nullptr checkMorph1-0/+1
2020-07-16filesystem: Create subdirectories prior to creating a fileMorph1-0/+3
If subdirectories exist in the given path parameter and don't exist in the real filesystem create them prior to creating the files within. This fixes the softlocks upon save creation in The Legend of Zelda: Breath of the Wild
2020-07-16core_timing: Remove unused data memberLioncash1-2/+0
Shrinks the size of the CoreTiming class by 8 bytes.
2020-07-16core_timing: Make TimedCallback take std::chrono::nanosecondsLioncash16-58/+62
Enforces our desired time units directly with a concrete type.
2020-07-16core_timing: Make use of std::chrono with ScheduleEventLioncash13-49/+58
2020-07-15settings: Resolve a sign conversion warning within GetTimeZoneString()Lioncash1-5/+5
A sign conversion warning was occurring due to an int < size_t comparison.
2020-07-15kernel/process: Move name and system context to the bottom of the member listLioncash1-6/+6
These aren't directly important or commonly used within the process, so we can move these to the bottom to allow everything else to be more likely to be within a cache line.
2020-07-15kernel/handle_table: Remove usages of the global system instanceLioncash4-8/+15
Removes even more usages of the global system instance, trimming away more dependencies on global variables and making them explicit in the interface.
2020-07-15settings: Make use of std::string_view over std::string for loggingLioncash1-33/+34
In all usages of LogSetting(), string literals are provided. std::string_view is better suited here, as we won't churn a bunch of string allocations every time the settings are logged out. While we're at it, we can fold LogSetting() into LogSettings(), given it's only ever used there.
2020-07-15kernel/thread: Remove global GetCurrentThread()Lioncash3-23/+7
This is only used in one place, so we can fold it into the calling code, eliminating a place for the global system instance to be used.
2020-07-15clang formatMorph1-3/+3
2020-07-15Use proper install result when overwriting filesMorph2-3/+3
2020-07-15Remove global system instance and address feedbackMorph2-14/+10
2020-07-15registered_cache: Remove previous update/dlc if it exists on installMorph2-13/+83
- This checks for and removes old updates or dlc based on title id. If a content meta nca exists within the registered cache, it will attempt to remove all the ncas associated with the content meta before installing a new update/dlc
2020-07-15clang-formatVolcaEM1-1/+2
2020-07-15dmnt_cheat_vm: Implement opcode 0xC3 (ReadWriteStaticRegister)VolcaEM2-1/+41
This was based on Atmosphére's DMNT Cheat VM: - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.hpp - https://github.com/Atmosphere-NX/Atmosphere/blob/master/stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp From Atmosphére's documentation: "Code type 0xC3 reads or writes a static register with a given register" There are now only two remaining opcodes to implement (PauseProcess and BreakProcess) This is untested because I don't have any experience in testing cheats on yuzu
2020-07-14common/swap: Make use of std::endianLioncash1-42/+4
Allows removing a bunch of defines in favor of a two liner.
2020-07-14shader_cache: Make use of std::erase_ifLioncash1-2/+2
Now that we use C++20, we can also make use of std::erase_if instead of needing to do the erase-remove idiom.
2020-07-14clang-formatlat9nq1-2/+1
2020-07-14settings: Move settings sanitization to its own functionlat9nq4-4/+11
Creates a new function that can be expanded later to fix other settings that are known to cause emulation errors across executables.
2020-07-14Fix crash if gc configured but adapter not connectedAmeer2-15/+25
2020-07-14main: Set async gpu properly after loading per-game settinglat9nq1-0/+4
Another error that got pass me and only noticed when I was doing the per-game settings UI rework. This prevents asynchronous GPU emulation from being disabled while multi core is enabled as a result of a poorly put together per-game config.
2020-07-14configure_general: Explicitly guard use_multi_core when applying settingslat9nq1-0/+2
This is likely an oversight during a rebase. Guards use_multi_core to be only set when the global value is in use. It should not make a difference given the current code base, but makes the code sensible.
2020-07-14vk_device: Make use of designated initializers where applicableLioncash1-124/+152
Avoids redundant repetitions of variable names, and allows assignment all in one statement.
2020-07-14input_common: drop unused libusb.h includeAmeer1-1/+0
Remnant of an early implementation.
2020-07-14vk_graphics_pipeline: Make use of designated initializers where applicableLioncash1-198/+223
Avoids redundant variable name repetitions.
2020-07-13input_common: make libusb private to gc_adapterJan Beich3-3/+7
2020-07-13memory_layout: Remove unused data memberLioncash1-2/+0
This isn't used, so it can be removed entirely, shrinking the structure size by 8 bytes.
2020-07-13address_space_info: Use type alias to simplify codeLioncash1-14/+13
We can define an alias for the index arrays and then just reuse it to make the code nicer to read.
2020-07-13address_space_info: Make use of designated initializersLioncash2-46/+27
We can alter the structure so that we can use designated initializers in the array, eliminating the comments that indicate their field names.
2020-07-13video_core: Rearrange pixel format namesReinUsesLisp19-1179/+1077
Normalizes pixel format names to match Vulkan names. Previous to this commit pixel formats had no convention, leading to confusion and potential bugs.
2020-07-13video_core: Fix DXT4 and RGB565ReinUsesLisp7-37/+31
2020-07-13video_core/format_lookup_table: Add formats with existing PixelFormatReinUsesLisp1-1/+9
2020-07-13video_core: Fix B5G6R5_UNORM render target formatReinUsesLisp5-1/+10
2020-07-13video_core: Fix B5G6R5UReinUsesLisp2-2/+2
2020-07-13video_core: Implement RGBA32_SINT render targetReinUsesLisp7-58/+71
2020-07-13video_core: Implement RGBA32_SINT render targetReinUsesLisp7-0/+13
2020-07-13video_core: Implement RGBA16_SINT render targetReinUsesLisp7-0/+13
2020-07-13video_core: Implement RGBA8_SINT render targetReinUsesLisp7-0/+13
2020-07-13video_core: Implement RG32_SINT render targetReinUsesLisp7-0/+13
2020-07-13video_core: Implement RG8_SINT render target and fix RG8_UINTReinUsesLisp7-1/+14
2020-07-13video_core: Implement R8_SINT render targetReinUsesLisp7-0/+13
2020-07-13video_core: Implement R8_SNORM render targetReinUsesLisp7-0/+13
2020-07-13video_core/surface: Remove explicit values on PixelFormat's definitionReinUsesLisp1-80/+80
2020-07-13video_core/surface: Reorder render target to pixel format switchReinUsesLisp1-53/+51
2020-07-13kernel/scheduler: Use std::mutex instead of spin lockReinUsesLisp1-1/+1
Profiling shows that this is a highly contested mutex, causing dimishing results compared to a OS lock. std::mutex implementations can spin for a while before falling back to an OS lock. This avoids wasting precious CPU cycles in a no-op.
2020-07-13vk_blit_screen: Make use of designated initializers where applicableLioncash1-334/+384
Now that we make use of C++20, we can use designated initializers to make things a little nicer to read.
2020-07-13vk_state_tracker: Fix dirty flags for stencil_enable on VK_EXT_extended_dynamic_stateReinUsesLisp1-0/+1
Fixes a regression on any game using stencil on devices with VK_EXT_extended_dynamic_state.
2020-07-12udp: Silence a C++20 deprecation warningLioncash1-1/+1
C++20 deprecates using the = lambda capture to implicitly capture the this pointer. Instead, we must specify it explicitly.
2020-07-12gc_poller: Mark GCButtonFactory::GetNextInput() as constLioncash2-2/+2
This doesn't modify class instance state.
2020-07-12gc_poller: Get rid of undefined behavior in Create()Lioncash1-0/+4
Ensures that the function always has returns in all control paths.
2020-07-12gc_poller: Silence sign conversion warningsLioncash1-1/+1
2020-07-12gc_adapter: Remove deprecated usage of = in lambda capturesLioncash1-1/+1
It's deprecated in C++20 to use = to capture the this pointer. Instead, we can simply pass this as an argument to the thread constructor.
2020-07-12gc_adapter: Silence sign conversion warningsLioncash2-7/+7
2020-07-12configure_cpu: Split optimization settings off into Debug tabMerryMage9-163/+302
2020-07-12common/alignment: Fix compilation errors (#4303)Tobias1-1/+3
2020-07-12fs: Fix RomFS building when zero byte files are presentMorph4-10/+10
When zero byte files are present, the key (offset) for that file is identical to the file right after. A std::map isn't able to fit key-value pairs with identical keys (offsets), therefore, the solution is to use std::multimap which permits multiple entries with the same key. This most prominently fixes Pokemon Sword and Shield weather with any RomFS mod applied.
2020-07-12hle: service: mii: Rewrite service to properly support creation of random and default miis.bunnei9-914/+3270
2020-07-12Revert "Port citra-emu/citra#5441: "Common: remove a mod from AlignUp""bunnei1-3/+1
2020-07-11Common: remove a mod from AlignUp (#5441)Marshall Mohror1-1/+3
In cases where the size is not a known constant when inlining, AlignUp<std::size_t> currently generates two 64-bit div instructions. This generates one div and a cmov which is significantly cheaper.
2020-07-11configure_cpu: Add tooltipsMerryMage1-1/+54
2020-07-11configure_cpu: Show/Hide debugging optionsMerryMage7-46/+135
2020-07-11main/profile_select: Don't prompt for profile selection when only one is availableFearlessTobi1-9/+13
2020-07-11configuration: Add settings to enable/disable specific CPU optimizationsMerryMage16-29/+404
2020-07-11CMakeLists: Make use of /std:c++latest on MSVCLioncash1-2/+2
Provides the buildbot with one builder that is always tracking the latest version of the C++ standard, allowing us to progressively rectify our code and amend any differences between standards over time instead of waiting for a complete standard change, potentially breaking a lot of code all at once.
2020-07-10vk_rasterizer: Pass <pSizes> to CmdBindVertexBuffers2EXTReinUsesLisp1-6/+6
This has been fixed in Nvidia's public beta driver 451.74. The previous beta driver will be broken, people using these will have to update.
2020-07-10Break out of scan loop if can't find adapter on first runAmeer1-0/+3
2020-07-10video_core/textures: Add and use SwizzleSliceToVoxel, and minor style changesReinUsesLisp5-84/+125
Change GOB sizes from free-functions to constexpr constants. Add SwizzleSliceToVoxel, a function that swizzles a 2D array of pixels into a 3D texture and use it for 3D copies.
2020-07-10vfs_real: Fix MoveFileMorph1-10/+17
The file wasn't closed prior to being renamed / moved, throwing an error that states "The process cannot access the file because it is being used by another process." Fix this by closing the file prior to a rename / move operation. Fixes saving in Luigi's Mansion 3 and KATANA KAMI: A Way of the Samurai Story.
2020-07-10KeyManager: Prevent writing of invalid keysMorph1-4/+8
If the keys are zero, don't write them to the autogenerated file.
2020-07-10Add additional empty check for the QStringList returned by the InstallDialogMorph1-0/+4
2020-07-10Update the install and progress dialogsMorph4-80/+65
- Remove the overwrite files checkbox, it will always overwrite - The progressbar now reflects the progress in terms of data transferred.
2020-07-10Refactor batch installing filesMorph4-196/+238
Key issues fixed: - Progress dialog showing up as white/hanging/getting stuck/unresponsive. Key changes: - Progress dialog now shows progress as a function of all files instead of per nca within a file. - Overwrite existing files will overwrite all files in the selection.
2020-07-10Add support for batch install to NANDMorph6-124/+290
This adds support to batch install files to NAND
2020-07-10bis_factory: Set User NAND free space to be 1 MiB less than total.Morph1-1/+3
2020-07-10sdmc_factory: Set the SDMC total size to 1 TiBMorph1-1/+3
We should not be limited by the SDMC's partition size, set this to 1 TiB. Hardware is limited to the max allowed by the MBR partition table which is 2 TiB.
2020-07-10bis_factory: Use hardware default NAND partition sizesMorph1-10/+11
Sets the total space of user and system partitions to their hardware defaults. Furthermore, return the total space as free space for the user partition to prevent it from reaching zero. Some games like Bioshock 2 check for the available free space prior to save creation, and we should not be limited by arbitrary limits.
2020-07-10settings: Remove storage size optionsMorph5-214/+1
2020-07-10cmake: Fix libfmt linking errorsDavid Marcec1-5/+1
2020-07-10configuration: implement per-game configurations (#4098)lat9nq57-835/+1942
* Switch game settings to use a pointer In order to add full per-game settings, we need to be able to tell yuzu to switch to using either the global or game configuration. Using a pointer makes it easier to switch. * configuration: add new UI without changing existing funcitonality The new UI also adds General, System, Graphics, Advanced Graphics, and Audio tabs, but as yet they do nothing. This commit keeps yuzu to the same functionality as originally branched. * configuration: Rename files These weren't included in the last commit. Now they are. * configuration: setup global configuration checkbox Global config checkbox now enables/disables the appropriate tabs in the game properties dialog. The use global configuration setting is now saved to the config, defaulting to true. This also addresses some changes requested in the PR. * configuration: swap to per-game config memory for properties dialog Does not set memory going in-game. Swaps to game values when opening the properties dialog, then swaps back when closing it. Uses a `memcpy` to swap. Also implements saving config files, limited to certain groups of configurations so as to not risk setting unsafe configurations. * configuration: change config interfaces to use config-specific pointers When a game is booted, we need to be able to open the configuration dialogs without changing the settings pointer in the game's emualtion. A new pointer specific to just the configuration dialogs can be used to separate changes to just those config dialogs without affecting the emulation. * configuration: boot a game using per-game settings Swaps values where needed to boot a game. * configuration: user correct config during emulation Creates a new pointer specifically for modifying the configuration while emulation is in progress. Both the regular configuration dialog and the game properties dialog now use the pointer Settings::config_values to focus edits to the correct struct. * settings: split Settings::values into two different structs By splitting the settings into two mutually exclusive structs, it becomes easier, as a developer, to determine how to use the Settings structs after per-game configurations is merged. Other benefits include only duplicating the required settings in memory. * settings: move use_docked_mode to Controls group `use_docked_mode` is set in the input settings and cannot be accessed from the system settings. Grouping it with system settings causes it to be saved with per-game settings, which may make transferring configs more difficult later on, especially since docked mode cannot be set from within the game properties dialog. * configuration: Fix the other yuzu executables and a regression In main.cpp, we have to get the title ID before the ROM is loaded, else the renderer will reflect only the global settings and now the user's game specific settings. * settings: use a template to duplicate memory for each setting Replaces the type of each variable in the Settings::Values struct with a new class that allows basic data reading and writing. The new struct Settings::Setting duplicates the data in memory and can manage global overrides per each setting. * configuration: correct add-ons config and swap settings when apropriate Any add-ons interaction happens directly through the global values struct. Swapping bewteen structs now also includes copying the necessary global configs that cannot be changed nor saved in per-game settings. General and System config menus now update based on whether it is viewing the global or per-game settings. * settings: restore old values struct No longer needed with the Settings::Setting class template. * configuration: implement hierarchical game properties dialog This sets the apropriate global or local data in each setting. * clang format * clang format take 2 can the docker container save this? * address comments and style issues * config: read and write settings with global awareness Adds new functions to read and write settings while keeping the global state in focus. Files now generated per-game are much smaller since often they only need address the global state. * settings: restore global state when necessary Upon closing a game or the game properties dialog, we need to restore all global settings to the original global state so that we can properly open the configuration dialog or boot a different game. * configuration: guard setting values incorrectly This disables setting values while a game is running if the setting is overwritten by a per game setting. * config: don't write local settings in the global config Simple guards to prevent writing the wrong settings in the wrong files. * configuration: add comments, assume less, and clang format No longer assumes that a disabled UI element means the global state is turned off, instead opting to directly answer that question. Still however assumes a game is running if it is in that state. * configuration: fix a logic error Should not be negated * restore settings' global state regardless of accept/cancel Fixes loading a properties dialog and causing the global config dialog to show local settings. * fix more logic errors Fixed the frame limit would set the global setting from the game properties dialog. Also strengthened the Settings::Setting member variables and simplified the logic in config reading (ReadSettingGlobal). * fix another logic error In my efforts to guard RestoreGlobalState, I accidentally negated the IsPowered condition. * configure_audio: set toggle_stretched_audio to tristate * fixed custom rtc and rng seed overwriting the global value * clang format * rebased * clang format take 4 * address my own review Basically revert unintended changes * settings: literal instead of casting "No need to cast, use 1U instead" Thanks, Morph! Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> * Revert "settings: literal instead of casting " This reverts commit 95e992a87c898f3e882ffdb415bb0ef9f80f613f. * main: fix status buttons reporting wrong settings after stop emulation * settings: Log UseDockedMode in the Controls group This should have happened when use_docked_mode was moved over to the controls group internally. This just reflects this in the log. * main: load settings if the file has a title id In other words, don't exit if the loader has trouble getting a title id. * use a zero * settings: initalize resolution factor with constructor instead of casting * Revert "settings: initalize resolution factor with constructor instead of casting" This reverts commit 54c35ecb46a29953842614620f9b7de1aa9d5dc8. * configure_graphics: guard device selector when Vulkan is global Prevents the user from editing the device selector if Vulkan is the global renderer backend. Also resets the vulkan_device variable when the users switches back-and-forth between global and Vulkan. * address reviewer concerns Changes function variables to const wherever they don't need to be changed. Sets Settings::Setting to final as it should not be inherited from. Sets ConfigurationShared::use_global_text to static. Co-Authored-By: VolcaEM <volcaem@users.noreply.github.com> * main: load per-game settings after LoadROM This prevents `Restart Emulation` from restoring the global settings *after* the per-game settings were applied. Thanks to BSoDGamingYT for finding this bug. * Revert "main: load per-game settings after LoadROM" This reverts commit 9d0d48c52d2dcf3bfb1806cc8fa7d5a271a8a804. * main: only restore global settings when necessary Loading the per-game settings cannot happen after the ROM is loaded, so we have to specify when to restore the global state. Again thanks to BSoD for finding the bug. * configuration_shared: address reviewer concerns except operator overrides Dropping operator override usage in next commit. Co-Authored-By: LC <lioncash@users.noreply.github.com> * settings: Drop operator overrides from Setting template Requires using GetValue and SetValue explicitly. Also reverts a change that broke title ID formatting in the game properties dialog. * complete rebase * configuration_shared: translate "Use global configuration" Uses ConfigurePerGame to do so, since its usage, at least as of now, corresponds with ConfigurationShared. * configure_per_game: address reviewer concern As far as I understand, it prevents the program from unnecessarily copying strings. Co-Authored-By: LC <lioncash@users.noreply.github.com> Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: VolcaEM <volcaem@users.noreply.github.com> Co-authored-by: LC <lioncash@users.noreply.github.com>
2020-07-10vk_stream_buffer: set allocable_size to 9 MiBlat9nq1-1/+1
This solves the crash on Linux systems running the current Linux Long Lived branch nVidia driver.
2020-07-09cmake: fix fmt linking when foundJohn Galt1-1/+5
This is a new attempt at #4206 that shouldn't break windows builds. If someone else could test on windows, it would be much appreciated. Previously, the build bot passed but the actual builds failed.
2020-07-09cmake: pass libusb include directory as wellJan Beich1-0/+1
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:11:10: fatal error: 'libusb.h' file not found #include <libusb.h> ^~~~~~~~~~
2020-07-08Address comments for better clarity/signed dev countAmeer1-11/+15
2020-07-08Add more libusb error checksAmeer1-3/+18
2020-07-08AM: fix GetDesiredLanguage:CrazyMax1-1/+13
try to get a control metadata from application update when is failed to get from the basic version. Tested on Kirby Star Allies
2020-07-08maxwell_dma: Rename registers to match official docs and reorderReinUsesLisp2-287/+355
Rename registers in the MaxwellDMA class to match Nvidia's official documentation. This one can be found here: https://github.com/NVIDIA/open-gpu-doc/blob/master/classes/dma-copy/clb0b5.h While we are at it, reorganize the code in MaxwellDMA to be separated in different functions.
2020-07-07cpu_interrupt_handler: Remove #pragma once from .cpp fileMerryMage1-2/+0
2020-07-07Address PR feedback, fix axis button thresholdingAmeer3-58/+22
2020-07-07input_common/gcadapter: add missing C++11 header required by libc++Jan Beich1-0/+1
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:77:10: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<int, bool> buttons; ~~~~~^ src/./input_common/gcadapter/gc_adapter.h:78:10: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<int, u16> axes; ~~~~~^
2020-07-07Brace the code! Fix compile error due to class member construction orderAmeer2-15/+31
2020-07-07Recalibrate reconnected controllersAmeer1-0/+5
2020-07-07Save origin state of GC controller analog features, compare against origin for input detectionAmeer3-28/+72
2020-07-07change shortcut context for other hotkeys with file open dialogAmeer1-4/+4
2020-07-07GetDisplayVersion should return a null-terminated version string.CrazyMax1-4/+16
also, in case of failed to get of the basic version, we will try get it from application update.
2020-07-06Fix ss crash on game menu, fix ss on windowed modeAmeer2-4/+6
2020-07-06configure_graphics: Make use of qOverload in signals/slotsLioncash1-2/+2
While we're in the same area, we can make use of qOverload to tidy up some function pointer casts.
2020-07-06configure_graphics: Prevent unnecessary string copies in UpdateDeviceComboBox()Lioncash1-1/+1
Unlikely to impact performance at all, but this is essentially a "free" transformation, so why not?
2020-07-05memory: Set page-table pointers before setting attribute = MemoryMerryMage1-2/+5
2020-07-05AM/ISelfController: Stub CreateManagedDisplaySeparableLayerMorph2-1/+20
Stub this by sending 1 layer id instead of 2 as yuzu does not support multiple layers per display. No adverse side effects have been observed. - Used by Animal Crossing: New Horizons Update 1.3.0
2020-07-04Fix for always firing triggers on some controllers, trigger threshold more universalAmeer2-5/+5
2020-07-03Address lioncash feedback: Log formatting, extern const PadButtonArray, little touch upsAmeer3-24/+32
2020-07-03Revert "cmake: fix fmt linking"bunnei1-1/+1
2020-07-02Fix unnecessary diffsAmeer4-29/+27
2020-07-02Add LR triggers as axes, half press to initiate a press, add GC axis id in config, clarify some code blocks for better readabilityAmeer3-35/+80
2020-07-02Rename two functions in NSVolcaEM1-2/+2
- Rename "GetShellEvent" to "GetShellEventHandle" - Rename "LaunchApplicationFromHost" to "LaunchApplication"
2020-07-02Rename GetApplicationArea2 to GetApplicationAreaSizeVolcaEM1-2/+2
2020-07-02cmake: stop linking against QGL after c6a0ab979239Jan Beich1-1/+1
2020-07-01shader_cache: Fix use-after-free and orphan invalidation cache entriesReinUsesLisp1-29/+41
This fixes some cases where entries could have been removed multiple times reading freed memory. To address this issue this commit removes duplicates from entries marked for removal and sorts out the removal process to fix another use-after-free situation. Another issue fixed in this commit is orphan invalidation cache entries. Previously only the entries that were invalidated in the current operations had its entries removed. This led to more use-after-free situations when these entries were actually invalidated but referenced an object that didn't exist.
2020-07-01Reset adapter state on init, fixes errors relating driver hang from unexpected unplugAmeer2-0/+9
2020-07-01Don't handle cycles late if stretcher is activeDavid Marcec1-1/+3
Timestretcher seems to be broken
2020-07-01audio: Improving audio timing for multicore/single coreDavid Marcec2-20/+7
Fixes the issue with needing the timestretcher for multicore.
2020-07-01externals: Track opus as submodule instead of using conanDavid Marcec1-1/+1
Supersedes #4068 see for details.
2020-07-01key_manager: Correct casing of instance()Lioncash10-10/+10
Our codebase uppercases member function names.
2020-07-01key_manager: Delete move operationsLioncash1-0/+3
Prevents the singleton from being moved from.
2020-07-01key_manager: Make use of canonical deleted operator=Lioncash1-2/+2
operator= typically returns a reference, it's not void. While we're at it, we can correct the parameter formatting to adhere to the codebase.
2020-07-01common: switch to nullptr for sysctl's empty new valueJan Beich1-4/+4
2020-06-30Address feedback regarding increments, const vars, and general cleanupAmeer2-24/+21
2020-06-30fix implicit conversion of size_t type to intAmeer1-1/+1
2020-06-30maxwell_to_gl: Implement MirrorOnceClampOGL using GL_MIRROR_CLAMP_EXTMorph1-0/+6
Like MirrorOnceBorder, this requires the GL_EXT_texture_mirror_clamp extension. This extension is unfortunately not available on Intel's drivers (both Windows proprietary and Linux Mesa). Use GL_MIRROR_CLAMP_TO_EDGE as a fallback if the extension is unavailable.
2020-06-30macro: Add support for "middle methods" on the code cache (#4112)David1-8/+27
Macro code is just uploaded sequentially from a starting address, however that does not mean the entry point for the macro is at that address. This PR adds preliminary support for executing macros in the middle of our cached code.
2020-06-30common: add sysconf() fallbackJan Beich1-3/+16
src/common/memory_detect.cpp:15:10: fatal error: 'sys/sysinfo.h' file not found #include <sys/sysinfo.h> ^~~~~~~~~~~~~~~
2020-06-29maxwell_to_gl: Rename VertexType() to VertexFormat()Morph2-4/+5
2020-06-29cmake: fix fmt linkingJohn Galt1-1/+1
On gcc/ld, and clang/lld, fmt::v6 symbols are excluded, so linking fails. This fixes the issue. Note: This was included in the FindBoost changes I shared with BlinkHawk, however only they were merged. I'm not sure if it was missed, or if there was an issue with this part of the change.
2020-06-29Remove duplicate functionsVolcaEM1-2/+0
2020-06-29Use decimal instead of hexadecimalVolcaEM1-3/+5
Co-authored-by: David <25727384+ogniK5377@users.noreply.github.com>
2020-06-29Fix typoVolcaEM1-1/+1
2020-06-29Clang-formatVolcaEM1-1/+1
2020-06-29service: Update function tablesVolcaEM27-157/+285
2020-06-29core_timing,scheduler: Use std::scoped_lock when possibleReinUsesLisp2-15/+12
Simplifies the cognitive load of procedures using locks and makes locks safe against exceptions.
2020-06-28ldr: Cleanup NRO & NRR structsDavid Marcec1-8/+8
2020-06-28maxwell_to_vk: Reorder vertex formats and add A2B10G10R10 for all types except floatMorph1-75/+69
2020-06-28am: Stub GetIndirectLayerConsumerHandleDavid Marcec1-1/+13
Needed by Monster Hunter Generations Ultimate
2020-06-28maxwell_to_gl: Add 32 bit component sizes to (un)signed scaled formatsMorph1-30/+4
Add 32 bit component sizes to (un)signed scaled formats and group (un)signed normalized, scaled, and integer formats together.
2020-06-28acc: ListOpenContextStoredUsers partial stubDavid Marcec5-4/+14
Needed by Baldur's Gate 1/2
2020-06-28Core/Common: Address Feedback.Fernando Sahmkow21-58/+58
2020-06-27NvFlinger: Clang Format.Fernando Sahmkow1-1/+1
2020-06-27Build System: Fix GCC & MINGW Build.Fernando Sahmkow1-0/+4
2020-06-27SVC: Implement 32-bits wrappers and update Dynarmic.Fernando Sahmkow4-34/+282
2020-06-27SVC: Add GetCurrentProcessorNumber32, CreateTransferMemory32, SetMemoryAttribute32Fernando Sahmkow2-6/+39
2020-06-27ARM: Update Dynarmic and Setup A32 according to latest interface.Fernando Sahmkow8-93/+174
2020-06-27SVC: Add GetThreadPriority32 & SetThreadPriority32Fernando Sahmkow2-2/+30
2020-06-27ArmDynarmic32: Setup CNTPCT correctlyFernando Sahmkow1-1/+1
2020-06-27Audio: Correct buffer release for host timing.Fernando Sahmkow3-1/+22
2020-06-27Common/Kernel: Corrections and small bug fixing.Fernando Sahmkow2-8/+3
2020-06-27Services/NvFlinger: Do vSync in a sepparate thread on Multicore.Fernando Sahmkow4-5/+69
2020-06-27Common/NativeClockx86: Reduce native clock accuracy further.Fernando Sahmkow1-1/+1
2020-06-27Tests/CoreTiming: Correct host timing tests.Fernando Sahmkow2-157/+14
2020-06-27ARMDynarmicInterface: Correct GCC Build Errors.Fernando Sahmkow2-6/+6
2020-06-27Common/AtomicOps: Correct GCC Intrinsic argument ordering.Fernando Sahmkow1-5/+5
2020-06-27Kernel: Correct Host Context on Threads and Scheduler.Fernando Sahmkow4-11/+11
2020-06-27YuzuQT: Hide Speed UI on Multicore.Fernando Sahmkow1-1/+1
2020-06-27Clang Format.Fernando Sahmkow14-48/+49
2020-06-27ARMInterface/Externals: Update dynarmic and fit to latest version.Fernando Sahmkow1-7/+7
2020-06-27ARMInterface: Correct rebase errors.Fernando Sahmkow3-5/+5
2020-06-27CoreTiming: Correct rebase bugs and other miscellaneous things.Fernando Sahmkow2-4/+8
2020-06-27Core: Split Microprofile Dynarmic timing per CoreFernando Sahmkow1-3/+12
2020-06-27General: Tune the priority of main emulation threads so they have higher priority than less important helper threads.Fernando Sahmkow6-0/+60
2020-06-27Dynarmic Interface: don't clear cache if JIT has not been created.Fernando Sahmkow2-0/+6
2020-06-27General: Correct rebase, sync gpu and context management.Fernando Sahmkow9-32/+45
2020-06-27CoreTiming/CycleTimer: Correct Idling.Fernando Sahmkow1-2/+5
2020-06-27SingleCore: Correct ticks reset to be on preemption.Fernando Sahmkow1-1/+1
2020-06-27General: Cleanup legacy code.Fernando Sahmkow19-740/+8
2020-06-27Kernel/svcBreak: Implement CacheInvalidation for Singlecore and correct svcBreak.Fernando Sahmkow2-3/+13
2020-06-27Bootmanager/CPU_Manager: Correct shader caches and sync GPU on OpenGL.Fernando Sahmkow2-6/+13
2020-06-27HLE_IPC: Correct HLE Event behavior on timeout.Fernando Sahmkow3-1/+19
2020-06-27SingleCore: Improve Cycle timing Behavior and replace mutex in global scheduler for spinlock.Fernando Sahmkow3-2/+4
2020-06-27FrameLimiting: Enable frame limiting for single core.Fernando Sahmkow2-1/+2
2020-06-27SingleCore: Use Cycle Timing instead of Host Timing.Fernando Sahmkow15-80/+152
2020-06-27Scheduler: Correct Reload/UnloadFernando Sahmkow2-3/+5
2020-06-27Thread: Release the ARM Interface on exitting.Fernando Sahmkow3-1/+8
2020-06-27General: Move ARM_Interface into Threads.Fernando Sahmkow18-170/+136
2020-06-27Core: Refactor ARM Interface.Fernando Sahmkow10-42/+69
2020-06-27X64 Clock: Reduce accuracy to be less or equal to guest accuracy.Fernando Sahmkow3-1/+10
2020-06-27ARM/WaitTree: Better track the CallStack for each thread.Fernando Sahmkow3-11/+74
2020-06-27SVC/ARM: Correct svcSendSyncRequest and cache ticks on arm interface.Fernando Sahmkow3-5/+20
2020-06-27SingleCore: Move Host Timing from a sepparate thread to main cpu thread.Fernando Sahmkow7-10/+48
2020-06-27GUI: Make multicore only work with Async and add GUI for multicore.Fernando Sahmkow6-5/+63
2020-06-27ARM: Addapt to new Exclusive Monitor Interface.Fernando Sahmkow5-31/+24
2020-06-27CPU_Manager: Correct stopping on SingleCore.Fernando Sahmkow1-3/+8
2020-06-27Scheduler: Correct yielding interaction with SetThreadActivity.Fernando Sahmkow1-0/+15
2020-06-27General: Fix microprofile on dynarmic/svc, fix wait tree showing which threads were running.Fernando Sahmkow11-13/+87
2020-06-27General: Fix Stop functionFernando Sahmkow4-5/+25
2020-06-27Kernel: Rewind on SVC change.Fernando Sahmkow3-5/+16
2020-06-27Kernel: Preempt Single core on redudant yields.Fernando Sahmkow6-21/+42
2020-06-27CPU_Manager: Unload/Reload threads on preemption on SingleCoreFernando Sahmkow4-7/+64
2020-06-27Synchronization: Correct wide Assertion.Fernando Sahmkow1-2/+4
2020-06-27General: Initial Setup for Single Core.Fernando Sahmkow8-34/+228
2020-06-27Scheduler: Set last running time on thread.Fernando Sahmkow2-4/+2
2020-06-27Kernel: Corrections to TimeManager, Scheduler and Mutex.Fernando Sahmkow3-5/+5
2020-06-27Kernel: Fixes, corrections and asserts to scheduler and different svcs.Fernando Sahmkow8-38/+38
2020-06-27Scheduler: Correct yields.Fernando Sahmkow2-7/+25
2020-06-27Mutex: Revert workaround due to poor exclusive memory.Fernando Sahmkow1-9/+2
2020-06-27ARM/Memory: Correct Exclusive Monitor and Implement Exclusive Memory Writes.Fernando Sahmkow12-24/+325
2020-06-27SVC: WaitSynchronization add Termination Pending Result.Fernando Sahmkow2-1/+5
2020-06-27Scheduler: Remove arm_interface lock and a few corrections.Fernando Sahmkow2-17/+3
2020-06-27Yuzu/Debuggers: Correct Wait Tree for Paused threads.Fernando Sahmkow1-2/+10
2020-06-27SVC: Correct SetThreadActivity.Fernando Sahmkow4-38/+59
2020-06-27SCC: Small corrections to CancelSynchronizationFernando Sahmkow3-2/+14
2020-06-27Scheduler: Correct locking for hle threads.Fernando Sahmkow1-1/+2
2020-06-27Scheduler: Fix HLE Threads on guardFernando Sahmkow1-4/+6
2020-06-27Scheduler: Protect on closed threads.Fernando Sahmkow1-7/+17
2020-06-27Scheduler: Correct assert.Fernando Sahmkow1-4/+2
2020-06-27Core: Correct rebase.Fernando Sahmkow2-18/+11
2020-06-27Scheduler: Release old thread fiber before trying to switch to the next thread fiber.Fernando Sahmkow2-11/+35
2020-06-27NVDRV: Remove frame limiting as Host Timing already takes care.Fernando Sahmkow1-1/+0
2020-06-27Mutex: Correct Result writting to clear exclusivity.Fernando Sahmkow1-3/+11
2020-06-27SVC: Correct svcWaitForAddress and svcSignalToAddress.Fernando Sahmkow4-68/+161
2020-06-27Scheduler: Correct Select Threads Step 2.Fernando Sahmkow1-0/+1
2020-06-27Kernel: Corrections to Scheduling.Fernando Sahmkow5-19/+23
2020-06-27Kernel: Correct Signal on Thread Death and Setup Sync Objects on Thread for DebuggingFernando Sahmkow3-15/+17
2020-06-27Core: Correct HLE Event Callbacks and other issues.Fernando Sahmkow5-37/+39
2020-06-27Process: Protect TLS region and Modules.Fernando Sahmkow1-0/+4
2020-06-27General: Add AssertsFernando Sahmkow4-0/+24
2020-06-27General: Add better safety for JIT use.Fernando Sahmkow5-7/+39
2020-06-27SVC: Correct races on physical core switching.Fernando Sahmkow2-10/+10
2020-06-27NVFlinger: Lock race condition between CPU, Host Timing, VSync.Fernando Sahmkow3-0/+11
2020-06-27SVC: Add locks to the memory management.Fernando Sahmkow1-0/+21
2020-06-27SVC: Correct WaitSynchronization, WaitProcessWideKey, SignalProcessWideKey.Fernando Sahmkow9-33/+84
2020-06-27SVC: Cleanup old methods.Fernando Sahmkow1-13/+9
2020-06-27CPU_Manager: Reconfigre guest threads for dynamrmic downsidesFernando Sahmkow3-1/+7
2020-06-27SVC: Correct SendSyncRequest.Fernando Sahmkow8-54/+116
2020-06-27SVC: Correct ArbitrateUnlockFernando Sahmkow3-33/+37
2020-06-27SVC: Correct SignalEvent, ClearEvent, ResetSignal, WaitSynchronization, CancelSynchronization, ArbitrateLockFernando Sahmkow8-90/+134
2020-06-27SVC: Remove global HLE Lock.Fernando Sahmkow1-3/+0
2020-06-27SVC: Correct GetThreadPriority, SetThreadPriority, GetThreadCoreMask, SetThreadCoreMask, GetCurrentProcessorNumberFernando Sahmkow5-15/+26
2020-06-27SVC: Correct CreateThread, StartThread, ExitThread, SleepThread.Fernando Sahmkow3-37/+31
2020-06-27HostTiming: Pause the hardware clock on pause.Fernando Sahmkow7-1/+23
2020-06-27AudioCore: Use nanoseconds instead of cycles for buffer time.Fernando Sahmkow2-6/+6
2020-06-27General: Setup yuzu threads' microprofile, naming and registry.Fernando Sahmkow7-9/+25
2020-06-27CPU_Manager: remove debugging code.Fernando Sahmkow1-8/+4
2020-06-27YuzuCMD/Tester: Correct executionFernando Sahmkow2-6/+8
2020-06-27General: Recover Prometheus project from harddrive failure Fernando Sahmkow57-816/+1341
This commit: Implements CPU Interrupts, Replaces Cycle Timing for Host Timing, Reworks the Kernel's Scheduler, Introduce Idle State and Suspended State, Recreates the bootmanager, Initializes Multicore system.
2020-06-27nfc: Update function tableVolcaEM1-3/+3
This was based on Switchbrew page: https://switchbrew.org/wiki/NFC_services
2020-06-27ncm: Update function tableVolcaEM1-10/+10
This was based on Switchbrew page: https://switchbrew.org/wiki/NCM_services ILocationResolver's 16, 17, 18 and 19 have unofficial names
2020-06-27mm: Update function tableVolcaEM1-16/+16
This was based on Switchbrew page: https://switchbrew.org/wiki/Display_services
2020-06-27mig: Update function tableVolcaEM1-0/+6
This was based on Switchbrew page: https://switchbrew.org/wiki/Migration_services
2020-06-27ldn: Update function tableVolcaEM1-0/+1
This was based on Switchbrew page: https://switchbrew.org/wiki/LDN_services
2020-06-27Oops (fix typo)VolcaEM1-1/+1
2020-06-27lbl: Update function tableVolcaEM1-0/+1
This was based on Switchbrew page: https://switchbrew.org/wiki/Backlight_services
2020-06-27grc: Update function tableVolcaEM1-0/+3
This was based on Switchbrew page: https://switchbrew.org/wiki/GRC_services