878d8fbf2f
The additional tests from http://review.skia.org/441238 uncovered a gap in the constant folder's abilities; it was not able to fold away boolean vector comparisons even when they were constant. These are ES2 constant-expressions, so folding them properly is a requirement. Change-Id: Ia0b4d5d1215c5fc2b247ac3f0dec4c8747d2153e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441579 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
28 lines
797 B
GLSL
28 lines
797 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorRed;
|
|
uniform vec4 colorGreen;
|
|
vec4 main() {
|
|
bool _0_a = true;
|
|
bool _1_b = false;
|
|
bool _2_c = true;
|
|
bool _3_d = false;
|
|
bool _4_e = true;
|
|
bool _5_f = false;
|
|
bool _6_g = true;
|
|
bool _7_h = false;
|
|
bool _8_i = true;
|
|
bool _9_j = false;
|
|
bool _12_k = true;
|
|
bool _13_l = false;
|
|
bool _14_m = true;
|
|
bool _15_n = false;
|
|
bool _16_o = true;
|
|
bool _17_p = false;
|
|
bool _18_q = true;
|
|
bool _19_r = false;
|
|
bool _20_s = true;
|
|
bool _21_t = false;
|
|
return ((((((((((((((((((_0_a && !_1_b) && _2_c) && !_3_d) && _4_e) && !_5_f) && _6_g) && !_7_h) && _8_i) && !_9_j) && _12_k) && !_13_l) && _14_m) && !_15_n) && _16_o) && !_17_p) && _18_q) && !_19_r) && _20_s) && !_21_t ? colorGreen : colorRed;
|
|
}
|