diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-12 13:52:49 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 21:49:26 +0200 |
commit | 7d1b974bcaf72c32910dcf4ff2d435f91cf40609 (patch) | |
tree | 64c69a14a9135b0027dea0d7e832e52710d7d8a8 /src/video_core/gpu.h | |
parent | nvflinger: Make the force 30 fps still force 30 fps (diff) | |
download | yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.tar yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.tar.gz yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.tar.bz2 yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.tar.lz yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.tar.xz yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.tar.zst yuzu-7d1b974bcaf72c32910dcf4ff2d435f91cf40609.zip |
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r-- | src/video_core/gpu.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 18ac3237e..9bd618941 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -172,9 +172,9 @@ public: u32 GetSyncpointValue(const u32 syncpoint_id) const; - void RegisterEvent(const u32 event_id, const u32 syncpoint_id, const u32 value); + void RegisterSyncptInterrupt(const u32 syncpoint_id, const u32 value); - void CancelEvent(const u32 event_id, const u32 syncpoint_id, const u32 value); + void CancelSyncptInterrupt(const u32 syncpoint_id, const u32 value); void Guard(bool guard_set) { if (guard_set) { @@ -253,7 +253,7 @@ public: virtual void FlushAndInvalidateRegion(CacheAddr addr, u64 size) = 0; protected: - virtual void TriggerCpuInterrupt(const u32 event_id) const = 0; + virtual void TriggerCpuInterrupt(const u32 syncpoint_id, const u32 value) const = 0; private: void ProcessBindMethod(const MethodCall& method_call); @@ -293,13 +293,7 @@ private: std::array<std::atomic<u32>, Service::Nvidia::MaxSyncPoints> syncpoints{}; - struct Event { - Event(const u32 event_id, const u32 value) : event_id(event_id), value(value) {} - u32 event_id; - u32 value; - }; - - std::array<std::list<Event>, Service::Nvidia::MaxSyncPoints> events; + std::array<std::list<u32>, Service::Nvidia::MaxSyncPoints> syncpt_interrupts; std::mutex sync_mutex; |