skia2/tests/sksl/inliner/golden/TrivialArgumentsInlineDirectly.glsl
John Stiles 4c412bce4c Revert "Reland "Remove inliner from IR generation stage.""
This reverts commit e497a08065.

Reason for revert: Pinpoint disagrees

Original change's description:
> Reland "Remove inliner from IR generation stage."
>
> This reverts commit 941fc7174f.
>
> 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 21d7778cb5.
> >
> > 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>
2020-10-13 15:20:28 +00:00

100 lines
1.2 KiB
GLSL

out vec4 sk_FragColor;
in float val;
uniform int ui;
uniform vec4 uh4;
void main() {
struct S {
vec4[1] ah4;
float[1] ah;
vec4 h4;
float h;
} s;
s.ah4[0] = vec4(val);
s.ah[0] = val;
s.h4 = vec4(val);
s.h = val;
S as[1];
as[0].ah4[0] = vec4(val);
{
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 = vec3(s.h).xyzx;
}
{
sk_FragColor = vec4(s.h);
}
{
sk_FragColor = s.ah4[0].xxxy;
}
{
sk_FragColor = uh4;
}
bool _1_b = !true;
{
sk_FragColor = _1_b ? sk_FragColor.xxxx : sk_FragColor.yyyy;
}
float _2_h = -s.h;
{
sk_FragColor = vec4(_2_h);
}
vec2 _3_h2 = s.ah4[ui].yw;
{
sk_FragColor = _3_h2.xyxy;
}
vec3 _4_h3 = s.h4.yyy + s.h4.zzz;
{
sk_FragColor = _4_h3.xyzx;
}
vec4 _5_h4 = vec3(s.h4.y, 0.0, 1.0).xyyz;
{
sk_FragColor = _5_h4;
}
}