skia2/resources/sksl/folding
John Stiles 5abb9e1426 Represent matrix resizes as a dedicated expression type.
This shook out a long-standing bug; constant folding would treat a
matrix resize as if the cells not covered by the original matrix were
all zero. This is wrong; GLSL populates the unknown cells with an
identity matrix. We actually tested for the wrong behavior, so the tests
were updated to match the correct behavior, and an equivalent test was
added that does not constant-fold (to verify that our constant folder
matches reality).

Change-Id: I03df10ce646fbef0a36e9c1a841a7637182de122
Bug: skia:11032
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/392916
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-04-06 18:35:06 +00:00
..
ArrayFolding.sksl Add test for folding of == and != for arrays. 2021-03-31 15:32:03 +00:00
AssignmentOps.sksl Add SkSL test demonstrating missed optimization with +=. 2021-02-09 19:17:26 +00:00
BoolFolding.sksl Add helper uniforms to Runtime Effect tests. 2021-01-27 00:53:46 +00:00
FloatFolding.sksl Add helper uniforms to Runtime Effect tests. 2021-01-27 00:53:46 +00:00
IntFoldingES2.sksl Add helper uniforms to Runtime Effect tests. 2021-01-27 00:53:46 +00:00
IntFoldingES3.sksl SkSL: Do left-shift constant-folding with unsigned integers 2021-02-01 19:51:28 +00:00
MatrixFoldingES2.sksl Represent matrix resizes as a dedicated expression type. 2021-04-06 18:35:06 +00:00
MatrixFoldingES3.sksl Add helper uniforms to Runtime Effect tests. 2021-01-27 00:53:46 +00:00
SelfAssignment.sksl Fix alpha channel in SelfAssignment test. 2021-02-11 14:41:15 +00:00
ShortCircuitBoolFolding.sksl Add helper uniforms to Runtime Effect tests. 2021-01-27 00:53:46 +00:00
VectorScalarFolding.sksl Add additional cases to folding tests. 2021-02-08 16:17:18 +00:00
VectorVectorFolding.sksl Add additional cases to folding tests. 2021-02-08 16:17:18 +00:00