nv_host_ctrl: Make Sync GPU variant always return synced result.
This commit is contained in:
parent
600dddf88d
commit
0706d633bf
5 changed files with 16 additions and 5 deletions
|
@ -60,6 +60,11 @@ u32 nvhost_ctrl::IocCtrlEventWait(const std::vector<u8>& input, std::vector<u8>&
|
|||
}
|
||||
|
||||
auto& gpu = Core::System::GetInstance().GPU();
|
||||
// This is mostly to take into account unimplemented features. As synced
|
||||
// gpu is always synced.
|
||||
if (!gpu.IsAsync()) {
|
||||
return NvResult::Success;
|
||||
}
|
||||
gpu.Guard(true);
|
||||
u32 current_syncpoint_value = gpu.GetSyncpointValue(params.syncpt_id);
|
||||
if (current_syncpoint_value >= params.threshold) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue