Skip to content

Commit 4c9f80e

Browse files
srividyakarumurisys_zuul
authored andcommitted
Fix issues in Interesting constants output update in SKerenelProgram
Change-Id: I03f7efd9c57b670ed52b907d9bfb86fcc18a5553
1 parent d075872 commit 4c9f80e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/FindInterestingConstants.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ bool SConstantAddrValue_LessThanOp(const SConstantAddrValue& left, const SConsta
624624
template<typename ContextT>
625625
void FindInterestingConstants::copyInterestingConstants(ContextT* pShaderCtx)
626626
{
627+
pShaderCtx->programOutput.m_pInterestingConstants.clear();
627628
for (auto I = m_InterestingConstants.begin(), E = m_InterestingConstants.end(); I != E; I++)
628629
{
629630
if (I->second.size())
@@ -641,7 +642,6 @@ bool FindInterestingConstants::doFinalization(llvm::Module& M)
641642
{
642643
if (m_InterestingConstants.size() != 0)
643644
{
644-
645645
if (m_context->type == ShaderType::PIXEL_SHADER)
646646
{
647647
PixelShaderContext* pShaderCtx = static_cast <PixelShaderContext*>(m_context);

0 commit comments

Comments
 (0)