Skip to content

Commit

Permalink
Improve DXIL ControlFlow detection of loop blocks
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Zorro666 committed Dec 30, 2024
1 parent da9207b commit 71b6ed0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions renderdoc/driver/shaders/dxil/dxil_controlflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ int32_t ControlFlow::BlockInAnyPath(uint32_t block, uint32_t pathIdx, int32_t st
if(endNode == PATH_END)
return -1;

m_CheckedPaths[pathIdx] = true;

// Check any paths linked to by the end node of the current path
const rdcarray<uint32_t> &childPathsToCheck = m_BlockPathLinks.at(endNode);
for(uint32_t childPathIdx : childPathsToCheck)
Expand Down

0 comments on commit 71b6ed0

Please sign in to comment.