Skip to content

Commit 76c4cdf

Browse files
vaalfrejaigcbot
authored andcommitted
Relax ldraw merge condition.
Enable ldraw merge on all Pixel shaders except for CPS.
1 parent 78db6ad commit 76c4cdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IGC/Compiler/CISACodeGen/ConstantCoalescing.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ void ConstantCoalescing::ProcessBlock(
409409
break;
410410
}
411411
}
412-
bool skipLdrawOpt = (m_ctx->type == ShaderType::PIXEL_SHADER) || bbHasStores;
412+
413+
bool isCPS = false;
414+
415+
bool skipLdrawOpt = isCPS || bbHasStores;
413416
// get work-item analysis, need to update uniformness information
414417
for (BasicBlock::iterator BBI = blk->begin(), BBE = blk->end();
415418
BBI != BBE; ++BBI)

0 commit comments

Comments
 (0)