@@ -673,7 +673,7 @@ uint32_t ControlFlow::GetNextUniformBlock(uint32_t from) const
673
673
uint32_t bestBlock = from;
674
674
for (uint32_t uniform : m_UniformBlocks)
675
675
{
676
- const rdcarray<BlockPath> &paths = m_PathSets[PathType::NoLoops ];
676
+ const rdcarray<BlockPath> &paths = m_PathSets[PathType::IncLoops ];
677
677
for (uint32_t pathIdx = 0 ; pathIdx < paths.size (); ++pathIdx)
678
678
{
679
679
m_CheckedPaths.clear ();
@@ -684,7 +684,7 @@ uint32_t ControlFlow::GetNextUniformBlock(uint32_t from) const
684
684
// BlockInAnyPath will also check all paths linked to from the end node of the path
685
685
if (startIdx != -1 )
686
686
{
687
- int32_t steps = BlockInAnyPath (PathType::NoLoops , uniform, pathIdx, startIdx + 1 , 0 );
687
+ int32_t steps = BlockInAnyPath (PathType::IncLoops , uniform, pathIdx, startIdx + 1 , 0 );
688
688
if (steps != -1 )
689
689
{
690
690
if (steps < minSteps)
@@ -699,12 +699,12 @@ uint32_t ControlFlow::GetNextUniformBlock(uint32_t from) const
699
699
return bestBlock;
700
700
}
701
701
702
- // Ignores loops
702
+ // Include loops
703
703
bool ControlFlow::IsForwardConnection (uint32_t from, uint32_t to) const
704
704
{
705
705
if (m_Connections[from][to] == ConnectionState::Unknown)
706
706
{
707
- if (IsBlockConnected (PathType::NoLoops , from, to))
707
+ if (IsBlockConnected (PathType::IncLoops , from, to))
708
708
m_Connections[from][to] = ConnectionState::Connected;
709
709
else
710
710
m_Connections[from][to] = ConnectionState::NotConnected;
0 commit comments