skia2/tests/sksl/inliner/golden/InlinerAvoidsVariableNameOverlap.glsl
John Stiles db42bf2140 Align default values of GrShaderCaps with StandaloneShaderCaps.
`fBuiltinFMASupport` is now true on both, and
`fUsesPrecisionModifiers` is now false. Other mismatching flags exist,
but they are non-trivial to synchronize as they are tied to extension
strings.

This will help our skslc-based unit tests generate the same results as
our C++ unit tests did, but should not affect real-world results as
these defaults will all be overwritten in a non-testing scenario.

In practice, the `fUsesPrecisionModifiers` change is responsible for all
of the diffs below. The other flags did not change the results of any of
the currently-ported tests.

Change-Id: Ieb056d852b027fa87c56fd89f971a77a10a8a124
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317204
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-09-16 15:16:37 +00:00

20 lines
335 B
GLSL

in vec2 x;
vec4 main() {
vec2 _2_InlineA;
{
vec2 _3_reusedName = x + vec2(1.0, 2.0);
vec2 _4_0_InlineB;
{
vec2 _5_1_reusedName = _3_reusedName + vec2(3.0, 4.0);
_4_0_InlineB = _5_1_reusedName;
}
_2_InlineA = _4_0_InlineB;
}
return _2_InlineA.xyxy;
}