diff options
Diffstat (limited to 'src/video_core/gpu.h')
| -rw-r--r-- | src/video_core/gpu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index ab1a4bdd4..18ac3237e 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -131,7 +131,7 @@ class MemoryManager; | |||
| 131 | 131 | ||
| 132 | class GPU { | 132 | class GPU { |
| 133 | public: | 133 | public: |
| 134 | explicit GPU(Core::System& system, VideoCore::RendererBase& renderer); | 134 | explicit GPU(Core::System& system, VideoCore::RendererBase& renderer, bool is_async); |
| 135 | 135 | ||
| 136 | virtual ~GPU(); | 136 | virtual ~GPU(); |
| 137 | 137 | ||
| @@ -184,6 +184,10 @@ public: | |||
| 184 | } | 184 | } |
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | bool IsAsync() const { | ||
| 188 | return is_async; | ||
| 189 | } | ||
| 190 | |||
| 187 | /// Returns a const reference to the GPU DMA pusher. | 191 | /// Returns a const reference to the GPU DMA pusher. |
| 188 | const Tegra::DmaPusher& DmaPusher() const; | 192 | const Tegra::DmaPusher& DmaPusher() const; |
| 189 | 193 | ||
| @@ -298,6 +302,8 @@ private: | |||
| 298 | std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events; | 302 | std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events; |
| 299 | 303 | ||
| 300 | std::mutex sync_mutex; | 304 | std::mutex sync_mutex; |
| 305 | |||
| 306 | const bool is_async; | ||
| 301 | }; | 307 | }; |
| 302 | 308 | ||
| 303 | #define ASSERT_REG_POSITION(field_name, position) \ | 309 | #define ASSERT_REG_POSITION(field_name, position) \ |