skia2/tests/sksl/blend/golden/BlendScreenStandaloneSettings.glsl
John Stiles 0f37907ac7 Undo call-count fix for intrinsic functions.
This CL is conceptually a revert of http://review.skia.org/320258,
although the code has changed shape a bit since that CL was landed.

This fix was too aggressive, and can lead to functions being dead-
stripped while they still have an active reference.

Change-Id: I6ce8b0ad9cc2a42e8be8cb10d3a8219149eca6aa
Bug: skia:10776
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/325462
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2020-10-12 15:58:27 +00:00

17 lines
271 B
GLSL

out vec4 sk_FragColor;
in vec4 src;
in vec4 dst;
vec4 blend_screen(vec4 src, vec4 dst) {
return src + (1.0 - src) * dst;
}
void main() {
vec4 _0_blend_screen;
{
_0_blend_screen = src + (1.0 - src) * dst;
}
sk_FragColor = _0_blend_screen;
}