skia2/tests/sksl
John Stiles bff24abab8 Disallow inlining a function with out-parameters.
It is difficult to do this both efficiently and correctly while honoring
GLSL semantics (which require the lvalues to be kept distinct, even when
they point to the same variable). We could make it work by making copies
of every out parameter in each direction (going in for inouts, and
coming out for outs and inouts).

However, this could be self-defeating if it makes it harder for the
driver to track variable lifetimes. Simply opting out of inlining these
functions entirely seems like the best tradeoff; let the driver optimize
them if it can, and we can enjoy reduced complexity in the SkSL inliner.

Change-Id: I62f7b4550cc181cfe789e4f2ff4e408ba1baf9cb
Bug: skia:11326
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/370257
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-03-17 18:04:00 +00:00
..
blend Disallow inlining functions containing early returns. 2021-03-17 16:29:00 +00:00
errors Improve do-while test in CanExitWithoutReturningValue. 2021-03-17 14:50:56 +00:00
folding Revert "Inline functions of the form 'return (expr)' only." 2021-03-15 22:08:48 +00:00
fp Add new style key information to several core effects 2021-03-04 14:49:07 +00:00
glsl Remove specific blend mode layout qualifiers 2021-02-23 15:45:55 +00:00
inliner Disallow inlining a function with out-parameters. 2021-03-17 18:04:00 +00:00
intrinsics Revert "Only include header once in combined MSL shader." 2021-03-16 14:44:25 +00:00
metal Eliminate unused local variables during SkSL optimization. 2021-03-16 17:22:53 +00:00
runtime Revert "Inline functions of the form 'return (expr)' only." 2021-03-15 22:08:48 +00:00
runtime_errors Optimize away no-op arithmetic in ConstantFolder. 2021-03-06 01:33:35 +00:00
shared Disallow inlining a function with out-parameters. 2021-03-17 18:04:00 +00:00
spirv Revert "Refactored SPIR-V RelaxedPrecision handling" 2021-03-15 21:24:47 +00:00
workarounds Remove extraneous line-breaks in generated GLSL/Metal code. 2021-03-12 18:39:57 +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.