diff options
| author | bunnei <bunneidev@gmail.com> | 2020-07-18 00:48:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-18 00:48:27 -0400 |
| commit | 90cbcaa44a3901a832556258b5b97d8d7de34ca9 (patch) | |
| tree | 570ff95dae035757fb2831804aae4f4ca681d354 /src/video_core/gpu.h | |
| parent | 821d295f24136b7550fde1376810ca3756a58403 (diff) | |
| parent | 967307d3beb59b64e40c4b3f44ed839d87325e5c (diff) | |
Merge pull request #4273 from ogniK5377/async-shaders-prod
video_core: Add asynchronous shader decompilation and compilation
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 2c42483bd..8d04d9fd9 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -33,6 +33,7 @@ class System; namespace VideoCore { class RendererBase; +class ShaderNotify; } // namespace VideoCore namespace Tegra { @@ -207,6 +208,14 @@ public: return *renderer; } + VideoCore::ShaderNotify& ShaderNotify() { + return *shader_notify; + } + + const VideoCore::ShaderNotify& ShaderNotify() const { + return *shader_notify; + } + // Waits for the GPU to finish working virtual void WaitIdle() const = 0; @@ -347,6 +356,8 @@ private: std::unique_ptr<Engines::MaxwellDMA> maxwell_dma; /// Inline memory engine std::unique_ptr<Engines::KeplerMemory> kepler_memory; + /// Shader build notifier + std::unique_ptr<VideoCore::ShaderNotify> shader_notify; std::array<std::atomic<u32>, Service::Nvidia::MaxSyncPoints> syncpoints{}; |
