03467a53e6
This reverts commit 50b1b2b90d
.
Reason for revert: ending experiment
Original change's description:
> Disable control-flow analysis in SkSL. (Performance experiment)
>
> This CL will be used to test for potential performance regressions (or
> improvements?) that we might incur by disabling this optimization pass.
>
> It will be reverted in ~1 day.
>
> Change-Id: I775cdb0c95df81fa25ebbd66e4ff01f64c660f68
> Bug: skia:11319
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/378456
> Commit-Queue: John Stiles <johnstiles@google.com>
> Reviewed-by: Brian Osman <brianosman@google.com>
> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
TBR=brianosman@google.com,ethannicholas@google.com,johnstiles@google.com
Change-Id: Ie385a82db237ff5651348d82b9651f8ba09375b9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:11319
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379581
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
34 lines
516 B
GLSL
34 lines
516 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorRed;
|
|
uniform vec4 colorGreen;
|
|
vec4 main() {
|
|
bool ok = true;
|
|
int a = 1;
|
|
a = 2;
|
|
a += a;
|
|
a = a + a;
|
|
a += a;
|
|
a = a + a;
|
|
ok = a == 32;
|
|
int b = 10;
|
|
b = 8;
|
|
b -= 2;
|
|
b = b - 1;
|
|
b -= 3;
|
|
ok = ok && b == 2;
|
|
int c = 2;
|
|
c = 4;
|
|
c *= c;
|
|
c = c * 4;
|
|
c *= 2;
|
|
ok = ok && c == 128;
|
|
int d = 256;
|
|
d = 128;
|
|
d /= 2;
|
|
d = d / 4;
|
|
d /= 4;
|
|
ok = ok && d == 4;
|
|
return ok ? colorGreen : colorRed;
|
|
}
|