skia2/tests/sksl
John Stiles 353e2c65c9 Prevent comma operator constant-folding or constant-expression-usage.
OpenGL docs specifically insist that the sequence (comma) operator
should not be treated as a constant-expression so that attempts to
declare multidimensional arrays with a comma will fail:
http://screen/vJEpAe9yNmbzZTm

(See "12.43 Sequence operator and constant expressions" in the OpenGL
ES3 documentation or read skia:13311 for details.)

In practice, we don't get much benefit from optimizing away unused
comma-expressions; it improves some synthetic tests, but realistically
this will not help Skia in any real-world scenario. The constant folder
no longer attempts this optimization, and comma-expressions are now
rejected in a constant-expression context.

Change-Id: Ic5dea6ff90e36614b548c1ce89a444e81da944ae
Bug: skia:13311
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/539565
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Arman Uguray <armansito@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2022-05-11 22:52:24 +00:00
..
blend Add ReducedBlendModeInfo to shared code. 2022-04-22 17:18:31 +00:00
errors Prevent comma operator constant-folding or constant-expression-usage. 2022-05-11 22:52:24 +00:00
folding Optimize away same-value ternaries. 2022-04-07 19:37:00 +00:00
glsl Added range highlighting to SkSL error reports 2022-04-07 13:29:48 +00:00
inliner Remove InlineMarker IR node. 2022-04-29 17:40:58 +00:00
intrinsics Optimize away self comparisons in SPIR-V. 2022-04-19 16:10:03 +00:00
metal Added range highlighting to SkSL error reports 2022-04-07 13:29:48 +00:00
runtime Move runtime effect uniform type checking into the compiler 2022-04-22 20:54:26 +00:00
runtime_errors Move recursion tests into general /errors/ directory. 2022-04-28 21:25:41 +00:00
shared Prevent comma operator constant-folding or constant-expression-usage. 2022-05-11 22:52:24 +00:00
spirv Eliminate redundant loads following stores. 2022-04-18 14:57:48 +00:00
workarounds Eliminate redundant loads following stores. 2022-04-18 14:57:48 +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.