Commit 34a06269 by Geoff Lang Committed by Commit Bot

Remove usage of ANGLE_FALLTHROUGH in EmulatePrecision.cpp

BUG=chromium:810767 Change-Id: Ic0dafc9038b14093fdb799fe382ba8275195c0cc Reviewed-on: https://chromium-review.googlesource.com/914804Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent b79f0351
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "compiler/translator/EmulatePrecision.h" #include "compiler/translator/EmulatePrecision.h"
#include "common/angle_fallthrough.h"
#include "compiler/translator/FunctionLookup.h" #include "compiler/translator/FunctionLookup.h"
#include <memory> #include <memory>
...@@ -628,20 +627,16 @@ bool EmulatePrecision::visitAggregate(Visit visit, TIntermAggregate *node) ...@@ -628,20 +627,16 @@ bool EmulatePrecision::visitAggregate(Visit visit, TIntermAggregate *node)
{ {
if (visit != PreVisit) if (visit != PreVisit)
return true; return true;
switch (node->getOp())
{
case EOpCallInternalRawFunction:
case EOpCallFunctionInAST:
// User-defined function return values are not rounded. The calculations that produced // User-defined function return values are not rounded. The calculations that produced
// the value inside the function definition should have been rounded. // the value inside the function definition should have been rounded.
break; TOperator op = node->getOp();
case EOpConstruct: if (op == EOpCallInternalRawFunction || op == EOpCallFunctionInAST ||
if (node->getBasicType() == EbtStruct) (op == EOpConstruct && node->getBasicType() == EbtStruct))
{ {
break; return true;
} }
ANGLE_FALLTHROUGH;
default:
TIntermNode *parent = getParentNode(); TIntermNode *parent = getParentNode();
if (canRoundFloat(node->getType()) && ParentUsesResult(parent, node) && if (canRoundFloat(node->getType()) && ParentUsesResult(parent, node) &&
!ParentConstructorTakesCareOfRounding(parent, node)) !ParentConstructorTakesCareOfRounding(parent, node))
...@@ -649,8 +644,6 @@ bool EmulatePrecision::visitAggregate(Visit visit, TIntermAggregate *node) ...@@ -649,8 +644,6 @@ bool EmulatePrecision::visitAggregate(Visit visit, TIntermAggregate *node)
TIntermNode *replacement = createRoundingFunctionCallNode(node); TIntermNode *replacement = createRoundingFunctionCallNode(node);
queueReplacement(replacement, OriginalNode::BECOMES_CHILD); queueReplacement(replacement, OriginalNode::BECOMES_CHILD);
} }
break;
}
return true; return 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