2020-02-13 20:28:21 +08:00
|
|
|
/*
|
2021-08-25 17:31:44 +08:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-02-13 20:28:21 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/hw_helper.h"
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2020-02-13 20:28:21 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
class MockHwHelperWithFenceAllocation : public HwHelperHw<GfxFamily> {
|
|
|
|
public:
|
|
|
|
bool isFenceAllocationRequired(const HardwareInfo &hwInfo) const override {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
2020-02-19 21:45:06 +08:00
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
class MockHwHelperWithLocalMemory : public HwHelperHw<GfxFamily> {
|
|
|
|
public:
|
|
|
|
bool isLocalMemoryEnabled(const HardwareInfo &hwInfo) const override {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
2020-02-13 20:28:21 +08:00
|
|
|
} // namespace NEO
|