forked from Mirror/Ryujinx
android-fence: call callback when fence is invalid (#1881)
This commit is contained in:
parent
36c6e67df2
commit
996e6905ba
1 changed files with 8 additions and 1 deletions
|
@ -70,7 +70,14 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
|
|||
{
|
||||
ref NvFence fence = ref NvFences[FenceCount - 1];
|
||||
|
||||
gpuContext.Synchronization.RegisterCallbackOnSyncpoint(fence.Id, fence.Value, callback);
|
||||
if (fence.IsValid())
|
||||
{
|
||||
gpuContext.Synchronization.RegisterCallbackOnSyncpoint(fence.Id, fence.Value, callback);
|
||||
}
|
||||
else
|
||||
{
|
||||
callback();
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetFlattenedSize()
|
||||
|
|
Reference in a new issue