aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu_thread.cpp
AgeCommit message (Collapse)Author
2020-04-06GPU: Setup Flush/Invalidate to use VAddr instead of CacheAddrFernando Sahmkow
2020-03-24Frontend/GPU: Refactor context managementJames Rowe
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-25core: frontend: Refactor scope_acquire_window_context to scope_acquire_context.bunnei
2019-11-27video_core/gpu_thread: Tidy up SwapBuffers()Lioncash
We can just use std::nullopt and std::make_optional to make this a little bit less noisy.
2019-11-23gpu_thread: Don't spin wait if there are no GPU commands.bunnei
2019-10-11AsyncGpu: Address FeedbackFernando Sahmkow
2019-10-04Core: Wait for GPU to be idle before shutting down.Fernando Sahmkow
2019-10-04GPU_Async: Correct fences, display events and more.Fernando Sahmkow
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-21gpu: Change optional<reference_wrapper<T>> to T* for FramebufferConfigReinUsesLisp
2019-07-05NVFlinger: Correct GCC compile errorFernando Sahmkow
2019-07-05gpu_asynch: Simplify synchronization to a simpler consumer->producer scheme.Fernando Sahmkow
2019-07-05Async GPU: do invalidate as synced operationFernando Sahmkow
Async GPU: Always invalidate synced.
2019-06-04core/core_timing_util: Use std::chrono types for specifying time unitsLioncash
Makes the interface more type-safe and consistent in terms of return values.
2019-05-14yuzu: Remove explicit types from locks where applicableLioncash
With C++17's deduction guides, the type doesn't need to be explicitly specified within locking primitives anymore.
2019-05-09video_core/gpu_thread: Remove unused local variableLioncash
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-11video_core/gpu: Create threads separately from initializationLioncash
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-05video_core/gpu_thread: Silence truncation warning in ThreadManager's constructorLioncash
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-01gpu_thread: Improve synchronization by using CoreTiming.bunnei
2019-03-27gpu_thread: Remove unused dma_pusher class member variable from ThreadManagerLioncash
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-14gpu: Use host address for caching instead of guest address.bunnei
2019-03-06gpu_thread: Fix deadlock with threading idle state check.bunnei
2019-03-06gpu_thread: (HACK) Ignore flush on FlushAndInvalidateRegion.bunnei
2019-03-06gpu: Always flush.bunnei
2019-03-06gpu: Move command processing to another thread.bunnei