1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-11 22:02:02 +00:00

android-fence: call callback when fence is invalid (#1881)

This commit is contained in:
Bruno Macabeus 2021-01-13 09:53:13 +00:00 committed by GitHub
parent 36c6e67df2
commit 996e6905ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,8 +70,15 @@ namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
{ {
ref NvFence fence = ref NvFences[FenceCount - 1]; ref NvFence fence = ref NvFences[FenceCount - 1];
if (fence.IsValid())
{
gpuContext.Synchronization.RegisterCallbackOnSyncpoint(fence.Id, fence.Value, callback); gpuContext.Synchronization.RegisterCallbackOnSyncpoint(fence.Id, fence.Value, callback);
} }
else
{
callback();
}
}
public uint GetFlattenedSize() public uint GetFlattenedSize()
{ {