summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-06-10 08:19:27 -0400
committerGravatar FernandoS272019-07-05 15:49:20 -0400
commit0706d633bf7764455082cfdfdc35c14507cb6897 (patch)
tree00f07387d43df3cf85d786af7d9a35233bf2c9d5 /src/video_core/gpu.h
parentAsync GPU: do invalidate as synced operation (diff)
downloadyuzu-0706d633bf7764455082cfdfdc35c14507cb6897.tar.gz
yuzu-0706d633bf7764455082cfdfdc35c14507cb6897.tar.xz
yuzu-0706d633bf7764455082cfdfdc35c14507cb6897.zip
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.h8
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
132class GPU { 132class GPU {
133public: 133public:
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) \