c3d8062555
Test "InlinerHonorsGLSLOutParamSemantics" was failing on Wembley devices and is now disabled on that GPU. Also, it turns out that the inliner has ignored functions with out params for a long time now, but our test names haven't been updated to account for this. So, did some additional cleanup: - "InlinerHonorsGLSLOutParamSemantics" (the test in question) has been moved to shared/ and renamed to "OutParamsAreDistinct." - Removed test "OutParamsNoInline" as it is functionally the same as "OutParams". Change-Id: I1431ed197b9216cb482eee4f5e4eb2579a5303f7 Bug: skia:12858 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/502303 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Kevin Lubick <kjlubick@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
14 lines
299 B
GLSL
14 lines
299 B
GLSL
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorGreen;
|
|
uniform vec4 colorRed;
|
|
bool out_params_are_distinct_bhh(out float x, out float y) {
|
|
x = 1.0;
|
|
y = 2.0;
|
|
return x == 1.0 && y == 2.0;
|
|
}
|
|
vec4 main() {
|
|
float x = 0.0;
|
|
return out_params_are_distinct_bhh(x, x) ? colorGreen : colorRed;
|
|
}
|