NVHOST_CTRl: Implement missing method and fix some stuffs.
This commit is contained in:
parent
8847b6645c
commit
199642590c
4 changed files with 35 additions and 6 deletions
|
@ -249,6 +249,11 @@ struct GPU::Impl {
|
|||
|
||||
void RegisterSyncptInterrupt(u32 syncpoint_id, u32 value) {
|
||||
std::scoped_lock lock{sync_mutex};
|
||||
u32 current_value = syncpoints.at(syncpoint_id).load();
|
||||
if ((static_cast<s32>(current_value) - static_cast<s32>(value)) >= 0) {
|
||||
TriggerCpuInterrupt(syncpoint_id, value);
|
||||
return;
|
||||
}
|
||||
auto& interrupt = syncpt_interrupts.at(syncpoint_id);
|
||||
bool contains = std::any_of(interrupt.begin(), interrupt.end(),
|
||||
[value](u32 in_value) { return in_value == value; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue