Add missing check during ocl buffer create on Windows

resolves problem with debug break
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2022-12-14 11:27:22 +00:00
committed by Compute-Runtime-Automation
parent f629b403c8
commit cf6d706d4b
9 changed files with 210 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
#pragma once
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/helpers/hw_info.h"
#include "shared/source/memory_manager/allocation_properties.h"
namespace NEO {
@@ -26,4 +27,12 @@ class MockGfxCoreHelperWithLocalMemory : public GfxCoreHelperHw<GfxFamily> {
return true;
}
};
template <typename GfxFamily>
struct MockGfxCoreHelperHwWithSetIsLockable : public GfxCoreHelperHw<GfxFamily> {
void setExtraAllocationData(AllocationData &allocationData, const AllocationProperties &properties, const HardwareInfo &hwInfo) const override {
allocationData.storageInfo.isLockable = setIsLockable;
}
bool setIsLockable = true;
};
} // namespace NEO