Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2024-02-19 | scope_exit: Make constexpr | FearlessTobi | 1 | -1/+3 | |
Allows the use of the macro in constexpr-contexts. Also avoids some potential problems when nesting braces inside it. | |||||
2024-01-31 | nvnflinger/gpu: implement layer stack composition | Liam | 1 | -6/+0 | |
2024-01-19 | SMMU: Initial adaptation to video_core. | Fernando Sahmkow | 1 | -3/+3 | |
2023-06-28 | Memory Tracking: Optimize tracking to only use atomic writes when contested with the host GPU | Fernando Sahmkow | 1 | -3/+3 | |
2023-06-03 | core: frontend: Refactor GraphicsContext to its own module. | bunnei | 1 | -1/+1 | |
2023-03-22 | bounded_threadsafe_queue: Deduplicate and add PushModes | Morph | 1 | -1/+1 | |
Adds the PushModes Try and Wait to allow producers to specify how they want to push their data to the queue if the queue is full. If the queue is full: - Try will fail to push to the queue, returning false. Try only returns true if it successfully pushes to the queue. This may result in items not being pushed into the queue. - Wait will wait until a slot is available to push to the queue, resulting in potential for deadlock if a consumer is not running. | |||||
2023-03-22 | bounded_threadsafe_queue: Use simplified impl of bounded queue | Morph | 1 | -3/+4 | |
Provides a simplified SPSC, MPSC, and MPMC bounded queue implementation using mutexes. | |||||
2023-03-08 | core: Promote CPU/GPU threads to time critical | Morph | 1 | -1/+1 | |
And also demote Audren and CoreTiming to High thread priority. | |||||
2023-03-04 | gpu_thread: Use bounded queue | Behunin | 1 | -1/+2 | |
2023-02-08 | Remove OnCommandListEndCommand | Behunin | 1 | -6/+0 | |
Call rasterizer->ReleaseFences() directly | |||||
2022-11-23 | general: fix compile for Apple Clang | Liam | 1 | -1/+1 | |
2022-10-06 | VideoCore: Refactor fencing system. | Fernando Sahmkow | 1 | -1/+1 | |
2022-10-06 | VideoCore: Refactor syncing. | Fernando Sahmkow | 1 | -1/+5 | |
2022-10-06 | VideoCore: implement channels on gpu caches. | Fernando Sahmkow | 1 | -7/+7 | |
2022-10-04 | common: remove "yuzu:" prefix from thread names | Liam | 1 | -1/+1 | |
2022-07-06 | gpu_thread: Use the previous MPSCQueue implementation | Morph | 1 | -2/+1 | |
The bounded MPSCQueue implementation causes crashes in Fire Emblem Three Houses, use the previous implementation for now. | |||||
2022-06-14 | common: Change semantics of UNREACHABLE to unconditionally crash | Liam | 1 | -1/+1 | |
2022-06-03 | gpu_thread: Move to bounded queue | Levi Behunin | 1 | -1/+2 | |
2022-04-23 | general: Convert source file copyright comments over to SPDX | Morph | 1 | -3/+2 | |
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-07 | video_core: Replace lock_guard with scoped_lock | Merry | 1 | -1/+1 | |
2021-09-16 | gpu: Use std::jthread for async gpu thread | ameerj | 1 | -44/+13 | |
2021-06-11 | GPUTHread: Remove async reads from Normal Accuracy. | Fernando Sahmkow | 1 | -18/+6 | |
2021-04-15 | common: Move settings to common from core. | bunnei | 1 | -1/+1 | |
- Removes a dependency on core and input_common from common. | |||||
2021-04-07 | video_core: Use a CV for blocking commands. | Markus Wick | 1 | -17/+26 | |
There is no need for a busy loop here. Let's just use a condition variable to save some power. | |||||
2021-04-07 | video_core/gpu_thread: Keep the write lock for allocating the fence. | Markus Wick | 1 | -0/+2 | |
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-07 | video_core/gpu_thread: Implement a ShutDown method. | Markus Wick | 1 | -8/+18 | |
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-07 | common/threadsafe_queue: Provide Wait() method. | Markus Wick | 1 | -2/+1 | |
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-03-01 | gpu_thread: Remove Async NVDEC placeholders | ameerj | 1 | -10/+3 | |
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-13 | rebase, fix name shadowing, more const | ameerj | 1 | -1/+1 | |
2021-02-13 | nvdec cleanup | ameerj | 1 | -3/+2 | |
2021-02-13 | gpu: Report renderer errors with exceptions | ReinUsesLisp | 1 | -5/+7 | |
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. | |||||
2020-12-29 | gpu: gpu_thread: Ensure MicroProfile is shutdown on exit. | bunnei | 1 | -0/+3 | |
2020-12-29 | video_core: gpu_thread: Do not wait when system is powered down. | bunnei | 1 | -1/+2 | |
2020-12-29 | video_core: gpu: Implement synchronous mode using threaded GPU. | bunnei | 1 | -6/+24 | |
2020-12-04 | video_core: Resolve more variable shadowing scenarios | Lioncash | 1 | -8/+8 | |
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-10-27 | video_core: NVDEC Implementation | ameerj | 1 | -4/+12 | |
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-07-21 | video_core: Remove unused variables | Lioncash | 1 | -2/+2 | |
Silences several compiler warnings about unused variables. | |||||
2020-06-27 | General: Tune the priority of main emulation threads so they have higher priority than less important helper threads. | Fernando Sahmkow | 1 | -0/+1 | |
2020-06-27 | General: Setup yuzu threads' microprofile, naming and registry. | Fernando Sahmkow | 1 | -1/+5 | |
2020-04-22 | Async GPU: Correct flushing behavior to be similar to old async GPU behavior. | Fernando Sahmkow | 1 | -0/+4 | |
2020-04-22 | Async GPU: Only do reactive flushing on Extreme Level. | Fernando Sahmkow | 1 | -1/+1 | |
2020-04-22 | GPU: Implement Flush Requests for Async mode. | Fernando Sahmkow | 1 | -6/+11 | |
2020-04-22 | FenceManager: Implement async buffer cache flushes on High settings | Fernando Sahmkow | 1 | -1/+1 | |
2020-04-22 | Rasterizer: Document SignalFence & ReleaseFences and setup skeletons on Vulkan. | Fernando Sahmkow | 1 | -1/+4 | |
2020-04-22 | ThreadManager: Sync async reads on accurate gpu. | Fernando Sahmkow | 1 | -1/+6 | |
2020-04-22 | OpenGL: Implement Fencing backend. | Fernando Sahmkow | 1 | -0/+6 | |
2020-04-22 | GPU: Delay Fences. | Fernando Sahmkow | 1 | -1/+1 | |
2020-04-22 | BufferCache: Implement OnCPUWrite and SyncGuestHost | Fernando Sahmkow | 1 | -1/+1 | |
2020-04-22 | GPU: Refactor synchronization on Async GPU | Fernando Sahmkow | 1 | -3/+3 | |
2020-04-06 | GPU: Setup Flush/Invalidate to use VAddr instead of CacheAddr | Fernando Sahmkow | 1 | -3/+3 | |
2020-03-25 | Frontend/GPU: Refactor context management | James Rowe | 1 | -6/+9 | |
Changes the GraphicsContext to be managed by the GPU core. This eliminates the need for the frontends to fool around with tricky MakeCurrent/DoneCurrent calls that are dependent on the settings (such as async gpu option). This also refactors out the need to use QWidget::fromWindowContainer as that caused issues with focus and input handling. Now we use a regular QWidget and just access the native windowHandle() directly. Another change is removing the debug tool setting in FrameMailbox. Instead of trying to block the frontend until a new frame is ready, the core will now take over presentation and draw directly to the window if the renderer detects that its hooked by NSight or RenderDoc Lastly, since it was in the way, I removed ScopeAcquireWindowContext and replaced it with a simple subclass in GraphicsContext that achieves the same result | |||||
2020-02-26 | core: frontend: Refactor scope_acquire_window_context to scope_acquire_context. | bunnei | 1 | -2/+2 | |
2019-11-27 | video_core/gpu_thread: Tidy up SwapBuffers() | Lioncash | 1 | -2/+1 | |
We can just use std::nullopt and std::make_optional to make this a little bit less noisy. | |||||
2019-11-23 | gpu_thread: Don't spin wait if there are no GPU commands. | bunnei | 1 | -17/+15 | |
2019-10-11 | AsyncGpu: Address Feedback | Fernando Sahmkow | 1 | -1/+1 | |
2019-10-05 | Core: Wait for GPU to be idle before shutting down. | Fernando Sahmkow | 1 | -0/+5 | |
2019-10-05 | GPU_Async: Correct fences, display events and more. | Fernando Sahmkow | 1 | -13/+1 | |
This commit uses guest fences on vSync event instead of an articial fake fence we had. It also corrects to keep signaling display events while loading the game as the OS is suppose to send buffers to vSync during that time. | |||||
2019-08-21 | gpu: Change optional<reference_wrapper<T>> to T* for FramebufferConfig | ReinUsesLisp | 1 | -4/+4 | |
2019-07-05 | NVFlinger: Correct GCC compile error | Fernando Sahmkow | 1 | -2/+4 | |
2019-07-05 | gpu_asynch: Simplify synchronization to a simpler consumer->producer scheme. | Fernando Sahmkow | 1 | -15/+3 | |
2019-07-05 | Async GPU: do invalidate as synced operation | Fernando Sahmkow | 1 | -6/+1 | |
Async GPU: Always invalidate synced. | |||||
2019-06-05 | core/core_timing_util: Use std::chrono types for specifying time units | Lioncash | 1 | -1/+1 | |
Makes the interface more type-safe and consistent in terms of return values. | |||||
2019-05-14 | yuzu: Remove explicit types from locks where applicable | Lioncash | 1 | -1/+1 | |
With C++17's deduction guides, the type doesn't need to be explicitly specified within locking primitives anymore. | |||||
2019-05-10 | video_core/gpu_thread: Remove unused local variable | Lioncash | 1 | -1/+1 | |
Instead of retrieving the data from the std::variant instance, we can just check if the variant contains that type of data. This is essentially the same behavior, only it returns a bool indicating whether or not the type in the variant is currently active, instead of actually retrieving the data. | |||||
2019-04-12 | video_core/gpu: Create threads separately from initialization | Lioncash | 1 | -6/+11 | |
Like with CPU emulation, we generally don't want to fire off the threads immediately after the relevant classes are initialized, we want to do this after all necessary data is done loading first. This splits the thread creation into its own interface member function to allow controlling when these threads in particular get created. | |||||
2019-04-06 | video_core/gpu_thread: Silence truncation warning in ThreadManager's constructor | Lioncash | 1 | -1/+1 | |
Since c5d41fd812d7eb1a04f36b76c08fe971cee0868c callback parameters were changed to use an s64 to represent late cycles instead of an int, so this was causing a truncation warning to occur here. Changing it to s64 is sufficient to silence the warning. | |||||
2019-04-02 | gpu_thread: Improve synchronization by using CoreTiming. | bunnei | 1 | -10/+33 | |
2019-03-27 | gpu_thread: Remove unused dma_pusher class member variable from ThreadManager | Lioncash | 1 | -2/+2 | |
The pusher instance is only ever used in the constructor of the ThreadManager for creating the thread that the ThreadManager instance contains. Aside from that, the member is unused, so it can be removed. | |||||
2019-03-15 | gpu: Use host address for caching instead of guest address. | bunnei | 1 | -95/+41 | |
2019-03-07 | gpu_thread: Fix deadlock with threading idle state check. | bunnei | 1 | -4/+7 | |
2019-03-07 | gpu_thread: (HACK) Ignore flush on FlushAndInvalidateRegion. | bunnei | 1 | -3/+1 | |
2019-03-07 | gpu: Always flush. | bunnei | 1 | -8/+5 | |
2019-03-07 | gpu: Move command processing to another thread. | bunnei | 1 | -0/+154 | |