2019-09-19 01:32:33 +08:00
|
|
|
/*
|
2020-01-10 18:22:54 +08:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-09-19 01:32:33 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-06-02 23:04:11 +08:00
|
|
|
#include "shared/source/gen12lp/helpers_gen12lp.h"
|
2019-09-19 01:32:33 +08:00
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/command_stream/command_stream_receiver.h"
|
2020-06-29 19:07:41 +08:00
|
|
|
#include "shared/source/helpers/hw_helper.h"
|
2020-02-24 17:22:30 +08:00
|
|
|
|
2020-06-19 20:19:31 +08:00
|
|
|
#include "opencl/source/helpers/hardware_commands_helper.h"
|
|
|
|
|
2019-09-19 01:32:33 +08:00
|
|
|
namespace NEO {
|
|
|
|
namespace Gen12LPHelpers {
|
|
|
|
|
|
|
|
bool pipeControlWaRequired(PRODUCT_FAMILY productFamily) {
|
|
|
|
return (productFamily == PRODUCT_FAMILY::IGFX_TIGERLAKE_LP);
|
|
|
|
}
|
|
|
|
|
2020-06-19 20:19:31 +08:00
|
|
|
bool workaroundRequired(uint32_t lowestSteppingWithBug, uint32_t steppingWithFix, const HardwareInfo &hwInfo) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-09-19 01:32:33 +08:00
|
|
|
bool imagePitchAlignmentWaRequired(PRODUCT_FAMILY productFamily) {
|
|
|
|
return (productFamily == PRODUCT_FAMILY::IGFX_TIGERLAKE_LP);
|
|
|
|
}
|
|
|
|
|
|
|
|
void adjustCoherencyFlag(PRODUCT_FAMILY productFamily, bool &coherencyFlag) {}
|
|
|
|
|
|
|
|
bool isLocalMemoryEnabled(const HardwareInfo &hwInfo) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void initAdditionalGlobalMMIO(const CommandStreamReceiver &commandStreamReceiver, AubMemDump::AubStream &stream) {}
|
|
|
|
|
|
|
|
uint64_t getPPGTTAdditionalBits(GraphicsAllocation *graphicsAllocation) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void adjustAubGTTData(const CommandStreamReceiver &commandStreamReceiver, AubGTTData &data) {}
|
|
|
|
|
|
|
|
void setAdditionalPipelineSelectFields(void *pipelineSelectCmd,
|
|
|
|
const PipelineSelectArgs &pipelineSelectArgs,
|
|
|
|
const HardwareInfo &hwInfo) {}
|
|
|
|
|
2020-01-27 22:42:06 +08:00
|
|
|
bool isOffsetToSkipSetFFIDGPWARequired(const HardwareInfo &hwInfo) {
|
2020-06-29 19:07:41 +08:00
|
|
|
HwHelper &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
|
|
|
return hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo);
|
2020-01-27 22:42:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) {
|
2020-06-29 19:07:41 +08:00
|
|
|
HwHelper &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
|
|
|
|
return ((hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP) & hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo));
|
2020-01-27 22:42:06 +08:00
|
|
|
}
|
|
|
|
|
2020-03-19 22:15:51 +08:00
|
|
|
bool is3DPipelineSelectWARequired(const HardwareInfo &hwInfo) {
|
|
|
|
return hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP;
|
|
|
|
}
|
|
|
|
|
2019-09-19 01:32:33 +08:00
|
|
|
} // namespace Gen12LPHelpers
|
|
|
|
} // namespace NEO
|