mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user