Skip to content

Commit 5e6b681

Browse files
krystian-andrzejewskiigcbot
authored andcommitted
Fix emitting powi
This change is to address the issue related to the case when `src0` is immediate. `src1` cannot be expressed by a proper vISA variable from the immediate value.
1 parent 81c0fde commit 5e6b681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,7 @@ void EmitPass::Powi(const SSource sources[2], const DstModifier& modifier)
27022702
}
27032703
else
27042704
{
2705-
src1Float = m_currShader->GetNewVariable(src0);
2705+
src1Float = m_currShader->GetNewVariable(src1Int->GetNumberElement(), ISA_TYPE_F, src1Int->GetAlign(), CName(src1Int->getName(), "float"));
27062706
m_encoder->Cast(src1Float, src1Int);
27072707
}
27082708
m_encoder->SetDstModifier(modifier);

0 commit comments

Comments
 (0)