Connect HW WA to the WA ID

HW WA 22016140776 is applied to GenNext with WA ID, but WA ID for PVC is not ready.
So we have to keep both.
Fixed initial value of an option.
This commit is contained in:
bcheng0127
2022-12-14 08:15:19 +00:00
committed by igcbot
parent 078961f0b0
commit 3a7dcaeba2
2 changed files with 8 additions and 1 deletions

View File

@ -579,3 +579,8 @@ SPDX-License-Identifier: MIT
WA_BUG_TYPE_UNKNOWN,
WA_BUG_PERF_IMPACT_UNKNOWN, WA_COMPONENT_UNKNOWN)
WA_DECLARE(
Wa_22016140776,
"Workaround",
WA_BUG_TYPE_CORRUPTION,
WA_BUG_PERF_IMPACT_UNKNOWN, WA_COMPONENT_UNKNOWN)

View File

@ -745,7 +745,9 @@ bool HWConformity::fixMathInst(INST_LIST_ITER it, G4_BB *bb) {
replaceDst(it, extype);
}
if (builder.hasHFMathSrcBroadCast() && (inst->getExecSize() != g4::SIMD1)) {
if ((builder.hasHFMathSrcBroadCast() ||
VISA_WA_CHECK(builder.getPWaTable(), Wa_22016140776)) &&
(inst->getExecSize() != g4::SIMD1)) {
auto src0 = inst->getSrc(0);
auto src1 = inst->getSrc(1);