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,28 +627,22 @@ bool EmulatePrecision::visitAggregate(Visit visit, TIntermAggregate *node) ...@@ -628,28 +627,22 @@ bool EmulatePrecision::visitAggregate(Visit visit, TIntermAggregate *node)
{ {
if (visit != PreVisit) if (visit != PreVisit)
return true; return true;
switch (node->getOp())
// User-defined function return values are not rounded. The calculations that produced
// the value inside the function definition should have been rounded.
TOperator op = node->getOp();
if (op == EOpCallInternalRawFunction || op == EOpCallFunctionInAST ||
(op == EOpConstruct && node->getBasicType() == EbtStruct))
{ {
case EOpCallInternalRawFunction: return true;
case EOpCallFunctionInAST: }
// User-defined function return values are not rounded. The calculations that produced
// the value inside the function definition should have been rounded. TIntermNode *parent = getParentNode();
break; if (canRoundFloat(node->getType()) && ParentUsesResult(parent, node) &&
case EOpConstruct: !ParentConstructorTakesCareOfRounding(parent, node))
if (node->getBasicType() == EbtStruct) {
{ TIntermNode *replacement = createRoundingFunctionCallNode(node);
break; queueReplacement(replacement, OriginalNode::BECOMES_CHILD);
}
ANGLE_FALLTHROUGH;
default:
TIntermNode *parent = getParentNode();
if (canRoundFloat(node->getType()) && ParentUsesResult(parent, node) &&
!ParentConstructorTakesCareOfRounding(parent, node))
{
TIntermNode *replacement = createRoundingFunctionCallNode(node);
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