summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* video_core/gpu_thread: Keep the write lock for allocating the fence.Gravatar Markus Wick2021-04-072-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.
* video_core/gpu_thread: Implement a ShutDown method.Gravatar Markus Wick2021-04-075-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.
* common/threadsafe_queue: Provide Wait() method.Gravatar Markus Wick2021-04-072-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.
* Merge pull request #6130 from degasus/better_assert_handlingGravatar bunnei2021-04-073-6/+20
|\ | | | | common: Move assert failure handling into a cpp file.
| * common: Move assert failure handling into a cpp file.Gravatar Markus Wick2021-04-043-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.
* | Merge pull request #6153 from lioncash/svcrangeGravatar bunnei2021-04-072-6/+1
|\ \ | | | | | | process_capability: Handle extended SVC range
| * | process_capability: Handle extended SVC rangeGravatar Lioncash2021-04-072-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.
* | | hwopus: Update to 12.xGravatar Morph2021-04-071-0/+4
| | |
* | | Merge pull request #6146 from lat9nq/vp9_empty_memcpyGravatar bunnei2021-04-061-7/+9
|\ \ \ | |/ / |/| | vp9: Avoid memcpy with null pointers
| * | vp9: Avoid memcpy with null pointersGravatar lat9nq2021-04-051-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>
* / configure_graphics: Prevent stack-use-after-scopeGravatar lat9nq2021-04-041-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.
* Merge pull request #6127 from german77/udpSingleConnectionGravatar bunnei2021-04-034-102/+101
|\ | | | | InputCommon: Improve UDP communications
| * Use a single connection for UDP server, make connection test longer and ↵Gravatar german772021-03-304-102/+101
| | | | | | | | check all pads instead of only the first one
* | Merge pull request #6132 from MerryMage/code_sizeGravatar bunnei2021-04-022-0/+8
|\ \ | | | | | | arm_dynarmic: Increase size of code cache
| * | arm_dynarmic: Increase size of code cacheGravatar MerryMage2021-04-022-0/+8
| | |
* | | Merge pull request #6131 from german77/rightjoyconSLSRGravatar Morph2021-04-021-2/+6
|\ \ \ | |/ / |/| | HID: Fix SL and SR buttons for right joycon
| * | HID: Fix SL and SR buttons for right joyconGravatar german772021-04-021-2/+6
| | |
* | | Merge pull request #6106 from MerryMage/nullptr-jitGravatar bunnei2021-04-014-53/+26
|\ \ \ | | | | | | | | [test] arm_dynarmic: Always have a 'valid' jit instance
| * | | arm_dynarmic: Always have a 'valid' jit instanceGravatar MerryMage2021-03-244-53/+26
| | | |
* | | | Merge pull request #6126 from ↵Gravatar bunnei2021-03-302-1/+17
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Morph1984/stub-SetAlbumImageTakenNotificationEnabled ISelfController: Stub SetAlbumImageTakenNotificationEnabled
| * | | ISelfController: Stub SetAlbumImageTakenNotificationEnabledGravatar Morph2021-03-302-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.
* | | | Merge pull request #5927 from ameerj/astc-computeGravatar Rodrigo Locatti2021-03-3022-1770/+2027
|\ \ \ \ | | | | | | | | | | video_core: Accelerate ASTC texture decoding using compute shaders
| * | | | astc_decoder: Refactor for style and more efficient memory useGravatar ameerj2021-03-259-2256/+502
| | | | |
| * | | | astc_decoder: Reimplement LayersGravatar Rodrigo Locatti2021-03-135-142/+161
| | | | | | | | | | | | | | | | | | | | Reimplements the approach to decoding layers in the compute shader. Fixes multilayer astc decoding when using Vulkan.
| * | | | astc_decoder: Fix out of bounds memory accessGravatar ameerj2021-03-131-2/+10
| | | | | | | | | | | | | | | | | | | | resolves a crash with some anamolous textures found in Astral Chain.
| * | | | renderer_vulkan: Accelerate ASTC decodingGravatar ameerj2021-03-1311-57/+426
| | | | | | | | | | | | | | | | | | | | Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
| * | | | host_shaders: Modify shader cmake integration to allow for larger shadersGravatar ameerj2021-03-134-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.
| * | | | renderer_opengl: Accelerate ASTC texture decoding with a compute shaderGravatar ameerj2021-03-136-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.
* | | | | Merge pull request #6116 from german77/userArgumentGravatar bunnei2021-03-301-0/+28
|\ \ \ \ \ | |_|/ / / |/| | | | yuzu/main: Add user command line argument
| * | | | yuzu/main: Add user command line argumentGravatar german772021-03-271-0/+28
| | |_|/ | |/| |
* | | | Merge pull request #6124 from jbeich/vulkan+openglGravatar bunnei2021-03-302-5/+5
|\ \ \ \ | | | | | | | | | | vulkan_common: enable OpenGL interop on other Unices
| * | | | vulkan_common: enable OpenGL interop on other UnicesGravatar Jan Beich2021-03-302-5/+5
| | | | |
* | | | | Merge pull request #6109 from german77/gestureIDGravatar bunnei2021-03-292-3/+13
|\ \ \ \ \ | |/ / / / |/| | | | HID: Initialize correctly the gesture finger_id and filter invalid inputs
| * | | | HID: Initialize correctly the gesture finger_id and filter invalid resultsGravatar Narr the Reg2021-03-262-3/+13
| |/ / /
* | | | Merge pull request #6102 from ogniK5377/fd-passGravatar bunnei2021-03-2920-78/+161
|\ \ \ \ | | | | | | | | | | nvdrv: Pass device fd and handle device create methods for device opening and closing
| * | | | nvdrv: Pass device fd and handle device create methods for device opening ↵Gravatar Chloe Marcec2021-03-2520-78/+161
| |/ / / | | | | | | | | | | | | | | | | | | | | and closing 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
* | | | Merge pull request #6115 from bunnei/fix-kernel-initGravatar bunnei2021-03-281-1/+1
|\ \ \ \ | | | | | | | | | | hle: kernel: Initialize preemption task after schedulers.
| * | | | hle: kernel: Initialize preemption task after schedulers.Gravatar bunnei2021-03-271-1/+1
| |/ / / | | | | | | | | | | | | - Fixes a startup crash that occurs if CoreTiming tries to preempt before kernel initialization completes.
* / / / service: friend: Change logging class from ACC to FriendGravatar Morph2021-03-271-11/+12
|/ / /
* | | Merge pull request #6101 from ogniK5377/alloc-as-exGravatar bunnei2021-03-242-27/+49
|\ \ \ | | | | | | | | nvdrv: Change InitializeEx to AllocAsEx
| * | | nvdrv: Change InitializeEx to AllocAsExGravatar Chloe Marcec2021-03-222-27/+49
| | | | | | | | | | | | | | | | Wee also report the correct "big page size" now in GetVARegions & fix up the struct for IoctlAllocAsEx
* | | | gl_device: unblock async shaders on other Unix systemsGravatar Jan Beich2021-03-241-1/+1
| |_|/ |/| | | | | | | | | | | Mesa is the primary OpenGL provider on all FreeDesktop systems. For example, iris is used on Intel GPU + FreeBSD by default.
* | | Merge pull request #6100 from bunnei/arm-fixGravatar bunnei2021-03-232-0/+10
|\ \ \ | | | | | | | | core: arm_dynarmic: Ensure JIT state is saved/restored on page table changes.
| * | | core: arm_dynarmic: Ensure JIT state is saved/restored on page table changes.Gravatar bunnei2021-03-212-0/+10
| | | | | | | | | | | | | | | | - We re-create the JIT here without preserving any state.
* | | | Merge pull request #6092 from ivan-boikov/cancel-dir-selectGravatar bunnei2021-03-221-1/+4
|\ \ \ \ | |_|/ / |/| | | Fix cancelation of getExistingDirectory dialog
| * | | Fix cancelation of choose directory dialogGravatar ivan-boikov2021-03-201-1/+4
| |/ /
* | | Merge pull request #6095 from lat9nq/async-shader-blockGravatar LC2021-03-211-1/+13
|\ \ \ | |/ / |/| | gl_device: Block async shaders on AMD and Intel
| * | gl_device: Block async shaders on AMD and IntelGravatar lat9nq2021-03-211-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.
* | | Merge pull request #6052 from Morph1984/vi-getindirectlayerimagemapGravatar bunnei2021-03-191-1/+27
|\ \ \ | | | | | | | | IApplicationDisplayService: Stub GetIndirectLayerImageMap
| * | | IApplicationDisplayService: Stub GetIndirectLayerImageMapGravatar Morph2021-03-171-1/+27
| | | | | | | | | | | | | | | | Used by games invoking the inline software keyboard such as GNOSIA