mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Add helper for stepping isWorkaroundRequired
Related-To: NEO-4751 Change-Id: I430a354314e0f3d7a042505c377f3b7d9e9d588b Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b73c757a82
commit
ef4cc0e685
@@ -9,6 +9,8 @@
|
||||
|
||||
#include "shared/source/command_stream/command_stream_receiver.h"
|
||||
|
||||
#include "opencl/source/helpers/hardware_commands_helper.h"
|
||||
|
||||
namespace NEO {
|
||||
namespace Gen12LPHelpers {
|
||||
|
||||
@@ -16,6 +18,11 @@ bool pipeControlWaRequired(PRODUCT_FAMILY productFamily) {
|
||||
return (productFamily == PRODUCT_FAMILY::IGFX_TIGERLAKE_LP);
|
||||
}
|
||||
|
||||
bool workaroundRequired(uint32_t lowestSteppingWithBug, uint32_t steppingWithFix, const HardwareInfo &hwInfo) {
|
||||
DEBUG_BREAK_IF(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool imagePitchAlignmentWaRequired(PRODUCT_FAMILY productFamily) {
|
||||
return (productFamily == PRODUCT_FAMILY::IGFX_TIGERLAKE_LP);
|
||||
}
|
||||
@@ -39,7 +46,7 @@ void setAdditionalPipelineSelectFields(void *pipelineSelectCmd,
|
||||
const HardwareInfo &hwInfo) {}
|
||||
|
||||
bool isOffsetToSkipSetFFIDGPWARequired(const HardwareInfo &hwInfo) {
|
||||
return (hwInfo.platform.usRevId == REVISION_A0);
|
||||
return HardwareCommandsHelper<TGLLPFamily>::isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo);
|
||||
}
|
||||
|
||||
bool isForceDefaultRCSEngineWARequired(const HardwareInfo &hwInfo) {
|
||||
@@ -47,7 +54,7 @@ bool isForceDefaultRCSEngineWARequired(const HardwareInfo &hwInfo) {
|
||||
}
|
||||
|
||||
bool isForceEmuInt32DivRemSPWARequired(const HardwareInfo &hwInfo) {
|
||||
return ((hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP) & (hwInfo.platform.usRevId == REVISION_A0));
|
||||
return ((hwInfo.platform.eProductFamily == IGFX_TIGERLAKE_LP) & HardwareCommandsHelper<TGLLPFamily>::isWorkaroundRequired(REVISION_A0, REVISION_B, hwInfo));
|
||||
}
|
||||
|
||||
bool is3DPipelineSelectWARequired(const HardwareInfo &hwInfo) {
|
||||
|
||||
Reference in New Issue
Block a user