skia2/tests/sksl/runtime
John Stiles 8c9ccc8ad1 Optimize compound constructors containing constant vars.
A constructor like `float2(one, two)` is not a compile-time constant, so
we miss optimization opportunities like folding. Constant variables
inside compound constructors are now replaced when optimization is on,
so this would optimize down to `float2(1.0, 2.0)` and be eligible for
folding.

Change-Id: I80dd421f61d4eed21278805e2dc26d198a678e52
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/404657
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-05-05 16:42:56 +00:00
..
ArrayIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ArrayIndexing.stage Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
ConstPreservation.skvm Test that we propagate 'const' to the GPU backend of runtime effects 2021-03-09 23:26:00 +00:00
ConstPreservation.stage Optimize compound constructors containing constant vars. 2021-05-05 16:42:56 +00:00
ConversionConstructors.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
ConversionConstructors.stage Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
GlobalVariables.skvm Support initializers on global variables in SkSL to SkVM 2021-02-17 20:40:32 +00:00
GlobalVariables.stage Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
GLSLTypeNames.skvm Add ivec GLSL type aliases to runtime effects 2021-04-12 16:55:41 +00:00
GLSLTypeNames.stage Add ivec GLSL type aliases to runtime effects 2021-04-12 16:55:41 +00:00
LoopFloat.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopFloat.stage Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
LoopInt.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
LoopInt.stage Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
SampleWithExplicitCoord.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
SampleWithExplicitCoord.stage In pipeline stage generator, never emit declarations for opaque types 2021-03-13 01:46:06 +00:00
VectorIndexing.skvm Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
VectorIndexing.stage Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00