skia2/tests/sksl
Brian Salomon 943108b0b2 Don't key progams/pipelines on origin.
SkSL language features that are origin sensitive now use a uniform
to conditionally flip their result rather than generating different
code.

Previously we would insert a "rt height" uniform if sk_FragCoord needed
to be flipped. sk_FragCoord,y was implemented as "realFragCoord.y" or
"rtHeight - realFragCoord.y" depending on SkSL::ProgramSettings::fFlipY.

Now we instead use a two component vector rtFlip and sk_FragCoord.y is
always "rtFlip.x + rtFlip.y*realFragCoord.y". We configure rtFlip as
either (0, 1) or (rtHeight, -1). sk_Clockwise and dFdy simiarly use
rtFlip.y to emit code that always works with either origin.

Bug: skia:12037

Change-Id: I7a09d0caac60a58d72b76645ff31bcabde4086b6
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/414796
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-07-06 18:08:06 +00:00
..
blend Remove SkBlendMode from SkSL 2021-06-16 21:01:30 +00:00
dslfp Large simplification of the CType mapper logic in SkSL 2021-05-18 21:40:14 +00:00
errors Remove SkBlendMode from SkSL 2021-06-16 21:01:30 +00:00
folding Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
fp Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
glsl Remove usage of sqrt() as an optimization barrier in tests. 2021-05-24 17:18:54 +00:00
inliner Reland "Eliminate unreachable code during optimization." 2021-05-20 20:02:15 +00:00
intrinsics Don't key progams/pipelines on origin. 2021-07-06 18:08:06 +00:00
metal Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
runtime Add dest-color support to the Pipeline stage. 2021-06-09 22:09:21 +00:00
runtime_errors Fix for fuzzer-discovered out-of-bounds array access. 2021-06-10 14:32:10 +00:00
shared Don't key progams/pipelines on origin. 2021-07-06 18:08:06 +00:00
spirv Enable proper testing of matrix-scalar ops. 2021-05-17 17:36:22 +00:00
workarounds Don't key progams/pipelines on origin. 2021-07-06 18:08:06 +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.