File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -401,9 +401,6 @@ void ConstantCoalescing::ProcessBlock(
401
401
std::vector<BufChunk*> & indcb_owloads,
402
402
std::vector<BufChunk*> & indcb_gathers)
403
403
{
404
- bool isCPS = false ;
405
-
406
- bool skipLdrawOpt = isCPS;
407
404
// get work-item analysis, need to update uniformness information
408
405
for (BasicBlock::iterator BBI = blk->begin (), BBE = blk->end ();
409
406
BBI != BBE; ++BBI)
@@ -450,18 +447,15 @@ void ConstantCoalescing::ProcessBlock(
450
447
uint addrSpace = ldRaw->getResourceValue ()->getType ()->getPointerAddressSpace ();
451
448
if (wiAns->isUniform (ldRaw))
452
449
{
453
- if (!skipLdrawOpt || (bufType != BINDLESS))
454
- {
455
- MergeUniformLoad (
456
- ldRaw,
457
- ldRaw->getResourceValue (),
458
- addrSpace,
459
- baseOffsetInBytes,
460
- offsetInBytes,
461
- maxEltPlus,
462
- Extension,
463
- baseOffsetInBytes ? indcb_owloads : dircb_owloads);
464
- }
450
+ MergeUniformLoad (
451
+ ldRaw,
452
+ ldRaw->getResourceValue (),
453
+ addrSpace,
454
+ baseOffsetInBytes,
455
+ offsetInBytes,
456
+ maxEltPlus,
457
+ Extension,
458
+ baseOffsetInBytes ? indcb_owloads : dircb_owloads);
465
459
}
466
460
else if (bufType == BINDLESS_CONSTANT_BUFFER
467
461
|| bufType == SSH_BINDLESS_CONSTANT_BUFFER
You can’t perform that action at this time.
0 commit comments