diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-10 08:19:27 -0400 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 15:49:20 -0400 |
commit | 0706d633bf7764455082cfdfdc35c14507cb6897 (patch) | |
tree | 00f07387d43df3cf85d786af7d9a35233bf2c9d5 /src/video_core/gpu.h | |
parent | 600dddf88db0a786b945c65d27da05105410bfe6 (diff) |
nv_host_ctrl: Make Sync GPU variant always return synced result.
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; class GPU { public: - explicit GPU(Core::System& system, VideoCore::RendererBase& renderer); + explicit GPU(Core::System& system, VideoCore::RendererBase& renderer, bool is_async); virtual ~GPU(); @@ -184,6 +184,10 @@ public: } } + bool IsAsync() const { + return is_async; + } + /// Returns a const reference to the GPU DMA pusher. const Tegra::DmaPusher& DmaPusher() const; @@ -298,6 +302,8 @@ private: std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events; std::mutex sync_mutex; + + const bool is_async; }; #define ASSERT_REG_POSITION(field_name, position) \ |