[L0] Fix regression on fence host sync

Change-Id: I769212c4e7478959b0e9a126064eb0ab09a3f183
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
This commit is contained in:
Aravind Gopalakrishnan
2020-03-06 15:52:16 -08:00
parent 6cd5508a9a
commit 28c114e700

View File

@@ -11,6 +11,8 @@
#include "shared/source/memory_manager/memory_manager.h"
#include "shared/source/utilities/cpuintrinsics.h"
#include "hw_helpers.h"
namespace L0 {
struct FenceImp : public Fence {
@@ -89,6 +91,8 @@ ze_result_t FenceImp::hostSynchronize(uint32_t timeout) {
return ZE_RESULT_SUCCESS;
}
waitForTaskCountWithKmdNotifyFallbackHelper(cmdQueue->getCsr(), cmdQueue->getTaskCount(), 0, false, false);
if (timeout == 0) {
return queryStatus();
}