50b1b2b90d
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>
10 lines
360 B
GLSL
10 lines
360 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 testInputs;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
vec4 main() {
|
|
ivec4 expected = ivec4(1, 0, 0, 2);
|
|
return ((abs(ivec4(testInputs).x) == expected.x && abs(ivec4(testInputs).xy) == expected.xy) && abs(ivec4(testInputs).xyz) == expected.xyz) && abs(ivec4(testInputs)) == expected ? colorGreen : colorRed;
|
|
}
|