skia2/tests/sksl/folding
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
..
golden Implement constant folding for (bool == bool) and (bool != bool). 2021-01-20 14:22:35 +00:00
BoolFolding.sksl Implement constant folding for (bool == bool) and (bool != bool). 2021-01-20 14:22:35 +00:00
FloatFolding.sksl Migrate constant folding tests into a separate directory. 2021-01-11 18:05:18 +00:00
IntFolding.sksl Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
MatrixFolding.sksl Migrate constant folding tests into a separate directory. 2021-01-11 18:05:18 +00:00
ShortCircuitBoolFolding.sksl Migrate constant folding tests into a separate directory. 2021-01-11 18:05:18 +00:00
VectorScalarFolding.sksl Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00
VectorVectorFolding.sksl Update tests which mix int and float types without casts. 2021-01-13 19:47:13 +00:00