skia2/tests/sksl
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
..
blend Revert "Revert "Added more RelaxedPrecision decorations"" 2021-03-23 19:34:42 +00:00
dslfp Honor static statements in DSL C++ codegen. 2021-04-30 18:40:08 +00:00
errors Reland "Optimize away swizzles of constant variables." 2021-04-30 13:12:18 +00:00
folding Reland "Optimize away swizzles of constant variables." 2021-04-30 13:12:18 +00:00
fp Remove SkSL sample-with-matrix implementation 2021-04-29 12:46:57 +00:00
glsl Remove specific blend mode layout qualifiers 2021-02-23 15:45:55 +00:00
inliner Loosen ES3 restrictions in Runtime Effects for debugging. 2021-04-28 19:59:36 +00:00
intrinsics Reland "Add coords parameter to all .sksl test files used as runtime effects" 2021-04-27 20:47:31 +00:00
metal Mangle function names in Metal. 2021-03-22 17:23:21 +00:00
runtime Optimize compound constructors containing constant vars. 2021-05-05 16:42:56 +00:00
runtime_errors Remove flexible runtime effects entirely 2021-04-29 16:02:27 +00:00
shared Optimize compound constructors containing constant vars. 2021-05-05 16:42:56 +00:00
spirv Represent vector-cast constructors with ConstructorVectorCast. 2021-04-05 16:28:06 +00:00
workarounds Rewrite matrix * vector multiplication on ARM GPUs. 2021-03-24 19:21:44 +00:00
README.txt Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00

This directory contains skslc-compiled output from matching source files
in the /resources/sksl/ directory.