summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-01-30 23:13:46 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:52 +0200
commit920429fde745b3bf6d33b6ca991628f64988f754 (patch)
tree3c10b169e9e94041955500e4ed46e664255e4349 /src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
parentNVDRV: Refactor Host1x (diff)
downloadyuzu-920429fde745b3bf6d33b6ca991628f64988f754.tar
yuzu-920429fde745b3bf6d33b6ca991628f64988f754.tar.gz
yuzu-920429fde745b3bf6d33b6ca991628f64988f754.tar.bz2
yuzu-920429fde745b3bf6d33b6ca991628f64988f754.tar.lz
yuzu-920429fde745b3bf6d33b6ca991628f64988f754.tar.xz
yuzu-920429fde745b3bf6d33b6ca991628f64988f754.tar.zst
yuzu-920429fde745b3bf6d33b6ca991628f64988f754.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
index db3e266ad..3f981af5a 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp
@@ -14,6 +14,7 @@
#include "video_core/control/channel_state.h"
#include "video_core/engines/puller.h"
#include "video_core/gpu.h"
+#include "video_core/host1x/host1x.h"
namespace Service::Nvidia::Devices {
namespace {
@@ -31,7 +32,8 @@ nvhost_gpu::nvhost_gpu(Core::System& system_, EventInterface& events_interface_,
syncpoint_manager{core_.GetSyncpointManager()}, nvmap{core.GetNvMapFile()},
channel_state{system.GPU().AllocateChannel()} {
channel_fence.id = syncpoint_manager.AllocateSyncpoint();
- channel_fence.value = system_.GPU().GetSyncpointValue(channel_fence.id);
+ channel_fence.value =
+ system_.Host1x().GetSyncpointManager().GetGuestSyncpointValue(channel_fence.id);
sm_exception_breakpoint_int_report_event =
events_interface.CreateEvent("GpuChannelSMExceptionBreakpointInt");
sm_exception_breakpoint_pause_report_event =
@@ -189,7 +191,8 @@ NvResult nvhost_gpu::AllocGPFIFOEx2(const std::vector<u8>& input, std::vector<u8
}
system.GPU().InitChannel(*channel_state);
- channel_fence.value = system.GPU().GetSyncpointValue(channel_fence.id);
+ channel_fence.value =
+ system.Host1x().GetSyncpointManager().GetGuestSyncpointValue(channel_fence.id);
params.fence_out = channel_fence;