Commit 4cb1124e by Alexis Hetu Committed by Alexis Hétu

Fixed Fractal shader

The issue was with continue and break, where a previous loop was decrementing the breakDepth/continueDepth before we started incrementing it. BUG=18069149 Change-Id: I39fa9c07ea373cd9dab4997bfb8a9e621bf48b29 Reviewed-on: https://swiftshader-review.googlesource.com/1473Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 903e025f
...@@ -1595,10 +1595,6 @@ namespace sw ...@@ -1595,10 +1595,6 @@ namespace sw
{ {
breakDepth++; breakDepth++;
} }
else if(instruction[i]->isEndLoop())
{
breakDepth--;
}
if(breakDepth > 0) if(breakDepth > 0)
{ {
...@@ -1606,6 +1602,10 @@ namespace sw ...@@ -1606,6 +1602,10 @@ namespace sw
{ {
breakDepth++; breakDepth++;
} }
else if(instruction[i]->isEndLoop())
{
breakDepth--;
}
instruction[i]->analysisBreak = true; instruction[i]->analysisBreak = true;
...@@ -1620,10 +1620,6 @@ namespace sw ...@@ -1620,10 +1620,6 @@ namespace sw
{ {
continueDepth++; continueDepth++;
} }
else if(instruction[i]->isEndLoop())
{
continueDepth--;
}
if(continueDepth > 0) if(continueDepth > 0)
{ {
...@@ -1631,6 +1627,10 @@ namespace sw ...@@ -1631,6 +1627,10 @@ namespace sw
{ {
continueDepth++; continueDepth++;
} }
else if(instruction[i]->isEndLoop())
{
continueDepth--;
}
instruction[i]->analysisContinue = true; instruction[i]->analysisContinue = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment