summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-11-29 14:58:47 +0100
committerLioncash <mathew1800@gmail.com>2022-11-29 14:58:50 +0100
commitb6d93b2c778133819aebb2baf6083a1ba0440891 (patch)
tree8ebe3644daa9e42f9931e646747cff8afb1c7bf8 /src
parenthost1x/syncpoint_manager: Pass DeregisterAction() handle as const-ref (diff)
downloadyuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.tar
yuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.tar.gz
yuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.tar.bz2
yuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.tar.lz
yuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.tar.xz
yuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.tar.zst
yuzu-b6d93b2c778133819aebb2baf6083a1ba0440891.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/host1x/syncpoint_manager.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/host1x/syncpoint_manager.h b/src/video_core/host1x/syncpoint_manager.h
index feafc926e..847ed20c8 100644
--- a/src/video_core/host1x/syncpoint_manager.h
+++ b/src/video_core/host1x/syncpoint_manager.h
@@ -36,16 +36,14 @@ public:
template <typename Func>
ActionHandle RegisterGuestAction(u32 syncpoint_id, u32 expected_value, Func&& action) {
- std::function<void()> func(action);
return RegisterAction(syncpoints_guest[syncpoint_id], guest_action_storage[syncpoint_id],
- expected_value, std::move(func));
+ expected_value, std::move(action));
}
template <typename Func>
ActionHandle RegisterHostAction(u32 syncpoint_id, u32 expected_value, Func&& action) {
- std::function<void()> func(action);
return RegisterAction(syncpoints_host[syncpoint_id], host_action_storage[syncpoint_id],
- expected_value, std::move(func));
+ expected_value, std::move(action));
}
void DeregisterGuestAction(u32 syncpoint_id, const ActionHandle& handle);