7a3f5506b6
This CL will be used to test for potential performance regressions (or improvements) that we might cause by disabling this optimization pass. It will be reverted in ~1 day. Change-Id: I26b7687c341eb6d81231406381c39869cfccf6d6 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381259 Auto-Submit: John Stiles <johnstiles@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
21 lines
510 B
GLSL
21 lines
510 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
vec4 main() {
|
|
float result = 0.0;
|
|
mat3 g = mat3(mat2x3(1.0));
|
|
result += g[0].x;
|
|
mat3 h = mat3(mat3x2(1.0));
|
|
result += h[0].x;
|
|
mat4 i = mat4(mat4x3(mat4x2(1.0)));
|
|
result += i[0].x;
|
|
mat4 j = mat4(mat3x4(mat2x4(1.0)));
|
|
result += j[0].x;
|
|
mat2x4 k = mat2x4(mat4x2(1.0));
|
|
result += k[0].x;
|
|
mat4x2 l = mat4x2(mat2x4(1.0));
|
|
result += l[0].x;
|
|
return result == 6.0 ? colorGreen : colorRed;
|
|
}
|