/* * Copyright (C) 2020-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #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 { template class MockGfxCoreHelperWithFenceAllocation : public GfxCoreHelperHw { public: bool isFenceAllocationRequired(const HardwareInfo &hwInfo) const override { return true; } }; template class MockGfxCoreHelperWithLocalMemory : public GfxCoreHelperHw { public: bool isLocalMemoryEnabled(const HardwareInfo &hwInfo) const override { return true; } }; template struct MockGfxCoreHelperHwWithSetIsLockable : public GfxCoreHelperHw { void setExtraAllocationData(AllocationData &allocationData, const AllocationProperties &properties, const HardwareInfo &hwInfo) const override { allocationData.storageInfo.isLockable = setIsLockable; } bool setIsLockable = true; }; } // namespace NEO