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-07-17 23:04:52 +08:00
|
|
|
uint32_t getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) {
|
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t getSteppingFromHwRevId(uint32_t hwRevId, const HardwareInfo &hwInfo) {
|
|
|
|
return CommonConstants::invalidStepping;
|
2020-06-19 20:19:31 +08:00
|
|
|
}
|
|
|
|
|
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);
|
2020-08-21 02:50:19 +08:00
|
|
|
return (((hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP) & (hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo))) ||
|
|
|
|
((hwInfo.platform.eProductFamily == IGFX_ROCKETLAKE) & (hwHelper.isWorkaroundRequired(REVISION_A0, REVISION_C, hwInfo))));
|
2020-01-27 22:42:06 +08:00
|
|
|
}
|
|
|
|
|
2020-03-19 22:15:51 +08:00
|
|
|
bool is3DPipelineSelectWARequired(const HardwareInfo &hwInfo) {
|
2020-08-21 02:50:19 +08:00
|
|
|
return (hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP || hwInfo.platform.eProductFamily == IGFX_ROCKETLAKE);
|
2020-03-19 22:15:51 +08:00
|
|
|
}
|
|
|
|
|
2020-08-31 21:34:23 +08:00
|
|
|
bool forceBlitterUseForGlobalBuffers(const HardwareInfo &hwInfo, GraphicsAllocation *allocation) {
|
2020-08-10 16:25:07 +08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-09-19 01:32:33 +08:00
|
|
|
} // namespace Gen12LPHelpers
|
|
|
|
} // namespace NEO
|