skia2/resources/sksl/folding
Arman Uguray e70f2e0e0f [sksl][test] Add more folding tests for side-effecting expressions
Moved the MatrixFoldingES2.sksl test case for matrix construction with
side-effects into a new PreserveSideEffects.sksl test and added new test
cases for various vector and matrix types and constructors. The new test
is written such that none of its contents should be folded away.

Note: This test does not pass on NVIDIA GPUs when using OpenGL as
discussed in skia:13035. Notably, NONE of the increments are executed on
those GPUs as ALL increment expressions seemingly get subjected to
constant-folding. The test is disabled on NVIDIA GPU bots.

This also means that the remaining MatrixFoldingES2.sksl tests now work
on NVIDIA GPUs when using OpenGL (with the exception of Tegra3 + OpenGL
ES).

Bug: skia:13035, skia:11919
Change-Id: I561bb62fe2b6b814ba80fbc492d3885bbcd6b65b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/518278
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-03-10 18:06:12 +00:00
..
ArrayFolding.sksl Improve index-folding of arrays and matrices. 2021-11-11 18:59:04 +00:00
ArraySizeFolding.sksl Add test for vector constant folding. 2022-01-12 17:23:20 +00:00
AssignmentOps.sksl Reland "Add coords parameter to all .sksl test files used as runtime effects" 2021-04-27 20:47:31 +00:00
BoolFolding.sksl Improve constant folding for boolean vectors. 2021-08-24 18:12:12 +00:00
CastFolding.sksl Add test demonstrating missed opportunities with casts. 2021-05-07 22:04:16 +00:00
FloatFolding.sksl Remove 0/x arithmetic simplification. 2021-08-24 19:18:41 +00:00
IntFoldingES2.sksl Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
IntFoldingES3.sksl Reland "Add coords parameter to all .sksl test files used as runtime effects" 2021-04-27 20:47:31 +00:00
MatrixFoldingES2.sksl [sksl][test] Add more folding tests for side-effecting expressions 2022-03-10 18:06:12 +00:00
MatrixFoldingES3.sksl Fill out matrix-folding ES3 tests. 2022-02-07 19:53:00 +00:00
Negation.sksl [sksl] Special-case unary negation on matrix types in MSL/SPIR-V 2022-03-01 20:14:46 +00:00
PreserveSideEffects.sksl [sksl][test] Add more folding tests for side-effecting expressions 2022-03-10 18:06:12 +00:00
SelfAssignment.sksl Enforce consistency in swizzle domains. 2021-07-09 20:30:22 +00:00
ShortCircuitBoolFolding.sksl Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
SwitchCaseFolding.sksl Simplify control flow in switch test to unbreak iOS. 2022-01-13 14:49:06 +00:00
SwizzleFolding.sksl Add test demonstrating swizzled constant folding. 2021-04-29 15:59:37 +00:00
VectorScalarFolding.sksl Remove 0/x arithmetic simplification. 2021-08-24 19:18:41 +00:00
VectorVectorFolding.sksl Remove 0/x arithmetic simplification. 2021-08-24 19:18:41 +00:00