diff options
| author | 2022-01-30 22:26:01 +0100 | |
|---|---|---|
| committer | 2022-10-06 21:00:52 +0200 | |
| commit | 2931101e6f5aa755566ef40f6e6dc71909fd3e92 (patch) | |
| tree | 76e847786e355e24a136562d42177b895a03315e /src/video_core/host1x/control.cpp | |
| parent | VideoCore: Refactor syncing. (diff) | |
| download | yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.tar.gz yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.tar.xz yuzu-2931101e6f5aa755566ef40f6e6dc71909fd3e92.zip | |
NVDRV: Refactor Host1x
Diffstat (limited to 'src/video_core/host1x/control.cpp')
| -rw-r--r-- | src/video_core/host1x/control.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/host1x/control.cpp b/src/video_core/host1x/control.cpp index b72b01aa3..a81c635ae 100644 --- a/src/video_core/host1x/control.cpp +++ b/src/video_core/host1x/control.cpp | |||
| @@ -3,13 +3,12 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/assert.h" | 5 | #include "common/assert.h" |
| 6 | #include "video_core/gpu.h" | ||
| 7 | #include "video_core/host1x/control.h" | 6 | #include "video_core/host1x/control.h" |
| 8 | #include "video_core/host1x/host1x.h" | 7 | #include "video_core/host1x/host1x.h" |
| 9 | 8 | ||
| 10 | namespace Tegra::Host1x { | 9 | namespace Tegra::Host1x { |
| 11 | 10 | ||
| 12 | Control::Control(GPU& gpu_) : gpu(gpu_) {} | 11 | Control::Control(Host1x& host1x_) : host1x(host1x_) {} |
| 13 | 12 | ||
| 14 | Control::~Control() = default; | 13 | Control::~Control() = default; |
| 15 | 14 | ||
| @@ -29,7 +28,7 @@ void Control::ProcessMethod(Method method, u32 argument) { | |||
| 29 | } | 28 | } |
| 30 | 29 | ||
| 31 | void Control::Execute(u32 data) { | 30 | void Control::Execute(u32 data) { |
| 32 | gpu.Host1x().GetSyncpointManager().WaitHost(data, syncpoint_value); | 31 | host1x.GetSyncpointManager().WaitHost(data, syncpoint_value); |
| 33 | } | 32 | } |
| 34 | 33 | ||
| 35 | } // namespace Tegra::Host1x | 34 | } // namespace Tegra::Host1x |