commit | 2b3d1f2086964639ff6f6eadcb7803403e3c2cef | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Tue Feb 23 09:36:55 2021 -0500 |
committer | John Stiles <johnstiles@google.com> | Tue Feb 23 15:39:05 2021 +0000 |
tree | a960ef1b44e1253c28d3863cdde33521ec2e4180 | |
parent | 04ca41acf341a462927123cbfdf432cbc0d6df5d [diff] |
Remove constant propagation from static-switch test. Constant propagation might be going away, but static-switches are likely here to stay. Avoid conflating the two in this test. Change-Id: If4b6c99c85f124d3bbc20da858693f09f5e4fd59 Bug: skia:11319 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/374117 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/resources/sksl/errors/StaticSwitchTest.sksl b/resources/sksl/errors/StaticSwitchTest.sksl index bf71f86..d3a594b 100644 --- a/resources/sksl/errors/StaticSwitchTest.sksl +++ b/resources/sksl/errors/StaticSwitchTest.sksl
@@ -1,6 +1,5 @@ half4 main() { - int x = int(sqrt(1)); - @switch (x) { + @switch (int(sqrt(1))) { case 1: return half4(1); default:
diff --git a/tests/sksl/errors/StaticSwitchTest.glsl b/tests/sksl/errors/StaticSwitchTest.glsl index 29d4f32..d69be26 100644 --- a/tests/sksl/errors/StaticSwitchTest.glsl +++ b/tests/sksl/errors/StaticSwitchTest.glsl
@@ -1,4 +1,4 @@ ### Compilation failed: -error: 3: static switch has non-static test +error: 2: static switch has non-static test 1 error