Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad7678c8 authored by Miao Wang's avatar Miao Wang
Browse files

Fix the timing initialization error for failed executeFenced case

Fixes: 152075771
Test: mm
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I5829397346354ee3fc4a58b0a418197a1eee47cc
parent 104fe833
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -648,6 +648,7 @@ void EvaluatePreparedModel(const sp<IDevice>& device, const sp<IPreparedModel>&
                ASSERT_EQ(syncFenceHandle.getNativeHandle(), nullptr);
                ASSERT_EQ(syncFenceHandle.getNativeHandle(), nullptr);
                ASSERT_EQ(fencedCallback, nullptr);
                ASSERT_EQ(fencedCallback, nullptr);
                executionStatus = result;
                executionStatus = result;
                timing = {UINT64_MAX, UINT64_MAX};
            } else if (syncFenceHandle.getNativeHandle()) {
            } else if (syncFenceHandle.getNativeHandle()) {
                // If a sync fence is returned, try start another run waiting for the sync fence.
                // If a sync fence is returned, try start another run waiting for the sync fence.
                ret = preparedModel->executeFenced(request, {syncFenceHandle},
                ret = preparedModel->executeFenced(request, {syncFenceHandle},