Skip to content

Commit 71b6ed0

Browse files
committed
Improve DXIL ControlFlow detection of loop blocks
Now handles finding all loop blocks in a loop where a block (2) in the loop is only in a single path: 0 -> 1 -> 3 - 1 0 -> 1 -> 2 -> 3 3 -> 4 -> END
1 parent da9207b commit 71b6ed0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

renderdoc/driver/shaders/dxil/dxil_controlflow.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ int32_t ControlFlow::BlockInAnyPath(uint32_t block, uint32_t pathIdx, int32_t st
130130
if(endNode == PATH_END)
131131
return -1;
132132

133-
m_CheckedPaths[pathIdx] = true;
134-
135133
// Check any paths linked to by the end node of the current path
136134
const rdcarray<uint32_t> &childPathsToCheck = m_BlockPathLinks.at(endNode);
137135
for(uint32_t childPathIdx : childPathsToCheck)

0 commit comments

Comments
 (0)