aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/command_classes/host1x.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2020-12-28 01:02:06 -0500
committerameerj <52414509+ameerj@users.noreply.github.com>2021-01-07 14:33:45 -0500
commit2c27127d04a155fe0f893e84263d58f14473785d (patch)
treee72b7d973f5c0dd4a553f815a632bf8fcc687998 /src/video_core/command_classes/host1x.cpp
parentbcb702fa3e9d3f11748082f2ae9a5c1986b1ad8a (diff)
nvdec syncpt incorporation
laying the groundwork for async gpu, although this does not fully implement async nvdec operations
Diffstat (limited to 'src/video_core/command_classes/host1x.cpp')
-rw-r--r--src/video_core/command_classes/host1x.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/command_classes/host1x.cpp b/src/video_core/command_classes/host1x.cpp
index c4dd4881a..9d0a1b4d9 100644
--- a/src/video_core/command_classes/host1x.cpp
+++ b/src/video_core/command_classes/host1x.cpp
@@ -34,6 +34,8 @@ void Tegra::Host1x::ProcessMethod(Method method, const std::vector<u32>& argumen
}
void Tegra::Host1x::Execute(u32 data) {
- // This method waits on a valid syncpoint.
- // TODO: Implement when proper Async is in place
+ u32 syncpointId = (data & 0xFF);
+ u32 threshold = state.load_syncpoint_payload32;
+
+ gpu.WaitFence(syncpointId, threshold);
}