summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 94afc91f8..334dec48c 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -168,20 +168,16 @@ public:
168 /// Returns a reference to the GPU DMA pusher. 168 /// Returns a reference to the GPU DMA pusher.
169 Tegra::DmaPusher& DmaPusher(); 169 Tegra::DmaPusher& DmaPusher();
170 170
171 void IncrementSyncPoint(const u32 syncpoint_id); 171 void IncrementSyncPoint(u32 syncpoint_id);
172 172
173 u32 GetSyncpointValue(const u32 syncpoint_id) const; 173 u32 GetSyncpointValue(u32 syncpoint_id) const;
174 174
175 void RegisterSyncptInterrupt(const u32 syncpoint_id, const u32 value); 175 void RegisterSyncptInterrupt(u32 syncpoint_id, u32 value);
176 176
177 bool CancelSyncptInterrupt(const u32 syncpoint_id, const u32 value); 177 bool CancelSyncptInterrupt(u32 syncpoint_id, u32 value);
178 178
179 void Guard(bool guard_set) { 179 std::unique_lock<std::mutex> LockSync() {
180 if (guard_set) { 180 return std::unique_lock{sync_mutex};
181 sync_mutex.lock();
182 } else {
183 sync_mutex.unlock();
184 }
185 } 181 }
186 182
187 bool IsAsync() const { 183 bool IsAsync() const {
@@ -253,7 +249,7 @@ public:
253 virtual void FlushAndInvalidateRegion(CacheAddr addr, u64 size) = 0; 249 virtual void FlushAndInvalidateRegion(CacheAddr addr, u64 size) = 0;
254 250
255protected: 251protected:
256 virtual void TriggerCpuInterrupt(const u32 syncpoint_id, const u32 value) const = 0; 252 virtual void TriggerCpuInterrupt(u32 syncpoint_id, u32 value) const = 0;
257 253
258private: 254private:
259 void ProcessBindMethod(const MethodCall& method_call); 255 void ProcessBindMethod(const MethodCall& method_call);