skia2/tests/sksl/folding/golden
John Stiles 26fdcbb38b Implement constant folding for (bool == bool) and (bool != bool).
We already had support for &&, ||, ^^ but somehow the common cases of
== and != were not implemented in the constant-folder.

This CL also updates the test to return a green/red color on success or
failure, instead of assigning arbitrary numbers into sk_FragColor that
don't mean anything. The long-term plan is to signal success or failure
of each test by color code; we can display these colors as swatches in a
GM slide for testing purposes.

Change-Id: I0810108b3c6b656a60cd8aa64ceefd765eff0157
Bug: skia:11112
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/355984
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-01-20 14:22:35 +00:00
..
BoolFolding.glsl Implement constant folding for (bool == bool) and (bool != bool). 2021-01-20 14:22:35 +00:00
FloatFolding.glsl
IntFolding.glsl Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
MatrixFolding.glsl
ShortCircuitBoolFolding.glsl
VectorScalarFolding.glsl
VectorVectorFolding.glsl