Reland "Remove inliner from IR generation stage."
This reverts commit 4c412bce4cacf556fbf87e9e9066ba709bc671f9.
Reason for revert: investigating Pinpoint failure cases, if any
Original change's description:
> Revert "Reland "Remove inliner from IR generation stage.""
>
> This reverts commit e497a080651c05678cf4760fa6e4daa53a10355b.
>
> Reason for revert: Pinpoint disagrees
>
> Original change's description:
> > Reland "Remove inliner from IR generation stage."
> >
> > This reverts commit 941fc7174fc20e8a8b707f1b636c85bbf2e1294f.
> >
> > Reason for revert: performance now seems to be roughly equal or better
> > (~1%) over several trials.
> > Nanobench: http://screen/A8e8sojaXBgbMgF
> >
> > Original change's description:
> > > Revert "Remove inliner from IR generation stage."
> > >
> > > This reverts commit 21d7778cb5c13e729b513eaa22dbf53f58a877c8.
> > >
> > > Reason for revert: Pinpoint absolutely hates this change
> > >
> > > Original change's description:
> > > > Remove inliner from IR generation stage.
> > > >
> > > > There is no need to inline code during IR generation, as the optimizer
> > > > can now handle this.
> > > >
> > > > Change-Id: If272bfb98e945a75ec91fb4aa026e5631ac51b5b
> > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315971
> > > > Commit-Queue: John Stiles <johnstiles@google.com>
> > > > Commit-Queue: Brian Osman <brianosman@google.com>
> > > > Reviewed-by: Brian Osman <brianosman@google.com>
> > > > Auto-Submit: John Stiles <johnstiles@google.com>
> > >
> > > TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com
> > >
> > > Change-Id: I62c235415bcdc92a088e2a7f9c3d7dbf7e1bf669
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317976
> > > Reviewed-by: John Stiles <johnstiles@google.com>
> > > Commit-Queue: John Stiles <johnstiles@google.com>
> >
> > TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com
> >
> > Change-Id: I6189806c678283188f4b67ee61e5886f88c2d6fc
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/324891
> > Reviewed-by: John Stiles <johnstiles@google.com>
> > Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
> > Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
> > Auto-Submit: John Stiles <johnstiles@google.com>
>
> TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com
>
> Change-Id: I79149467565f22f53b8c28868dd53b80f3421137
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/325626
> Reviewed-by: John Stiles <johnstiles@google.com>
> Commit-Queue: John Stiles <johnstiles@google.com>
> Auto-Submit: John Stiles <johnstiles@google.com>
TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com
Change-Id: I2727bd4a2b43e8d12b36b1979ce6fe4a2d935380
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/335936
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
diff --git a/src/gpu/effects/generated/GrColorMatrixFragmentProcessor.cpp b/src/gpu/effects/generated/GrColorMatrixFragmentProcessor.cpp
index d69eef2..e839d72 100644
--- a/src/gpu/effects/generated/GrColorMatrixFragmentProcessor.cpp
+++ b/src/gpu/effects/generated/GrColorMatrixFragmentProcessor.cpp
@@ -47,7 +47,6 @@
{
_0_unpremul = half4(inputColor.xyz / max(inputColor.w, 9.9999997473787516e-05), inputColor.w);
}
-
inputColor = _0_unpremul;
}
diff --git a/src/gpu/effects/generated/GrHighContrastFilterEffect.cpp b/src/gpu/effects/generated/GrHighContrastFilterEffect.cpp
index af38141..608104c 100644
--- a/src/gpu/effects/generated/GrHighContrastFilterEffect.cpp
+++ b/src/gpu/effects/generated/GrHighContrastFilterEffect.cpp
@@ -57,7 +57,6 @@
{
_0_unpremul = half4(inColor.xyz / max(inColor.w, 9.9999997473787516e-05), inColor.w);
}
-
half4 color = _0_unpremul;
@if (%s) {
diff --git a/src/sksl/SkSLCompiler.cpp b/src/sksl/SkSLCompiler.cpp
index 236e69d..801639f 100644
--- a/src/sksl/SkSLCompiler.cpp
+++ b/src/sksl/SkSLCompiler.cpp
@@ -93,7 +93,7 @@
SkASSERT(fCaps);
fRootSymbolTable = std::make_shared<SymbolTable>(this, /*builtin=*/true);
fPrivateSymbolTable = std::make_shared<SymbolTable>(fRootSymbolTable, /*builtin=*/true);
- fIRGenerator = std::make_unique<IRGenerator>(fContext.get(), fCaps, &fInliner, *this);
+ fIRGenerator = std::make_unique<IRGenerator>(fContext.get(), fCaps, *this);
#define TYPE(t) fContext->f##t##_Type.get()
diff --git a/src/sksl/SkSLIRGenerator.cpp b/src/sksl/SkSLIRGenerator.cpp
index a4a65c5..b7133973 100644
--- a/src/sksl/SkSLIRGenerator.cpp
+++ b/src/sksl/SkSLIRGenerator.cpp
@@ -104,22 +104,6 @@
IRGenerator* fIR;
};
-class AutoDisableInline {
-public:
- AutoDisableInline(IRGenerator* ir, bool canInline = false)
- : fIR(ir) {
- fOldCanInline = ir->fCanInline;
- fIR->fCanInline &= canInline;
- }
-
- ~AutoDisableInline() {
- fIR->fCanInline = fOldCanInline;
- }
-
- IRGenerator* fIR;
- bool fOldCanInline;
-};
-
static void fill_caps(const SkSL::ShaderCapsClass& caps,
std::unordered_map<String, Program::Settings::Value>* capsMap) {
#define CAP(name) capsMap->insert({String(#name), Program::Settings::Value(caps.name())})
@@ -145,15 +129,11 @@
IRGenerator::IRGenerator(const Context* context,
const ShaderCapsClass* caps,
- Inliner* inliner,
ErrorReporter& errorReporter)
: fContext(*context)
, fCaps(caps)
- , fInliner(inliner)
, fErrors(errorReporter)
, fModifiers(new ModifiersPool()) {
- SkASSERT(fInliner);
-
if (fCaps) {
fill_caps(*fCaps, &fCapsMap);
} else {
@@ -380,11 +360,7 @@
this->checkModifiers(decls.fOffset, modifiers, permitted);
StatementArray varDecls;
- bool firstDecl = true;
for (; declarationsIter != decls.end(); ++declarationsIter) {
- AutoDisableInline disableInline(this, /*canInline=*/firstDecl);
- firstDecl = false;
-
const ASTNode& varDecl = *declarationsIter;
if (modifiers.fLayout.fLocation == 0 && modifiers.fLayout.fIndex == 0 &&
(modifiers.fFlags & Modifiers::kOut_Flag) && fKind == Program::kFragment_Kind &&
@@ -528,11 +504,8 @@
return std::make_unique<Nop>();
}
}
- auto ifStmt = std::make_unique<IfStatement>(n.fOffset, n.getBool(), std::move(test),
- std::move(ifTrue), std::move(ifFalse));
- fInliner->ensureScopedBlocks(ifStmt->ifTrue().get(), ifStmt.get());
- fInliner->ensureScopedBlocks(ifStmt->ifFalse().get(), ifStmt.get());
- return std::move(ifStmt);
+ return std::make_unique<IfStatement>(n.fOffset, n.getBool(), std::move(test),
+ std::move(ifTrue), std::move(ifFalse));
}
std::unique_ptr<Statement> IRGenerator::convertFor(const ASTNode& f) {
@@ -550,17 +523,14 @@
++iter;
std::unique_ptr<Expression> test;
if (*iter) {
- AutoDisableInline disableInline(this);
test = this->coerce(this->convertExpression(*iter), *fContext.fBool_Type);
if (!test) {
return nullptr;
}
-
}
++iter;
std::unique_ptr<Expression> next;
if (*iter) {
- AutoDisableInline disableInline(this);
next = this->convertExpression(*iter);
if (!next) {
return nullptr;
@@ -571,22 +541,16 @@
if (!statement) {
return nullptr;
}
- auto forStmt = std::make_unique<ForStatement>(f.fOffset, std::move(initializer),
- std::move(test), std::move(next),
- std::move(statement), fSymbolTable);
- fInliner->ensureScopedBlocks(forStmt->statement().get(), forStmt.get());
- return std::move(forStmt);
+ return std::make_unique<ForStatement>(f.fOffset, std::move(initializer), std::move(test),
+ std::move(next), std::move(statement), fSymbolTable);
}
std::unique_ptr<Statement> IRGenerator::convertWhile(const ASTNode& w) {
SkASSERT(w.fKind == ASTNode::Kind::kWhile);
AutoLoopLevel level(this);
- std::unique_ptr<Expression> test;
auto iter = w.begin();
- {
- AutoDisableInline disableInline(this);
- test = this->coerce(this->convertExpression(*(iter++)), *fContext.fBool_Type);
- }
+ std::unique_ptr<Expression> test = this->coerce(this->convertExpression(*(iter++)),
+ *fContext.fBool_Type);
if (!test) {
return nullptr;
}
@@ -594,10 +558,7 @@
if (!statement) {
return nullptr;
}
- auto whileStmt = std::make_unique<WhileStatement>(w.fOffset, std::move(test),
- std::move(statement));
- fInliner->ensureScopedBlocks(whileStmt->statement().get(), whileStmt.get());
- return std::move(whileStmt);
+ return std::make_unique<WhileStatement>(w.fOffset, std::move(test), std::move(statement));
}
std::unique_ptr<Statement> IRGenerator::convertDo(const ASTNode& d) {
@@ -608,17 +569,12 @@
if (!statement) {
return nullptr;
}
- std::unique_ptr<Expression> test;
- {
- AutoDisableInline disableInline(this);
- test = this->coerce(this->convertExpression(*(iter++)), *fContext.fBool_Type);
- }
+ std::unique_ptr<Expression> test =
+ this->coerce(this->convertExpression(*(iter++)), *fContext.fBool_Type);
if (!test) {
return nullptr;
}
- auto doStmt = std::make_unique<DoStatement>(d.fOffset, std::move(statement), std::move(test));
- fInliner->ensureScopedBlocks(doStmt->statement().get(), doStmt.get());
- return std::move(doStmt);
+ return std::make_unique<DoStatement>(d.fOffset, std::move(statement), std::move(test));
}
std::unique_ptr<Statement> IRGenerator::convertSwitch(const ASTNode& s) {
@@ -1976,14 +1932,7 @@
return nullptr;
}
Token::Kind op = expression.getToken().fKind;
- std::unique_ptr<Expression> right;
- {
- // Can't inline the right side of a short-circuiting boolean, because our inlining
- // approach runs things out of order.
- AutoDisableInline disableInline(this, /*canInline=*/(op != Token::Kind::TK_LOGICALAND &&
- op != Token::Kind::TK_LOGICALOR));
- right = this->convertExpression(*(iter++));
- }
+ std::unique_ptr<Expression> right = this->convertExpression(*(iter++));
if (!right) {
return nullptr;
}
@@ -2038,18 +1987,13 @@
if (!test) {
return nullptr;
}
- std::unique_ptr<Expression> ifTrue;
- std::unique_ptr<Expression> ifFalse;
- {
- AutoDisableInline disableInline(this);
- ifTrue = this->convertExpression(*(iter++));
- if (!ifTrue) {
- return nullptr;
- }
- ifFalse = this->convertExpression(*(iter++));
- if (!ifFalse) {
- return nullptr;
- }
+ std::unique_ptr<Expression> ifTrue = this->convertExpression(*(iter++));
+ if (!ifTrue) {
+ return nullptr;
+ }
+ std::unique_ptr<Expression> ifFalse = this->convertExpression(*(iter++));
+ if (!ifFalse) {
+ return nullptr;
}
const Type* trueType;
const Type* falseType;
@@ -2175,20 +2119,7 @@
}
}
- auto funcCall = std::make_unique<FunctionCall>(offset, returnType, &function,
- std::move(arguments));
- if (fCanInline &&
- fInliner->isSafeToInline(funcCall->function().definition()) &&
- !fInliner->isLargeFunction(funcCall->function().definition())) {
- Inliner::InlinedCall inlinedCall = fInliner->inlineCall(funcCall.get(), fSymbolTable.get(),
- fCurrentFunction);
- if (inlinedCall.fInlinedBody) {
- fExtraStatements.push_back(std::move(inlinedCall.fInlinedBody));
- }
- return std::move(inlinedCall.fReplacementExpr);
- }
-
- return std::move(funcCall);
+ return std::make_unique<FunctionCall>(offset, returnType, &function, std::move(arguments));
}
/**
diff --git a/src/sksl/SkSLIRGenerator.h b/src/sksl/SkSLIRGenerator.h
index d221768..ffe0c8a 100644
--- a/src/sksl/SkSLIRGenerator.h
+++ b/src/sksl/SkSLIRGenerator.h
@@ -14,7 +14,6 @@
#include "src/sksl/SkSLASTFile.h"
#include "src/sksl/SkSLASTNode.h"
#include "src/sksl/SkSLErrorReporter.h"
-#include "src/sksl/SkSLInliner.h"
#include "src/sksl/ir/SkSLBlock.h"
#include "src/sksl/ir/SkSLExpression.h"
#include "src/sksl/ir/SkSLExtension.h"
@@ -98,7 +97,6 @@
public:
IRGenerator(const Context* context,
const ShaderCapsClass* caps,
- Inliner* inliner,
ErrorReporter& errorReporter);
struct IRBundle {
@@ -237,7 +235,6 @@
const ShaderCapsClass* fCaps = nullptr;
Program::Kind fKind;
- Inliner* fInliner = nullptr;
std::unique_ptr<ASTFile> fFile;
const FunctionDeclaration* fCurrentFunction = nullptr;
std::unordered_map<String, Program::Settings::Value> fCapsMap;
diff --git a/tests/sksl/blend/golden/BlendColor.glsl b/tests/sksl/blend/golden/BlendColor.glsl
index 0a53bca..10372b0 100644
--- a/tests/sksl/blend/golden/BlendColor.glsl
+++ b/tests/sksl/blend/golden/BlendColor.glsl
@@ -32,7 +32,6 @@
_0_blend_color = vec4((((_4_blend_set_color_luminance + dst.xyz) - _3_dsa) + src.xyz) - _2_sda, (src.w + dst.w) - _1_alpha);
}
-
sk_FragColor = _0_blend_color;
}
diff --git a/tests/sksl/blend/golden/BlendColor.metal b/tests/sksl/blend/golden/BlendColor.metal
index a5d8314..ed1e30b 100644
--- a/tests/sksl/blend/golden/BlendColor.metal
+++ b/tests/sksl/blend/golden/BlendColor.metal
@@ -42,7 +42,6 @@
_0_blend_color = float4((((_4_blend_set_color_luminance + _in.dst.xyz) - _3_dsa) + _in.src.xyz) - _2_sda, (_in.src.w + _in.dst.w) - _1_alpha);
}
-
_out->sk_FragColor = _0_blend_color;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendColorBurn.glsl b/tests/sksl/blend/golden/BlendColorBurn.glsl
index 532dc93..f288fb6 100644
--- a/tests/sksl/blend/golden/BlendColorBurn.glsl
+++ b/tests/sksl/blend/golden/BlendColorBurn.glsl
@@ -23,7 +23,6 @@
{
_0_blend_color_burn = vec4(_color_burn_component(src.xw, dst.xw), _color_burn_component(src.yw, dst.yw), _color_burn_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_color_burn;
}
diff --git a/tests/sksl/blend/golden/BlendColorBurn.metal b/tests/sksl/blend/golden/BlendColorBurn.metal
index 486e527..2e97001 100644
--- a/tests/sksl/blend/golden/BlendColorBurn.metal
+++ b/tests/sksl/blend/golden/BlendColorBurn.metal
@@ -33,7 +33,6 @@
{
_0_blend_color_burn = float4(_color_burn_component(_in.src.xw, _in.dst.xw), _color_burn_component(_in.src.yw, _in.dst.yw), _color_burn_component(_in.src.zw, _in.dst.zw), _in.src.w + (1.0 - _in.src.w) * _in.dst.w);
}
-
_out->sk_FragColor = _0_blend_color_burn;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendColorBurnStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendColorBurnStandaloneSettings.glsl
index 9fb65a0..395e55e 100644
--- a/tests/sksl/blend/golden/BlendColorBurnStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendColorBurnStandaloneSettings.glsl
@@ -23,7 +23,6 @@
{
_0_blend_color_burn = vec4(_color_burn_component(src.xw, dst.xw), _color_burn_component(src.yw, dst.yw), _color_burn_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_color_burn;
}
diff --git a/tests/sksl/blend/golden/BlendColorDodge.glsl b/tests/sksl/blend/golden/BlendColorDodge.glsl
index 6497aa7..731df92 100644
--- a/tests/sksl/blend/golden/BlendColorDodge.glsl
+++ b/tests/sksl/blend/golden/BlendColorDodge.glsl
@@ -26,7 +26,6 @@
{
_0_blend_color_dodge = vec4(_color_dodge_component(src.xw, dst.xw), _color_dodge_component(src.yw, dst.yw), _color_dodge_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_color_dodge;
}
diff --git a/tests/sksl/blend/golden/BlendColorDodge.metal b/tests/sksl/blend/golden/BlendColorDodge.metal
index daa6751..4eaf032 100644
--- a/tests/sksl/blend/golden/BlendColorDodge.metal
+++ b/tests/sksl/blend/golden/BlendColorDodge.metal
@@ -36,7 +36,6 @@
{
_0_blend_color_dodge = float4(_color_dodge_component(_in.src.xw, _in.dst.xw), _color_dodge_component(_in.src.yw, _in.dst.yw), _color_dodge_component(_in.src.zw, _in.dst.zw), _in.src.w + (1.0 - _in.src.w) * _in.dst.w);
}
-
_out->sk_FragColor = _0_blend_color_dodge;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendColorDodgeStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendColorDodgeStandaloneSettings.glsl
index ec60a0a..7960aa8 100644
--- a/tests/sksl/blend/golden/BlendColorDodgeStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendColorDodgeStandaloneSettings.glsl
@@ -26,7 +26,6 @@
{
_0_blend_color_dodge = vec4(_color_dodge_component(src.xw, dst.xw), _color_dodge_component(src.yw, dst.yw), _color_dodge_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_color_dodge;
}
diff --git a/tests/sksl/blend/golden/BlendColorStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendColorStandaloneSettings.glsl
index 404e80b..e251904 100644
--- a/tests/sksl/blend/golden/BlendColorStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendColorStandaloneSettings.glsl
@@ -32,7 +32,6 @@
_0_blend_color = vec4((((_4_blend_set_color_luminance + dst.xyz) - _3_dsa) + src.xyz) - _2_sda, (src.w + dst.w) - _1_alpha);
}
-
sk_FragColor = _0_blend_color;
}
diff --git a/tests/sksl/blend/golden/BlendDarken.glsl b/tests/sksl/blend/golden/BlendDarken.glsl
index ab1461d..2a2a689 100644
--- a/tests/sksl/blend/golden/BlendDarken.glsl
+++ b/tests/sksl/blend/golden/BlendDarken.glsl
@@ -14,7 +14,6 @@
_2_result.xyz = min(_2_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
_0_blend_darken = _2_result;
}
-
sk_FragColor = _0_blend_darken;
}
diff --git a/tests/sksl/blend/golden/BlendDarken.metal b/tests/sksl/blend/golden/BlendDarken.metal
index 35d6514..4de90b3 100644
--- a/tests/sksl/blend/golden/BlendDarken.metal
+++ b/tests/sksl/blend/golden/BlendDarken.metal
@@ -24,7 +24,6 @@
_2_result.xyz = min(_2_result.xyz, (1.0 - _in.dst.w) * _in.src.xyz + _in.dst.xyz);
_0_blend_darken = _2_result;
}
-
_out->sk_FragColor = _0_blend_darken;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDarkenStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDarkenStandaloneSettings.glsl
index 9b7124b..a8347b7 100644
--- a/tests/sksl/blend/golden/BlendDarkenStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDarkenStandaloneSettings.glsl
@@ -14,7 +14,6 @@
_2_result.xyz = min(_2_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
_0_blend_darken = _2_result;
}
-
sk_FragColor = _0_blend_darken;
}
diff --git a/tests/sksl/blend/golden/BlendDifference.glsl b/tests/sksl/blend/golden/BlendDifference.glsl
index 89a7750..aeb07de 100644
--- a/tests/sksl/blend/golden/BlendDifference.glsl
+++ b/tests/sksl/blend/golden/BlendDifference.glsl
@@ -7,7 +7,6 @@
{
_0_blend_difference = vec4((src.xyz + dst.xyz) - 2.0 * min(src.xyz * dst.w, dst.xyz * src.w), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_difference;
}
diff --git a/tests/sksl/blend/golden/BlendDifference.metal b/tests/sksl/blend/golden/BlendDifference.metal
index 14b8c29..d7fe7ae 100644
--- a/tests/sksl/blend/golden/BlendDifference.metal
+++ b/tests/sksl/blend/golden/BlendDifference.metal
@@ -17,7 +17,6 @@
{
_0_blend_difference = float4((_in.src.xyz + _in.dst.xyz) - 2.0 * min(_in.src.xyz * _in.dst.w, _in.dst.xyz * _in.src.w), _in.src.w + (1.0 - _in.src.w) * _in.dst.w);
}
-
_out->sk_FragColor = _0_blend_difference;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDifferenceStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDifferenceStandaloneSettings.glsl
index d91740f..5bd515f 100644
--- a/tests/sksl/blend/golden/BlendDifferenceStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDifferenceStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_difference = vec4((src.xyz + dst.xyz) - 2.0 * min(src.xyz * dst.w, dst.xyz * src.w), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_difference;
}
diff --git a/tests/sksl/blend/golden/BlendDst.glsl b/tests/sksl/blend/golden/BlendDst.glsl
index f18ce05..95e9d17 100644
--- a/tests/sksl/blend/golden/BlendDst.glsl
+++ b/tests/sksl/blend/golden/BlendDst.glsl
@@ -7,7 +7,6 @@
{
_0_blend_dst = dst;
}
-
sk_FragColor = _0_blend_dst;
}
diff --git a/tests/sksl/blend/golden/BlendDst.metal b/tests/sksl/blend/golden/BlendDst.metal
index 25fe2aa..f359606 100644
--- a/tests/sksl/blend/golden/BlendDst.metal
+++ b/tests/sksl/blend/golden/BlendDst.metal
@@ -17,7 +17,6 @@
{
_0_blend_dst = _in.dst;
}
-
_out->sk_FragColor = _0_blend_dst;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDstAtop.glsl b/tests/sksl/blend/golden/BlendDstAtop.glsl
index 939fb57..747acce 100644
--- a/tests/sksl/blend/golden/BlendDstAtop.glsl
+++ b/tests/sksl/blend/golden/BlendDstAtop.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_atop = dst.w * src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_src_atop;
}
diff --git a/tests/sksl/blend/golden/BlendDstAtop.metal b/tests/sksl/blend/golden/BlendDstAtop.metal
index 98fb2b5..5f63ceb 100644
--- a/tests/sksl/blend/golden/BlendDstAtop.metal
+++ b/tests/sksl/blend/golden/BlendDstAtop.metal
@@ -17,7 +17,6 @@
{
_0_blend_src_atop = _in.dst.w * _in.src + (1.0 - _in.src.w) * _in.dst;
}
-
_out->sk_FragColor = _0_blend_src_atop;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDstAtopStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDstAtopStandaloneSettings.glsl
index d289e8a..bf5b46f 100644
--- a/tests/sksl/blend/golden/BlendDstAtopStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDstAtopStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_atop = dst.w * src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_src_atop;
}
diff --git a/tests/sksl/blend/golden/BlendDstIn.glsl b/tests/sksl/blend/golden/BlendDstIn.glsl
index 15ddcb5..541bfd8 100644
--- a/tests/sksl/blend/golden/BlendDstIn.glsl
+++ b/tests/sksl/blend/golden/BlendDstIn.glsl
@@ -12,7 +12,6 @@
_0_blend_dst_in = _1_0_blend_src_in;
}
-
sk_FragColor = _0_blend_dst_in;
}
diff --git a/tests/sksl/blend/golden/BlendDstIn.metal b/tests/sksl/blend/golden/BlendDstIn.metal
index c57e66d..7adfb7e 100644
--- a/tests/sksl/blend/golden/BlendDstIn.metal
+++ b/tests/sksl/blend/golden/BlendDstIn.metal
@@ -22,7 +22,6 @@
_0_blend_dst_in = _1_0_blend_src_in;
}
-
_out->sk_FragColor = _0_blend_dst_in;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDstInStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDstInStandaloneSettings.glsl
index f53e1e4..d1e6bf9 100644
--- a/tests/sksl/blend/golden/BlendDstInStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDstInStandaloneSettings.glsl
@@ -12,7 +12,6 @@
_0_blend_dst_in = _1_0_blend_src_in;
}
-
sk_FragColor = _0_blend_dst_in;
}
diff --git a/tests/sksl/blend/golden/BlendDstOut.glsl b/tests/sksl/blend/golden/BlendDstOut.glsl
index d13d2d6..5b2779e 100644
--- a/tests/sksl/blend/golden/BlendDstOut.glsl
+++ b/tests/sksl/blend/golden/BlendDstOut.glsl
@@ -7,7 +7,6 @@
{
_0_blend_dst_out = (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_dst_out;
}
diff --git a/tests/sksl/blend/golden/BlendDstOut.metal b/tests/sksl/blend/golden/BlendDstOut.metal
index 88a1aca..f077bbb 100644
--- a/tests/sksl/blend/golden/BlendDstOut.metal
+++ b/tests/sksl/blend/golden/BlendDstOut.metal
@@ -17,7 +17,6 @@
{
_0_blend_dst_out = (1.0 - _in.src.w) * _in.dst;
}
-
_out->sk_FragColor = _0_blend_dst_out;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDstOutStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDstOutStandaloneSettings.glsl
index 8b9ddb0..0fc0bda 100644
--- a/tests/sksl/blend/golden/BlendDstOutStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDstOutStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_dst_out = (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_dst_out;
}
diff --git a/tests/sksl/blend/golden/BlendDstOver.glsl b/tests/sksl/blend/golden/BlendDstOver.glsl
index 0ff9cbb..a188d8d 100644
--- a/tests/sksl/blend/golden/BlendDstOver.glsl
+++ b/tests/sksl/blend/golden/BlendDstOver.glsl
@@ -7,7 +7,6 @@
{
_0_blend_dst_over = (1.0 - dst.w) * src + dst;
}
-
sk_FragColor = _0_blend_dst_over;
}
diff --git a/tests/sksl/blend/golden/BlendDstOver.metal b/tests/sksl/blend/golden/BlendDstOver.metal
index 9a95c35..3f325ad 100644
--- a/tests/sksl/blend/golden/BlendDstOver.metal
+++ b/tests/sksl/blend/golden/BlendDstOver.metal
@@ -17,7 +17,6 @@
{
_0_blend_dst_over = (1.0 - _in.dst.w) * _in.src + _in.dst;
}
-
_out->sk_FragColor = _0_blend_dst_over;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendDstOverStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDstOverStandaloneSettings.glsl
index 3ea9781..8dec269 100644
--- a/tests/sksl/blend/golden/BlendDstOverStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDstOverStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_dst_over = (1.0 - dst.w) * src + dst;
}
-
sk_FragColor = _0_blend_dst_over;
}
diff --git a/tests/sksl/blend/golden/BlendDstStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendDstStandaloneSettings.glsl
index 0d36c8f..f978db5 100644
--- a/tests/sksl/blend/golden/BlendDstStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendDstStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_dst = dst;
}
-
sk_FragColor = _0_blend_dst;
}
diff --git a/tests/sksl/blend/golden/BlendExclusion.glsl b/tests/sksl/blend/golden/BlendExclusion.glsl
index 614dcbe2..bbd3b4a 100644
--- a/tests/sksl/blend/golden/BlendExclusion.glsl
+++ b/tests/sksl/blend/golden/BlendExclusion.glsl
@@ -7,7 +7,6 @@
{
_0_blend_exclusion = vec4((dst.xyz + src.xyz) - (2.0 * dst.xyz) * src.xyz, src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_exclusion;
}
diff --git a/tests/sksl/blend/golden/BlendExclusion.metal b/tests/sksl/blend/golden/BlendExclusion.metal
index 00b11c4..4e9904a 100644
--- a/tests/sksl/blend/golden/BlendExclusion.metal
+++ b/tests/sksl/blend/golden/BlendExclusion.metal
@@ -17,7 +17,6 @@
{
_0_blend_exclusion = float4((_in.dst.xyz + _in.src.xyz) - (2.0 * _in.dst.xyz) * _in.src.xyz, _in.src.w + (1.0 - _in.src.w) * _in.dst.w);
}
-
_out->sk_FragColor = _0_blend_exclusion;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendExclusionStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendExclusionStandaloneSettings.glsl
index 479e7ec..caa19f6 100644
--- a/tests/sksl/blend/golden/BlendExclusionStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendExclusionStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_exclusion = vec4((dst.xyz + src.xyz) - (2.0 * dst.xyz) * src.xyz, src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_exclusion;
}
diff --git a/tests/sksl/blend/golden/BlendHue.glsl b/tests/sksl/blend/golden/BlendHue.glsl
index 97ee317..c6cd13e 100644
--- a/tests/sksl/blend/golden/BlendHue.glsl
+++ b/tests/sksl/blend/golden/BlendHue.glsl
@@ -87,7 +87,6 @@
}
-
sk_FragColor = _0_blend_hue;
}
diff --git a/tests/sksl/blend/golden/BlendHue.metal b/tests/sksl/blend/golden/BlendHue.metal
index 8931ed1..2bf6939 100644
--- a/tests/sksl/blend/golden/BlendHue.metal
+++ b/tests/sksl/blend/golden/BlendHue.metal
@@ -97,7 +97,6 @@
}
-
_out->sk_FragColor = _0_blend_hue;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendHueStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendHueStandaloneSettings.glsl
index 3dce1f5..0d43eda 100644
--- a/tests/sksl/blend/golden/BlendHueStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendHueStandaloneSettings.glsl
@@ -87,7 +87,6 @@
}
-
sk_FragColor = _0_blend_hue;
}
diff --git a/tests/sksl/blend/golden/BlendLighten.glsl b/tests/sksl/blend/golden/BlendLighten.glsl
index 0a39eff..48885f1 100644
--- a/tests/sksl/blend/golden/BlendLighten.glsl
+++ b/tests/sksl/blend/golden/BlendLighten.glsl
@@ -14,7 +14,6 @@
_2_result.xyz = max(_2_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
_0_blend_lighten = _2_result;
}
-
sk_FragColor = _0_blend_lighten;
}
diff --git a/tests/sksl/blend/golden/BlendLighten.metal b/tests/sksl/blend/golden/BlendLighten.metal
index 09984a7..c89a769 100644
--- a/tests/sksl/blend/golden/BlendLighten.metal
+++ b/tests/sksl/blend/golden/BlendLighten.metal
@@ -24,7 +24,6 @@
_2_result.xyz = max(_2_result.xyz, (1.0 - _in.dst.w) * _in.src.xyz + _in.dst.xyz);
_0_blend_lighten = _2_result;
}
-
_out->sk_FragColor = _0_blend_lighten;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendLightenStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendLightenStandaloneSettings.glsl
index ce2824b..28509bf 100644
--- a/tests/sksl/blend/golden/BlendLightenStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendLightenStandaloneSettings.glsl
@@ -14,7 +14,6 @@
_2_result.xyz = max(_2_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
_0_blend_lighten = _2_result;
}
-
sk_FragColor = _0_blend_lighten;
}
diff --git a/tests/sksl/blend/golden/BlendLuminosity.glsl b/tests/sksl/blend/golden/BlendLuminosity.glsl
index 969c37a..46fd62f 100644
--- a/tests/sksl/blend/golden/BlendLuminosity.glsl
+++ b/tests/sksl/blend/golden/BlendLuminosity.glsl
@@ -32,7 +32,6 @@
_0_blend_luminosity = vec4((((_4_blend_set_color_luminance + dst.xyz) - _3_dsa) + src.xyz) - _2_sda, (src.w + dst.w) - _1_alpha);
}
-
sk_FragColor = _0_blend_luminosity;
}
diff --git a/tests/sksl/blend/golden/BlendLuminosity.metal b/tests/sksl/blend/golden/BlendLuminosity.metal
index 915477b..1923013 100644
--- a/tests/sksl/blend/golden/BlendLuminosity.metal
+++ b/tests/sksl/blend/golden/BlendLuminosity.metal
@@ -42,7 +42,6 @@
_0_blend_luminosity = float4((((_4_blend_set_color_luminance + _in.dst.xyz) - _3_dsa) + _in.src.xyz) - _2_sda, (_in.src.w + _in.dst.w) - _1_alpha);
}
-
_out->sk_FragColor = _0_blend_luminosity;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendLuminosityStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendLuminosityStandaloneSettings.glsl
index e8f4899..564c90a 100644
--- a/tests/sksl/blend/golden/BlendLuminosityStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendLuminosityStandaloneSettings.glsl
@@ -32,7 +32,6 @@
_0_blend_luminosity = vec4((((_4_blend_set_color_luminance + dst.xyz) - _3_dsa) + src.xyz) - _2_sda, (src.w + dst.w) - _1_alpha);
}
-
sk_FragColor = _0_blend_luminosity;
}
diff --git a/tests/sksl/blend/golden/BlendModulate.glsl b/tests/sksl/blend/golden/BlendModulate.glsl
index aa6615b1..a2003a9 100644
--- a/tests/sksl/blend/golden/BlendModulate.glsl
+++ b/tests/sksl/blend/golden/BlendModulate.glsl
@@ -7,7 +7,6 @@
{
_0_blend_modulate = src * dst;
}
-
sk_FragColor = _0_blend_modulate;
}
diff --git a/tests/sksl/blend/golden/BlendModulate.metal b/tests/sksl/blend/golden/BlendModulate.metal
index 2aada97..f7c7246 100644
--- a/tests/sksl/blend/golden/BlendModulate.metal
+++ b/tests/sksl/blend/golden/BlendModulate.metal
@@ -17,7 +17,6 @@
{
_0_blend_modulate = _in.src * _in.dst;
}
-
_out->sk_FragColor = _0_blend_modulate;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendModulateStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendModulateStandaloneSettings.glsl
index fc0a62e..b422670 100644
--- a/tests/sksl/blend/golden/BlendModulateStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendModulateStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_modulate = src * dst;
}
-
sk_FragColor = _0_blend_modulate;
}
diff --git a/tests/sksl/blend/golden/BlendMultiply.glsl b/tests/sksl/blend/golden/BlendMultiply.glsl
index 6908daf..e016c0f 100644
--- a/tests/sksl/blend/golden/BlendMultiply.glsl
+++ b/tests/sksl/blend/golden/BlendMultiply.glsl
@@ -7,7 +7,6 @@
{
_0_blend_multiply = vec4(((1.0 - src.w) * dst.xyz + (1.0 - dst.w) * src.xyz) + src.xyz * dst.xyz, src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_multiply;
}
diff --git a/tests/sksl/blend/golden/BlendMultiply.metal b/tests/sksl/blend/golden/BlendMultiply.metal
index 521a79a..dd65339 100644
--- a/tests/sksl/blend/golden/BlendMultiply.metal
+++ b/tests/sksl/blend/golden/BlendMultiply.metal
@@ -17,7 +17,6 @@
{
_0_blend_multiply = float4(((1.0 - _in.src.w) * _in.dst.xyz + (1.0 - _in.dst.w) * _in.src.xyz) + _in.src.xyz * _in.dst.xyz, _in.src.w + (1.0 - _in.src.w) * _in.dst.w);
}
-
_out->sk_FragColor = _0_blend_multiply;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendMultiplyStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendMultiplyStandaloneSettings.glsl
index 999aac2..48d7ec3 100644
--- a/tests/sksl/blend/golden/BlendMultiplyStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendMultiplyStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_multiply = vec4(((1.0 - src.w) * dst.xyz + (1.0 - dst.w) * src.xyz) + src.xyz * dst.xyz, src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_multiply;
}
diff --git a/tests/sksl/blend/golden/BlendPlus.glsl b/tests/sksl/blend/golden/BlendPlus.glsl
index 4537ada..4e8a29b 100644
--- a/tests/sksl/blend/golden/BlendPlus.glsl
+++ b/tests/sksl/blend/golden/BlendPlus.glsl
@@ -7,7 +7,6 @@
{
_0_blend_plus = min(src + dst, 1.0);
}
-
sk_FragColor = _0_blend_plus;
}
diff --git a/tests/sksl/blend/golden/BlendPlus.metal b/tests/sksl/blend/golden/BlendPlus.metal
index a7c225d..2534cb2 100644
--- a/tests/sksl/blend/golden/BlendPlus.metal
+++ b/tests/sksl/blend/golden/BlendPlus.metal
@@ -17,7 +17,6 @@
{
_0_blend_plus = min(_in.src + _in.dst, 1.0);
}
-
_out->sk_FragColor = _0_blend_plus;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendPlusStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendPlusStandaloneSettings.glsl
index 4b0c113..d15ff0e 100644
--- a/tests/sksl/blend/golden/BlendPlusStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendPlusStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_plus = min(src + dst, 1.0);
}
-
sk_FragColor = _0_blend_plus;
}
diff --git a/tests/sksl/blend/golden/BlendSaturation.glsl b/tests/sksl/blend/golden/BlendSaturation.glsl
index a8fe002..e8843ce 100644
--- a/tests/sksl/blend/golden/BlendSaturation.glsl
+++ b/tests/sksl/blend/golden/BlendSaturation.glsl
@@ -87,7 +87,6 @@
}
-
sk_FragColor = _0_blend_saturation;
}
diff --git a/tests/sksl/blend/golden/BlendSaturation.metal b/tests/sksl/blend/golden/BlendSaturation.metal
index 3d55d92..046097c 100644
--- a/tests/sksl/blend/golden/BlendSaturation.metal
+++ b/tests/sksl/blend/golden/BlendSaturation.metal
@@ -97,7 +97,6 @@
}
-
_out->sk_FragColor = _0_blend_saturation;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSaturationStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSaturationStandaloneSettings.glsl
index ea83e40..a571e22 100644
--- a/tests/sksl/blend/golden/BlendSaturationStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSaturationStandaloneSettings.glsl
@@ -87,7 +87,6 @@
}
-
sk_FragColor = _0_blend_saturation;
}
diff --git a/tests/sksl/blend/golden/BlendScreen.glsl b/tests/sksl/blend/golden/BlendScreen.glsl
index aa8e1fe..78bd79a 100644
--- a/tests/sksl/blend/golden/BlendScreen.glsl
+++ b/tests/sksl/blend/golden/BlendScreen.glsl
@@ -7,7 +7,6 @@
{
_0_blend_screen = src + (1.0 - src) * dst;
}
-
sk_FragColor = _0_blend_screen;
}
diff --git a/tests/sksl/blend/golden/BlendScreen.metal b/tests/sksl/blend/golden/BlendScreen.metal
index db8ce4e..5326fbb 100644
--- a/tests/sksl/blend/golden/BlendScreen.metal
+++ b/tests/sksl/blend/golden/BlendScreen.metal
@@ -17,7 +17,6 @@
{
_0_blend_screen = _in.src + (1.0 - _in.src) * _in.dst;
}
-
_out->sk_FragColor = _0_blend_screen;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendScreenStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendScreenStandaloneSettings.glsl
index c789689..3393769 100644
--- a/tests/sksl/blend/golden/BlendScreenStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendScreenStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_screen = src + (1.0 - src) * dst;
}
-
sk_FragColor = _0_blend_screen;
}
diff --git a/tests/sksl/blend/golden/BlendSoftLight.glsl b/tests/sksl/blend/golden/BlendSoftLight.glsl
index 1fc16e6..4beb900 100644
--- a/tests/sksl/blend/golden/BlendSoftLight.glsl
+++ b/tests/sksl/blend/golden/BlendSoftLight.glsl
@@ -32,7 +32,6 @@
{
_0_blend_soft_light = dst.w == 0.0 ? src : vec4(_soft_light_component(src.xw, dst.xw), _soft_light_component(src.yw, dst.yw), _soft_light_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_soft_light;
}
diff --git a/tests/sksl/blend/golden/BlendSoftLight.metal b/tests/sksl/blend/golden/BlendSoftLight.metal
index e5db9d2..1917006 100644
--- a/tests/sksl/blend/golden/BlendSoftLight.metal
+++ b/tests/sksl/blend/golden/BlendSoftLight.metal
@@ -42,7 +42,6 @@
{
_0_blend_soft_light = _in.dst.w == 0.0 ? _in.src : float4(_soft_light_component(_in.src.xw, _in.dst.xw), _soft_light_component(_in.src.yw, _in.dst.yw), _soft_light_component(_in.src.zw, _in.dst.zw), _in.src.w + (1.0 - _in.src.w) * _in.dst.w);
}
-
_out->sk_FragColor = _0_blend_soft_light;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSoftLightStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSoftLightStandaloneSettings.glsl
index 2e3f539..dea37f5 100644
--- a/tests/sksl/blend/golden/BlendSoftLightStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSoftLightStandaloneSettings.glsl
@@ -32,7 +32,6 @@
{
_0_blend_soft_light = dst.w == 0.0 ? src : vec4(_soft_light_component(src.xw, dst.xw), _soft_light_component(src.yw, dst.yw), _soft_light_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_soft_light;
}
diff --git a/tests/sksl/blend/golden/BlendSrc.glsl b/tests/sksl/blend/golden/BlendSrc.glsl
index 2072f90..35e4571 100644
--- a/tests/sksl/blend/golden/BlendSrc.glsl
+++ b/tests/sksl/blend/golden/BlendSrc.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src = src;
}
-
sk_FragColor = _0_blend_src;
}
diff --git a/tests/sksl/blend/golden/BlendSrc.metal b/tests/sksl/blend/golden/BlendSrc.metal
index d62745b..20e8cbc 100644
--- a/tests/sksl/blend/golden/BlendSrc.metal
+++ b/tests/sksl/blend/golden/BlendSrc.metal
@@ -17,7 +17,6 @@
{
_0_blend_src = _in.src;
}
-
_out->sk_FragColor = _0_blend_src;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSrcAtop.glsl b/tests/sksl/blend/golden/BlendSrcAtop.glsl
index 939fb57..747acce 100644
--- a/tests/sksl/blend/golden/BlendSrcAtop.glsl
+++ b/tests/sksl/blend/golden/BlendSrcAtop.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_atop = dst.w * src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_src_atop;
}
diff --git a/tests/sksl/blend/golden/BlendSrcAtop.metal b/tests/sksl/blend/golden/BlendSrcAtop.metal
index 98fb2b5..5f63ceb 100644
--- a/tests/sksl/blend/golden/BlendSrcAtop.metal
+++ b/tests/sksl/blend/golden/BlendSrcAtop.metal
@@ -17,7 +17,6 @@
{
_0_blend_src_atop = _in.dst.w * _in.src + (1.0 - _in.src.w) * _in.dst;
}
-
_out->sk_FragColor = _0_blend_src_atop;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSrcAtopStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSrcAtopStandaloneSettings.glsl
index d289e8a..bf5b46f 100644
--- a/tests/sksl/blend/golden/BlendSrcAtopStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSrcAtopStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_atop = dst.w * src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_src_atop;
}
diff --git a/tests/sksl/blend/golden/BlendSrcIn.glsl b/tests/sksl/blend/golden/BlendSrcIn.glsl
index 3a2cceb..a3ac6d0 100644
--- a/tests/sksl/blend/golden/BlendSrcIn.glsl
+++ b/tests/sksl/blend/golden/BlendSrcIn.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_in = src * dst.w;
}
-
sk_FragColor = _0_blend_src_in;
}
diff --git a/tests/sksl/blend/golden/BlendSrcIn.metal b/tests/sksl/blend/golden/BlendSrcIn.metal
index 50580f6..bbb41aa 100644
--- a/tests/sksl/blend/golden/BlendSrcIn.metal
+++ b/tests/sksl/blend/golden/BlendSrcIn.metal
@@ -17,7 +17,6 @@
{
_0_blend_src_in = _in.src * _in.dst.w;
}
-
_out->sk_FragColor = _0_blend_src_in;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSrcInStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSrcInStandaloneSettings.glsl
index b414c86..2233cdb 100644
--- a/tests/sksl/blend/golden/BlendSrcInStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSrcInStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_in = src * dst.w;
}
-
sk_FragColor = _0_blend_src_in;
}
diff --git a/tests/sksl/blend/golden/BlendSrcOut.glsl b/tests/sksl/blend/golden/BlendSrcOut.glsl
index 40faed1..8ea8adc 100644
--- a/tests/sksl/blend/golden/BlendSrcOut.glsl
+++ b/tests/sksl/blend/golden/BlendSrcOut.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_out = (1.0 - dst.w) * src;
}
-
sk_FragColor = _0_blend_src_out;
}
diff --git a/tests/sksl/blend/golden/BlendSrcOut.metal b/tests/sksl/blend/golden/BlendSrcOut.metal
index 191881b..b8ae2ef 100644
--- a/tests/sksl/blend/golden/BlendSrcOut.metal
+++ b/tests/sksl/blend/golden/BlendSrcOut.metal
@@ -17,7 +17,6 @@
{
_0_blend_src_out = (1.0 - _in.dst.w) * _in.src;
}
-
_out->sk_FragColor = _0_blend_src_out;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSrcOutStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSrcOutStandaloneSettings.glsl
index 9629ba6..91228dc 100644
--- a/tests/sksl/blend/golden/BlendSrcOutStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSrcOutStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_out = (1.0 - dst.w) * src;
}
-
sk_FragColor = _0_blend_src_out;
}
diff --git a/tests/sksl/blend/golden/BlendSrcOver.glsl b/tests/sksl/blend/golden/BlendSrcOver.glsl
index 4436032..47b5523 100644
--- a/tests/sksl/blend/golden/BlendSrcOver.glsl
+++ b/tests/sksl/blend/golden/BlendSrcOver.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_over = src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_src_over;
}
diff --git a/tests/sksl/blend/golden/BlendSrcOver.metal b/tests/sksl/blend/golden/BlendSrcOver.metal
index cb1bf0a..183810d 100644
--- a/tests/sksl/blend/golden/BlendSrcOver.metal
+++ b/tests/sksl/blend/golden/BlendSrcOver.metal
@@ -17,7 +17,6 @@
{
_0_blend_src_over = _in.src + (1.0 - _in.src.w) * _in.dst;
}
-
_out->sk_FragColor = _0_blend_src_over;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendSrcOverStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSrcOverStandaloneSettings.glsl
index cbc50f0..29313a4 100644
--- a/tests/sksl/blend/golden/BlendSrcOverStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSrcOverStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_over = src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_src_over;
}
diff --git a/tests/sksl/blend/golden/BlendSrcStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendSrcStandaloneSettings.glsl
index 30cfc2c..af8d8e3 100644
--- a/tests/sksl/blend/golden/BlendSrcStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendSrcStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src = src;
}
-
sk_FragColor = _0_blend_src;
}
diff --git a/tests/sksl/blend/golden/BlendXor.glsl b/tests/sksl/blend/golden/BlendXor.glsl
index b977195..76e65c1 100644
--- a/tests/sksl/blend/golden/BlendXor.glsl
+++ b/tests/sksl/blend/golden/BlendXor.glsl
@@ -7,7 +7,6 @@
{
_0_blend_xor = (1.0 - dst.w) * src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_xor;
}
diff --git a/tests/sksl/blend/golden/BlendXor.metal b/tests/sksl/blend/golden/BlendXor.metal
index 5633da6..819837d 100644
--- a/tests/sksl/blend/golden/BlendXor.metal
+++ b/tests/sksl/blend/golden/BlendXor.metal
@@ -17,7 +17,6 @@
{
_0_blend_xor = (1.0 - _in.dst.w) * _in.src + (1.0 - _in.src.w) * _in.dst;
}
-
_out->sk_FragColor = _0_blend_xor;
return *_out;
diff --git a/tests/sksl/blend/golden/BlendXorStandaloneSettings.glsl b/tests/sksl/blend/golden/BlendXorStandaloneSettings.glsl
index c583e85..21dbc56 100644
--- a/tests/sksl/blend/golden/BlendXorStandaloneSettings.glsl
+++ b/tests/sksl/blend/golden/BlendXorStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_xor = (1.0 - dst.w) * src + (1.0 - src.w) * dst;
}
-
sk_FragColor = _0_blend_xor;
}
diff --git a/tests/sksl/errors/golden/GrRecursion.cpp b/tests/sksl/errors/golden/GrRecursion.cpp
index 187ae51..1c15976 100644
--- a/tests/sksl/errors/golden/GrRecursion.cpp
+++ b/tests/sksl/errors/golden/GrRecursion.cpp
@@ -26,15 +26,9 @@
, factorial_name.c_str());
fragBuilder->emitFunction(kInt_GrSLType, factorial_name.c_str(), {factorial_args, 1}, factorial_impl.c_str());
fragBuilder->codeAppendf(
-R"SkSL(int _0_factorial;
-{
- _0_factorial = 7 * %s(6);
-}
-
-%s = half4(half(_0_factorial));
-
+R"SkSL(%s = half4(half(%s(7)));
)SkSL"
-, factorial_name.c_str(), args.fOutputColor);
+, args.fOutputColor, factorial_name.c_str());
}
private:
void onSetData(const GrGLSLProgramDataManager& pdman, const GrFragmentProcessor& _proc) override {
diff --git a/tests/sksl/fp/golden/GrInlinedFunction.cpp b/tests/sksl/fp/golden/GrInlinedFunction.cpp
index 0d55f3c..ff8885a 100644
--- a/tests/sksl/fp/golden/GrInlinedFunction.cpp
+++ b/tests/sksl/fp/golden/GrInlinedFunction.cpp
@@ -25,7 +25,6 @@
{
_0_flip = %s.wzyx;
}
-
%s = _0_flip;
)SkSL"
diff --git a/tests/sksl/inliner/golden/DoWhileBodyMustBeInlinedIntoAScope.glsl b/tests/sksl/inliner/golden/DoWhileBodyMustBeInlinedIntoAScope.glsl
index e6c0c59..f9f05ea 100644
--- a/tests/sksl/inliner/golden/DoWhileBodyMustBeInlinedIntoAScope.glsl
+++ b/tests/sksl/inliner/golden/DoWhileBodyMustBeInlinedIntoAScope.glsl
@@ -7,7 +7,6 @@
{
_0_adjust = sk_FragColor + vec4(0.125);
}
-
sk_FragColor = _0_adjust;
} while (sk_FragColor.x < 0.5);
}
diff --git a/tests/sksl/inliner/golden/ExponentialGrowth.glsl b/tests/sksl/inliner/golden/ExponentialGrowth.glsl
index 1fedf6b..d1985e5 100644
--- a/tests/sksl/inliner/golden/ExponentialGrowth.glsl
+++ b/tests/sksl/inliner/golden/ExponentialGrowth.glsl
@@ -9,186 +9,146 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
{
{
{
@@ -196,186 +156,146 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
{
{
{
@@ -383,189 +303,148 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
}
-
{
{
{
@@ -574,186 +453,146 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
{
{
{
@@ -761,186 +600,146 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
{
{
{
@@ -948,189 +747,148 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
}
-
{
{
{
@@ -1139,186 +897,146 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
{
{
{
@@ -1326,186 +1044,146 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
{
{
{
@@ -1513,192 +1191,1485 @@
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
{
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
{
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
{
sk_FragColor.x = 0.0;
}
-
}
-
}
-
}
-
}
-
}
void fn7() {
- fn6();
+ {
+ {
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
fn6();
fn6();
}
diff --git a/tests/sksl/inliner/golden/ExponentialGrowthStandaloneSettings.glsl b/tests/sksl/inliner/golden/ExponentialGrowthStandaloneSettings.glsl
index ae0703a..d1985e5 100644
--- a/tests/sksl/inliner/golden/ExponentialGrowthStandaloneSettings.glsl
+++ b/tests/sksl/inliner/golden/ExponentialGrowthStandaloneSettings.glsl
@@ -1,550 +1,2758 @@
out vec4 sk_FragColor;
-void fn3() {
- {
- {
- sk_FragColor.x = 0.0;
- }
-
-
- {
- sk_FragColor.x = 0.0;
- }
-
-
- {
- sk_FragColor.x = 0.0;
- }
-
-
- }
-
-
- {
- {
- sk_FragColor.x = 0.0;
- }
-
-
- {
- sk_FragColor.x = 0.0;
- }
-
-
- {
- sk_FragColor.x = 0.0;
- }
-
-
- }
-
-
- {
- {
- sk_FragColor.x = 0.0;
- }
-
-
- {
- sk_FragColor.x = 0.0;
- }
-
-
- {
- sk_FragColor.x = 0.0;
- }
-
-
- }
-
-
-}
void fn6() {
{
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
}
-
{
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
}
-
{
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
{
- fn3();
- fn3();
- fn3();
- }
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
}
+}
+void fn7() {
+ {
+ {
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ {
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ {
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ {
+ sk_FragColor.x = 0.0;
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ }
+
+ fn6();
+ fn6();
+}
+void fn8() {
+ fn7();
+ fn7();
+ fn7();
}
void fn9() {
- {
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- }
-
-
- {
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- }
-
-
- {
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- {
- fn6();
- fn6();
- fn6();
- }
-
-
- }
-
-
+ fn8();
+ fn8();
+ fn8();
+}
+void fnA() {
+ fn9();
+ fn9();
+ fn9();
+}
+void fnB() {
+ fnA();
+ fnA();
+ fnA();
}
void fnC() {
- {
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- }
-
-
- {
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- }
-
-
- {
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- {
- fn9();
- fn9();
- fn9();
- }
-
-
- }
-
-
+ fnB();
+ fnB();
+ fnB();
+}
+void fnD() {
+ fnC();
+ fnC();
+ fnC();
+}
+void fnE() {
+ fnD();
+ fnD();
+ fnD();
}
void fnF() {
- {
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- }
-
-
- {
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- }
-
-
- {
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- {
- fnC();
- fnC();
- fnC();
- }
-
-
- }
-
-
+ fnE();
+ fnE();
+ fnE();
+}
+void fnG() {
+ fnF();
+ fnF();
+ fnF();
+}
+void fnH() {
+ fnG();
+ fnG();
+ fnG();
}
void fnI() {
- {
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- }
-
-
- {
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- }
-
-
- {
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- {
- fnF();
- fnF();
- fnF();
- }
-
-
- }
-
-
+ fnH();
+ fnH();
+ fnH();
+}
+void fnJ() {
+ fnI();
+ fnI();
+ fnI();
+}
+void fnK() {
+ fnJ();
+ fnJ();
+ fnJ();
}
void fnL() {
- {
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- }
-
-
- {
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- }
-
-
- {
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- {
- fnI();
- fnI();
- fnI();
- }
-
-
- }
-
-
+ fnK();
+ fnK();
+ fnK();
+}
+void fnM() {
+ fnL();
+ fnL();
+ fnL();
+}
+void fnN() {
+ fnM();
+ fnM();
+ fnM();
}
void main() {
- {
- {
- fnL();
- fnL();
- fnL();
- }
-
-
- {
- fnL();
- fnL();
- fnL();
- }
-
-
- {
- fnL();
- fnL();
- fnL();
- }
-
-
- }
-
-
+ fnN();
}
diff --git a/tests/sksl/inliner/golden/ForBodyMustBeInlinedIntoAScope.glsl b/tests/sksl/inliner/golden/ForBodyMustBeInlinedIntoAScope.glsl
index cecce6e..3fb93d7 100644
--- a/tests/sksl/inliner/golden/ForBodyMustBeInlinedIntoAScope.glsl
+++ b/tests/sksl/inliner/golden/ForBodyMustBeInlinedIntoAScope.glsl
@@ -7,7 +7,6 @@
{
_0_adjust = sk_FragColor + vec4(0.125);
}
-
sk_FragColor = _0_adjust;
}
}
diff --git a/tests/sksl/inliner/golden/ForInitializerExpressionsCanBeInlined.glsl b/tests/sksl/inliner/golden/ForInitializerExpressionsCanBeInlined.glsl
index 7d8d189..76a2431 100644
--- a/tests/sksl/inliner/golden/ForInitializerExpressionsCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/ForInitializerExpressionsCanBeInlined.glsl
@@ -7,7 +7,7 @@
return v + vec4(0.125);
}
void main() {
- for (sk_FragColor = vec4(0.0625);
- shouldLoop(sk_FragColor); sk_FragColor = grow(sk_FragColor)) {
+ for (sk_FragColor = vec4(0.0625);shouldLoop(sk_FragColor); sk_FragColor = grow(sk_FragColor)) {
}
+
}
diff --git a/tests/sksl/inliner/golden/ForWithoutReturnInsideCanBeInlined.glsl b/tests/sksl/inliner/golden/ForWithoutReturnInsideCanBeInlined.glsl
index fe3a369..458e194a 100644
--- a/tests/sksl/inliner/golden/ForWithoutReturnInsideCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/ForWithoutReturnInsideCanBeInlined.glsl
@@ -10,7 +10,6 @@
}
_0_loopy = _1_result;
}
-
sk_FragColor = _0_loopy;
}
diff --git a/tests/sksl/inliner/golden/IfBodyMustBeInlinedIntoAScope.glsl b/tests/sksl/inliner/golden/IfBodyMustBeInlinedIntoAScope.glsl
index b6c5543..06e7cdb 100644
--- a/tests/sksl/inliner/golden/IfBodyMustBeInlinedIntoAScope.glsl
+++ b/tests/sksl/inliner/golden/IfBodyMustBeInlinedIntoAScope.glsl
@@ -8,7 +8,6 @@
{
_0_ifBody = color + vec4(0.125);
}
-
c = _0_ifBody;
}
sk_FragColor = c;
diff --git a/tests/sksl/inliner/golden/IfElseBodyMustBeInlinedIntoAScope.glsl b/tests/sksl/inliner/golden/IfElseBodyMustBeInlinedIntoAScope.glsl
index 8e77ffe..a5696c3 100644
--- a/tests/sksl/inliner/golden/IfElseBodyMustBeInlinedIntoAScope.glsl
+++ b/tests/sksl/inliner/golden/IfElseBodyMustBeInlinedIntoAScope.glsl
@@ -9,7 +9,6 @@
{
_0_elseBody = color + vec4(0.125);
}
-
c = _0_elseBody;
}
sk_FragColor = c;
diff --git a/tests/sksl/inliner/golden/IfElseChainWithReturnsCanBeInlined.glsl b/tests/sksl/inliner/golden/IfElseChainWithReturnsCanBeInlined.glsl
index 9b44207..73e0300 100644
--- a/tests/sksl/inliner/golden/IfElseChainWithReturnsCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/IfElseChainWithReturnsCanBeInlined.glsl
@@ -8,7 +8,6 @@
_1_c *= 0.5;
if (_1_c.x > 0.0) _0_branchy = _1_c.xxxx; else if (_1_c.y > 0.0) _0_branchy = _1_c.yyyy; else if (_1_c.z > 0.0) _0_branchy = _1_c.zzzz; else _0_branchy = _1_c.wwww;
}
-
vec4 _2_branchyAndBlocky;
{
{
@@ -30,7 +29,7 @@
}
}
}
-
sk_FragColor = _0_branchy * _2_branchyAndBlocky;
+
}
diff --git a/tests/sksl/inliner/golden/IfTestCanBeInlined.glsl b/tests/sksl/inliner/golden/IfTestCanBeInlined.glsl
index e8c4286..3982113 100644
--- a/tests/sksl/inliner/golden/IfTestCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/IfTestCanBeInlined.glsl
@@ -6,7 +6,6 @@
{
_0_ifTest = color.x >= 0.5;
}
-
if (_0_ifTest) sk_FragColor = vec4(1.0); else sk_FragColor = vec4(0.5);
}
diff --git a/tests/sksl/inliner/golden/IfWithReturnsCanBeInlined.glsl b/tests/sksl/inliner/golden/IfWithReturnsCanBeInlined.glsl
index 87d0f74..120ded4 100644
--- a/tests/sksl/inliner/golden/IfWithReturnsCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/IfWithReturnsCanBeInlined.glsl
@@ -6,7 +6,6 @@
{
if (color.z == color.w) _0_branchy = color.yyyy; else _0_branchy = color.zzzz;
}
-
sk_FragColor = _0_branchy;
}
diff --git a/tests/sksl/inliner/golden/InlineWithInoutArgument.glsl b/tests/sksl/inliner/golden/InlineWithInoutArgument.glsl
index b2dd5e4..58060b6 100644
--- a/tests/sksl/inliner/golden/InlineWithInoutArgument.glsl
+++ b/tests/sksl/inliner/golden/InlineWithInoutArgument.glsl
@@ -6,6 +6,5 @@
x *= 2.0;
}
-
sk_FragColor.x = x;
}
diff --git a/tests/sksl/inliner/golden/InlineWithModifiedArgument.glsl b/tests/sksl/inliner/golden/InlineWithModifiedArgument.glsl
index 8ca56f4..c60b7c5 100644
--- a/tests/sksl/inliner/golden/InlineWithModifiedArgument.glsl
+++ b/tests/sksl/inliner/golden/InlineWithModifiedArgument.glsl
@@ -7,7 +7,6 @@
_1_x *= 2.0;
_0_parameterWrite = _1_x;
}
-
sk_FragColor.x = _0_parameterWrite;
}
diff --git a/tests/sksl/inliner/golden/InlineWithNestedCalls.glsl b/tests/sksl/inliner/golden/InlineWithNestedCalls.glsl
index 5e8d4b3..acf74bf 100644
--- a/tests/sksl/inliner/golden/InlineWithNestedCalls.glsl
+++ b/tests/sksl/inliner/golden/InlineWithNestedCalls.glsl
@@ -43,6 +43,5 @@
}
-
sk_FragColor.x = 0.0;
}
diff --git a/tests/sksl/inliner/golden/InlineWithUnnecessaryBlocks.glsl b/tests/sksl/inliner/golden/InlineWithUnnecessaryBlocks.glsl
index 3f8bf4d..6c73d06 100644
--- a/tests/sksl/inliner/golden/InlineWithUnnecessaryBlocks.glsl
+++ b/tests/sksl/inliner/golden/InlineWithUnnecessaryBlocks.glsl
@@ -8,7 +8,6 @@
_0_blocky = color;
}
}
-
sk_FragColor = _0_blocky;
}
diff --git a/tests/sksl/inliner/golden/InlinerAvoidsVariableNameOverlap.glsl b/tests/sksl/inliner/golden/InlinerAvoidsVariableNameOverlap.glsl
index acffc2c..e25e514 100644
--- a/tests/sksl/inliner/golden/InlinerAvoidsVariableNameOverlap.glsl
+++ b/tests/sksl/inliner/golden/InlinerAvoidsVariableNameOverlap.glsl
@@ -9,11 +9,9 @@
vec2 _5_1_reusedName = _3_reusedName + vec2(3.0, 4.0);
_4_0_InlineB = _5_1_reusedName;
}
-
_2_InlineA = _4_0_InlineB;
}
-
return _2_InlineA.xyxy;
}
diff --git a/tests/sksl/inliner/golden/InlinerCanBeDisabledStandaloneSettings.glsl b/tests/sksl/inliner/golden/InlinerCanBeDisabledStandaloneSettings.glsl
index 22053eb..36c059a 100644
--- a/tests/sksl/inliner/golden/InlinerCanBeDisabledStandaloneSettings.glsl
+++ b/tests/sksl/inliner/golden/InlinerCanBeDisabledStandaloneSettings.glsl
@@ -75,64 +75,58 @@
}
uniform vec4 color;
void main() {
- float _3_fma;
+ float _1_fma;
{
- float _4_0_mul;
+ float _2_0_mul;
{
- _4_0_mul = color.x * color.y;
+ _2_0_mul = color.x * color.y;
}
-
- float _5_1_add;
+ float _15_add;
{
- float _6_2_c = _4_0_mul + color.z;
- _5_1_add = _6_2_c;
+ float _16_c = _2_0_mul + color.z;
+ _15_add = _16_c;
}
+ _1_fma = _15_add;
- _3_fma = _5_1_add;
}
-
- sk_FragColor = vec4(_3_fma);
+ sk_FragColor = vec4(_1_fma);
sk_FragColor *= 1.25;
- vec4 _8_blend_src_in;
+ vec4 _4_blend_src_in;
{
- _8_blend_src_in = color.xxyy * color.w;
+ _4_blend_src_in = color.xxyy * color.w;
}
+ sk_FragColor *= _4_blend_src_in;
- sk_FragColor *= _8_blend_src_in;
-
- vec4 _9_blend_dst_in;
+ vec4 _5_blend_dst_in;
{
- vec4 _10_0_blend_src_in;
+ vec4 _6_0_blend_src_in;
{
- _10_0_blend_src_in = color.zzww * color.y;
+ _6_0_blend_src_in = color.zzww * color.y;
}
- _9_blend_dst_in = _10_0_blend_src_in;
+ _5_blend_dst_in = _6_0_blend_src_in;
}
+ sk_FragColor *= _5_blend_dst_in;
- sk_FragColor *= _9_blend_dst_in;
+ vec4 _7_blend_hue;
+ {
+ float _8_alpha = color.w * color.w;
+ vec3 _9_sda = color.xyz * color.w;
+ vec3 _10_dsa = color.www * color.w;
+ _7_blend_hue = vec4((((_blend_set_color_luminance(_blend_set_color_saturation(_9_sda, _10_dsa), _8_alpha, _10_dsa) + color.www) - _10_dsa) + color.xyz) - _9_sda, (color.w + color.w) - _8_alpha);
+ }
+ sk_FragColor *= _7_blend_hue;
vec4 _11_blend_hue;
{
- float _12_alpha = color.w * color.w;
- vec3 _13_sda = color.xyz * color.w;
- vec3 _14_dsa = color.www * color.w;
- _11_blend_hue = vec4((((_blend_set_color_luminance(_blend_set_color_saturation(_13_sda, _14_dsa), _12_alpha, _14_dsa) + color.www) - _14_dsa) + color.xyz) - _13_sda, (color.w + color.w) - _12_alpha);
+ float _12_alpha = color.x * color.w;
+ vec3 _13_sda = color.xyz * color.x;
+ vec3 _14_dsa = color.wzy * color.w;
+ _11_blend_hue = vec4((((_blend_set_color_luminance(_blend_set_color_saturation(_13_sda, _14_dsa), _12_alpha, _14_dsa) + color.wzy) - _14_dsa) + color.xyz) - _13_sda, (color.w + color.x) - _12_alpha);
}
-
sk_FragColor *= _11_blend_hue;
- vec4 _15_blend_hue;
- {
- float _16_alpha = color.x * color.w;
- vec3 _17_sda = color.xyz * color.x;
- vec3 _18_dsa = color.wzy * color.w;
- _15_blend_hue = vec4((((_blend_set_color_luminance(_blend_set_color_saturation(_17_sda, _18_dsa), _16_alpha, _18_dsa) + color.wzy) - _18_dsa) + color.xyz) - _17_sda, (color.w + color.x) - _16_alpha);
- }
-
- sk_FragColor *= _15_blend_hue;
-
}
diff --git a/tests/sksl/inliner/golden/InlinerManglesNames.glsl b/tests/sksl/inliner/golden/InlinerManglesNames.glsl
index 9336039..e9f8704 100644
--- a/tests/sksl/inliner/golden/InlinerManglesNames.glsl
+++ b/tests/sksl/inliner/golden/InlinerManglesNames.glsl
@@ -1,78 +1,71 @@
uniform vec4 color;
vec4 main() {
+ float _1_fma;
+ {
+ float _2_0_mul;
+ {
+ _2_0_mul = color.x * color.y;
+ }
+ float _8_add;
+ {
+ float _9_c = _2_0_mul + color.z;
+ _8_add = _9_c;
+ }
+ _1_fma = _8_add;
+
+
+ }
+ float a = _1_fma;
+
float _3_fma;
{
float _4_0_mul;
{
- _4_0_mul = color.x * color.y;
+ _4_0_mul = color.y * color.z;
}
-
- float _5_1_add;
+ float _10_add;
{
- float _6_2_c = _4_0_mul + color.z;
- _5_1_add = _6_2_c;
+ float _11_c = _4_0_mul + color.w;
+ _10_add = _11_c;
}
+ _3_fma = _10_add;
- _3_fma = _5_1_add;
}
+ float b = _3_fma;
- float a = _3_fma;
-
- float _7_fma;
+ float _5_fma;
{
- float _8_0_mul;
+ float _6_0_mul;
{
- _8_0_mul = color.y * color.z;
+ _6_0_mul = color.z * color.w;
}
-
- float _9_1_add;
+ float _12_add;
{
- float _10_2_c = _8_0_mul + color.w;
- _9_1_add = _10_2_c;
+ float _13_c = _6_0_mul + color.x;
+ _12_add = _13_c;
}
+ _5_fma = _12_add;
- _7_fma = _9_1_add;
}
+ float c = _5_fma;
- float b = _7_fma;
-
- float _11_fma;
+ float _7_mul;
{
- float _12_0_mul;
- {
- _12_0_mul = color.z * color.w;
- }
-
- float _13_1_add;
- {
- float _14_2_c = _12_0_mul + color.x;
- _13_1_add = _14_2_c;
- }
-
- _11_fma = _13_1_add;
-
+ _7_mul = c * c;
}
-
- float c = _11_fma;
-
+ float _14_mul;
+ {
+ _14_mul = b * c;
+ }
float _15_mul;
{
- _15_mul = c * c;
+ _15_mul = a * _14_mul;
}
+ return vec4(a, b, _7_mul, _15_mul);
- float _16_mul;
- {
- _16_mul = b * c;
- }
- float _17_mul;
- {
- _17_mul = a * _16_mul;
- }
-
- return vec4(a, b, _15_mul, _17_mul);
}
diff --git a/tests/sksl/inliner/golden/InlinerWrapsEarlyReturnsWithDoWhileBlock.glsl b/tests/sksl/inliner/golden/InlinerWrapsEarlyReturnsWithDoWhileBlock.glsl
index bc19842..9961d98 100644
--- a/tests/sksl/inliner/golden/InlinerWrapsEarlyReturnsWithDoWhileBlock.glsl
+++ b/tests/sksl/inliner/golden/InlinerWrapsEarlyReturnsWithDoWhileBlock.glsl
@@ -17,7 +17,6 @@
break;
}
} while (false);
-
sk_FragColor = _0_returny;
}
diff --git a/tests/sksl/inliner/golden/ShortCircuitEvaluationsCannotInlineRightHandSide.glsl b/tests/sksl/inliner/golden/ShortCircuitEvaluationsCannotInlineRightHandSide.glsl
index 92a0060..4646334 100644
--- a/tests/sksl/inliner/golden/ShortCircuitEvaluationsCannotInlineRightHandSide.glsl
+++ b/tests/sksl/inliner/golden/ShortCircuitEvaluationsCannotInlineRightHandSide.glsl
@@ -13,7 +13,6 @@
{
_0_testA = color.x <= 0.5;
}
-
if (_0_testA && testB(color)) {
sk_FragColor = vec4(0.5);
}
@@ -22,7 +21,6 @@
{
_1_testB = color.x > 0.5;
}
-
if (_1_testB || testA(color)) {
sk_FragColor = vec4(1.0);
}
diff --git a/tests/sksl/inliner/golden/SwitchWithCastCanBeInlined.glsl b/tests/sksl/inliner/golden/SwitchWithCastCanBeInlined.glsl
index 7d24fa9..c708e77 100644
--- a/tests/sksl/inliner/golden/SwitchWithCastCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/SwitchWithCastCanBeInlined.glsl
@@ -15,7 +15,6 @@
}
_0_switchy = _1_result;
}
-
sk_FragColor = _0_switchy;
}
diff --git a/tests/sksl/inliner/golden/SwitchWithoutReturnInsideCanBeInlined.glsl b/tests/sksl/inliner/golden/SwitchWithoutReturnInsideCanBeInlined.glsl
index d25f033..0c2a1aa 100644
--- a/tests/sksl/inliner/golden/SwitchWithoutReturnInsideCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/SwitchWithoutReturnInsideCanBeInlined.glsl
@@ -11,7 +11,6 @@
}
_0_switchy = _1_result;
}
-
sk_FragColor = _0_switchy;
}
diff --git a/tests/sksl/inliner/golden/SwizzleCanBeInlinedDirectly.glsl b/tests/sksl/inliner/golden/SwizzleCanBeInlinedDirectly.glsl
index 7af5ca6..484cb16 100644
--- a/tests/sksl/inliner/golden/SwizzleCanBeInlinedDirectly.glsl
+++ b/tests/sksl/inliner/golden/SwizzleCanBeInlinedDirectly.glsl
@@ -8,13 +8,11 @@
{
_0_flip = color.yzyx;
}
-
sk_FragColor = _0_flip;
{
color = color.wzyx;
}
-
sk_FragColor = color;
}
diff --git a/tests/sksl/inliner/golden/TernaryTestCanBeInlined.glsl b/tests/sksl/inliner/golden/TernaryTestCanBeInlined.glsl
index e02e31f..abaef81 100644
--- a/tests/sksl/inliner/golden/TernaryTestCanBeInlined.glsl
+++ b/tests/sksl/inliner/golden/TernaryTestCanBeInlined.glsl
@@ -6,7 +6,6 @@
{
_0_test = color.x <= 0.5;
}
-
sk_FragColor = _0_test ? vec4(0.5) : vec4(1.0);
}
diff --git a/tests/sksl/inliner/golden/TrivialArgumentsInlineDirectly.glsl b/tests/sksl/inliner/golden/TrivialArgumentsInlineDirectly.glsl
index 7ca2be7..0a6cd47 100644
--- a/tests/sksl/inliner/golden/TrivialArgumentsInlineDirectly.glsl
+++ b/tests/sksl/inliner/golden/TrivialArgumentsInlineDirectly.glsl
@@ -20,80 +20,65 @@
sk_FragColor = sk_FragColor.xxxx;
}
-
{
sk_FragColor = vec4(s.h);
}
-
{
sk_FragColor = s.ah4[0].ywyw;
}
-
{
sk_FragColor = as[0].ah4[0].xyxy;
}
-
{
sk_FragColor = s.h4.zzzz;
}
-
{
sk_FragColor = uh4.xyzx;
}
-
{
sk_FragColor = vec4(s.h);
}
-
{
sk_FragColor = vec4(s.h);
}
-
{
sk_FragColor = s.ah4[0].xxxy;
}
-
{
sk_FragColor = uh4;
}
-
- bool _1_b = !true;
+ bool _0_b = !true;
{
- sk_FragColor = _1_b ? sk_FragColor.xxxx : sk_FragColor.yyyy;
+ sk_FragColor = _0_b ? sk_FragColor.xxxx : sk_FragColor.yyyy;
}
-
- float _2_h = -s.h;
+ float _1_h = -s.h;
{
- sk_FragColor = vec4(_2_h);
+ sk_FragColor = vec4(_1_h);
}
-
- vec2 _3_h2 = s.ah4[ui].yw;
+ vec2 _2_h2 = s.ah4[ui].yw;
{
- sk_FragColor = _3_h2.xyxy;
+ sk_FragColor = _2_h2.xyxy;
}
-
- vec3 _4_h3 = s.h4.yyy + s.h4.zzz;
+ vec3 _3_h3 = s.h4.yyy + s.h4.zzz;
{
- sk_FragColor = _4_h3.xyzx;
+ sk_FragColor = _3_h3.xyzx;
}
-
- vec4 _5_h4 = vec4(s.h4.y, 0.0, 0.0, 1.0);
+ vec4 _4_h4 = vec4(s.h4.y, 0.0, 0.0, 1.0);
{
- sk_FragColor = _5_h4;
+ sk_FragColor = _4_h4;
}
-
}
diff --git a/tests/sksl/inliner/golden/WhileBodyMustBeInlinedIntoAScope.glsl b/tests/sksl/inliner/golden/WhileBodyMustBeInlinedIntoAScope.glsl
index 995bf95..f3f7b9f 100644
--- a/tests/sksl/inliner/golden/WhileBodyMustBeInlinedIntoAScope.glsl
+++ b/tests/sksl/inliner/golden/WhileBodyMustBeInlinedIntoAScope.glsl
@@ -7,7 +7,6 @@
{
_0_adjust = sk_FragColor + vec4(0.125);
}
-
sk_FragColor = _0_adjust;
}
}
diff --git a/tests/sksl/shared/golden/CrossIntrinsic.glsl b/tests/sksl/shared/golden/CrossIntrinsic.glsl
index d5c64d5..bb9eb69 100644
--- a/tests/sksl/shared/golden/CrossIntrinsic.glsl
+++ b/tests/sksl/shared/golden/CrossIntrinsic.glsl
@@ -7,28 +7,24 @@
{
_0_cross = determinant(mat2(vec2(1.0, 2.0), vec2(3.0, 4.0)));
}
-
sk_FragColor = vec4(_0_cross);
float _1_cross;
{
_1_cross = determinant(mat2(vec2(5.0, 6.0), vec2(7.0, 8.0)));
}
-
sk_FragColor = vec4(_1_cross);
float _2_cross;
{
_2_cross = determinant(mat2(h2, h2));
}
-
sk_FragColor = vec4(_2_cross);
float _3_cross;
{
_3_cross = determinant(mat2(f2, f2));
}
-
sk_FragColor = vec4(_3_cross);
}
diff --git a/tests/sksl/shared/golden/CrossIntrinsicStandaloneSettings.glsl b/tests/sksl/shared/golden/CrossIntrinsicStandaloneSettings.glsl
index 0a92466..2809b1a 100644
--- a/tests/sksl/shared/golden/CrossIntrinsicStandaloneSettings.glsl
+++ b/tests/sksl/shared/golden/CrossIntrinsicStandaloneSettings.glsl
@@ -11,14 +11,12 @@
{
_2_cross = h2.x * h2.y - h2.y * h2.x;
}
-
sk_FragColor = vec4(_2_cross);
float _3_cross;
{
_3_cross = f2.x * f2.y - f2.y * f2.x;
}
-
sk_FragColor = vec4(_3_cross);
}
diff --git a/tests/sksl/shared/golden/Functions.glsl b/tests/sksl/shared/golden/Functions.glsl
index 0f446c6..9da0c5d 100644
--- a/tests/sksl/shared/golden/Functions.glsl
+++ b/tests/sksl/shared/golden/Functions.glsl
@@ -12,7 +12,6 @@
{
_4_0_foo = _2_y[0] * _2_y[1];
}
-
_3_z = _4_0_foo;
float _5_a[2][3];
@@ -22,7 +21,6 @@
{
_6_1_arr = _5_a[0][0] * _5_a[1][2];
}
-
x = _3_z + _6_1_arr;
}
diff --git a/tests/sksl/shared/golden/Functions.metal b/tests/sksl/shared/golden/Functions.metal
index 4686808..8a7a521 100644
--- a/tests/sksl/shared/golden/Functions.metal
+++ b/tests/sksl/shared/golden/Functions.metal
@@ -20,7 +20,6 @@
{
_4_0_foo = _2_y[0] * _2_y[1];
}
-
_3_z = _4_0_foo;
float _5_a[2][3];
@@ -30,7 +29,6 @@
{
_6_1_arr = _5_a[0][0] * _5_a[1][2];
}
-
x = _3_z + _6_1_arr;
}
diff --git a/tests/sksl/shared/golden/GeometryNoGSInvocations.glsl b/tests/sksl/shared/golden/GeometryNoGSInvocations.glsl
index 2fa5fe0..99f4f90 100644
--- a/tests/sksl/shared/golden/GeometryNoGSInvocations.glsl
+++ b/tests/sksl/shared/golden/GeometryNoGSInvocations.glsl
@@ -8,7 +8,6 @@
EmitVertex();
}
-
gl_Position = gl_in[0].gl_Position + vec4(-0.5, 0.0, 0.0, float(sk_InvocationID));
EmitVertex();
}
diff --git a/tests/sksl/shared/golden/GeometryNoGSInvocationsReorder.glsl b/tests/sksl/shared/golden/GeometryNoGSInvocationsReorder.glsl
index 7ac7998..e0f06a7 100644
--- a/tests/sksl/shared/golden/GeometryNoGSInvocationsReorder.glsl
+++ b/tests/sksl/shared/golden/GeometryNoGSInvocationsReorder.glsl
@@ -8,7 +8,6 @@
EmitVertex();
}
-
gl_Position = gl_in[0].gl_Position + vec4(-0.5, 0.0, 0.0, float(sk_InvocationID));
EmitVertex();
}
diff --git a/tests/sksl/shared/golden/OutParams.glsl b/tests/sksl/shared/golden/OutParams.glsl
index 8782cda..7db52d9 100644
--- a/tests/sksl/shared/golden/OutParams.glsl
+++ b/tests/sksl/shared/golden/OutParams.glsl
@@ -6,93 +6,77 @@
h3 = vec3(3.0);
}
-
vec4 h4;
{
h4 = vec4(4.0);
}
-
{
h3.xz = vec2(2.0);
}
-
{
h4.zwxy = vec4(4.0);
}
-
sk_FragColor = vec4(1.0, 2.0, h3.x, h4.x);
mat3 h3x3;
{
h3x3 = mat3(3.0);
}
-
mat4 h4x4;
{
h4x4 = mat4(4.0);
}
-
{
h3x3[1] = vec3(3.0);
}
-
{
h4x4[3].w = 1.0;
}
-
sk_FragColor = vec4(mat2(2.0)[0][0], h3x3[0][0], h4x4[0][0], 1.0);
ivec4 i4;
{
i4 = ivec4(4);
}
-
{
i4.xyz = ivec3(3);
}
-
sk_FragColor = vec4(1.0, 2.0, 3.0, float(i4.x));
vec3 f3;
{
f3 = vec3(3.0);
}
-
{
f3.xy = vec2(2.0);
}
-
sk_FragColor = vec4(1.0, 2.0, f3.x, 4.0);
mat2 f2x2;
{
f2x2 = mat2(2.0);
}
-
{
f2x2[0][0] = 1.0;
}
-
sk_FragColor = vec4(f2x2[0][0], mat3(3.0)[0][0], mat4(4.0)[0][0], 1.0);
bvec4 b4;
{
b4 = bvec4(false);
}
-
{
b4.xw = bvec2(false);
}
-
sk_FragColor = vec4(1.0, false ? 1.0 : 0.0, true ? 1.0 : 0.0, b4.x ? 1.0 : 0.0);
}
diff --git a/tests/sksl/shared/golden/OutParams.metal b/tests/sksl/shared/golden/OutParams.metal
index a1c5d42..1fa89cc 100644
--- a/tests/sksl/shared/golden/OutParams.metal
+++ b/tests/sksl/shared/golden/OutParams.metal
@@ -14,94 +14,78 @@
h3 = float3(3.0);
}
-
float4 h4;
{
h4 = float4(4.0);
}
-
{
h3.xz = float2(2.0);
}
-
{
h4.zwxy = float4(4.0);
}
-
_out->sk_FragColor = float4(1.0, 2.0, h3.x, h4.x);
float3x3 h3x3;
{
h3x3 = float3x3(3.0);
}
-
float4x4 h4x4;
{
h4x4 = float4x4(4.0);
}
-
{
h3x3[1] = float3(3.0);
}
-
{
h4x4[3].w = 1.0;
}
-
_out->sk_FragColor = float4(float2x2(2.0)[0][0], h3x3[0][0], h4x4[0][0], 1.0);
int4 i4;
{
i4 = int4(4);
}
-
{
i4.xyz = int3(3);
}
-
_out->sk_FragColor = float4(1.0, 2.0, 3.0, float(i4.x));
float3 f3;
{
f3 = float3(3.0);
}
-
{
f3.xy = float2(2.0);
}
-
_out->sk_FragColor = float4(1.0, 2.0, f3.x, 4.0);
float2x2 f2x2;
{
f2x2 = float2x2(2.0);
}
-
{
f2x2[0][0] = 1.0;
}
-
_out->sk_FragColor = float4(f2x2[0][0], float3x3(3.0)[0][0], float4x4(4.0)[0][0], 1.0);
bool4 b4;
{
b4 = bool4(false);
}
-
{
b4.xw = bool2(false);
}
-
_out->sk_FragColor = float4(1.0, bool(false) ? 1.0 : 0.0, bool(true) ? 1.0 : 0.0, b4.x ? 1.0 : 0.0);
return *_out;
}
diff --git a/tests/sksl/shared/golden/OutParamsTricky.glsl b/tests/sksl/shared/golden/OutParamsTricky.glsl
index 141cb04..d0b3f61 100644
--- a/tests/sksl/shared/golden/OutParamsTricky.glsl
+++ b/tests/sksl/shared/golden/OutParamsTricky.glsl
@@ -6,9 +6,7 @@
sk_FragColor.xz.xy = sk_FragColor.zx;
}
-
sk_FragColor.yw = vec2(3.0, 5.0);
}
-
}
diff --git a/tests/sksl/shared/golden/OutParamsTricky.metal b/tests/sksl/shared/golden/OutParamsTricky.metal
index 7ad6eb7..797b794 100644
--- a/tests/sksl/shared/golden/OutParamsTricky.metal
+++ b/tests/sksl/shared/golden/OutParamsTricky.metal
@@ -14,10 +14,8 @@
_out->sk_FragColor.xz.xy = _out->sk_FragColor.zx;
}
-
_out->sk_FragColor.yw = float2(3.0, 5.0);
}
-
return *_out;
}
diff --git a/tests/sksl/workarounds/golden/BlendGuardedDivide.glsl b/tests/sksl/workarounds/golden/BlendGuardedDivide.glsl
index 871040f..366eecf 100644
--- a/tests/sksl/workarounds/golden/BlendGuardedDivide.glsl
+++ b/tests/sksl/workarounds/golden/BlendGuardedDivide.glsl
@@ -67,21 +67,18 @@
{
_0_blend_color_dodge = vec4(_color_dodge_component(src.xw, dst.xw), _color_dodge_component(src.yw, dst.yw), _color_dodge_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_color_dodge;
vec4 _1_blend_color_burn;
{
_1_blend_color_burn = vec4(_color_burn_component(src.xw, dst.xw), _color_burn_component(src.yw, dst.yw), _color_burn_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _1_blend_color_burn;
vec4 _2_blend_soft_light;
{
_2_blend_soft_light = dst.w == 0.0 ? src : vec4(_soft_light_component(src.xw, dst.xw), _soft_light_component(src.yw, dst.yw), _soft_light_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _2_blend_soft_light;
}
diff --git a/tests/sksl/workarounds/golden/BlendGuardedDivideStandaloneSettings.glsl b/tests/sksl/workarounds/golden/BlendGuardedDivideStandaloneSettings.glsl
index 6fbbc3d..ef4817e 100644
--- a/tests/sksl/workarounds/golden/BlendGuardedDivideStandaloneSettings.glsl
+++ b/tests/sksl/workarounds/golden/BlendGuardedDivideStandaloneSettings.glsl
@@ -67,21 +67,18 @@
{
_0_blend_color_dodge = vec4(_color_dodge_component(src.xw, dst.xw), _color_dodge_component(src.yw, dst.yw), _color_dodge_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _0_blend_color_dodge;
vec4 _1_blend_color_burn;
{
_1_blend_color_burn = vec4(_color_burn_component(src.xw, dst.xw), _color_burn_component(src.yw, dst.yw), _color_burn_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _1_blend_color_burn;
vec4 _2_blend_soft_light;
{
_2_blend_soft_light = dst.w == 0.0 ? src : vec4(_soft_light_component(src.xw, dst.xw), _soft_light_component(src.yw, dst.yw), _soft_light_component(src.zw, dst.zw), src.w + (1.0 - src.w) * dst.w);
}
-
sk_FragColor = _2_blend_soft_light;
}
diff --git a/tests/sksl/workarounds/golden/BlendModesAllZeroVec.glsl b/tests/sksl/workarounds/golden/BlendModesAllZeroVec.glsl
index 4c5844a..3a30f07 100644
--- a/tests/sksl/workarounds/golden/BlendModesAllZeroVec.glsl
+++ b/tests/sksl/workarounds/golden/BlendModesAllZeroVec.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_in = src == vec4(0.0) ? vec4(0.0) : src * dst.w;
}
-
sk_FragColor = _0_blend_src_in;
vec4 _1_blend_dst_in;
@@ -19,7 +18,6 @@
_1_blend_dst_in = _2_0_blend_src_in;
}
-
sk_FragColor = _1_blend_dst_in;
}
diff --git a/tests/sksl/workarounds/golden/BlendModesAllZeroVecStandaloneSettings.glsl b/tests/sksl/workarounds/golden/BlendModesAllZeroVecStandaloneSettings.glsl
index de540c2..1420b9c 100644
--- a/tests/sksl/workarounds/golden/BlendModesAllZeroVecStandaloneSettings.glsl
+++ b/tests/sksl/workarounds/golden/BlendModesAllZeroVecStandaloneSettings.glsl
@@ -7,7 +7,6 @@
{
_0_blend_src_in = src * dst.w;
}
-
sk_FragColor = _0_blend_src_in;
vec4 _1_blend_dst_in;
@@ -19,7 +18,6 @@
_1_blend_dst_in = _2_0_blend_src_in;
}
-
sk_FragColor = _1_blend_dst_in;
}