mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
f629b403c8
commit
cf6d706d4b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user