summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu_synch.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-29video_core: gpu: Refactor out synchronous/asynchronous GPU implementations.bunnei1-41/+0
- We must always use a GPU thread now, even with synchronous GPU.
2020-12-04video_core: Resolve more variable shadowing scenariosLioncash1-1/+1
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-27video_core: NVDEC Implementationameerj1-1/+2
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-08-22video_core: Initialize renderer with a GPUReinUsesLisp1-5/+1
Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance.
2020-06-27General: Correct rebase, sync gpu and context management.Fernando Sahmkow1-0/+2
2020-04-06GPU: Setup Flush/Invalidate to use VAddr instead of CacheAddrFernando Sahmkow1-3/+3
2020-03-25Frontend/GPU: Refactor context managementJames Rowe1-1/+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
2019-10-05Core: Wait for GPU to be idle before shutting down.Fernando Sahmkow1-0/+1
2019-08-21gpu: Change optional<reference_wrapper<T>> to T* for FramebufferConfigReinUsesLisp1-3/+2
2019-07-05NVServices: Styling, define constructors as explicit and correctionsFernando Sahmkow1-1/+2
2019-07-05GPU: Correct Interrupts to interrupt on syncpt/value instead of event, mirroring hardwareFernando Sahmkow1-1/+1
2019-07-05Gpu: Implement Hardware Interrupt Manager and manage GPU interruptsFernando Sahmkow1-0/+3
2019-04-12video_core/gpu: Create threads separately from initializationLioncash1-0/+1
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-03-15gpu: Use host address for caching instead of guest address.bunnei1-3/+3
2019-03-07video_core/gpu: Make GPU's destructor virtualLioncash1-1/+1
Because of the recent separation of GPU functionality into sync/async variants, we need to mark the destructor virtual to provide proper destruction behavior, given we use the base class within the System class. Prior to this, it was undefined behavior whether or not the destructor in the derived classes would ever execute.
2019-03-07gpu: Refactor a/synchronous implementations into their own classes.bunnei1-0/+29