This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
skia2
Watch
1
Star
0
Fork
0
You've already forked skia2
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
bb8542f086
skia2
/
resources
/
sksl
/
errors
/
StaticSwitchTest.sksl
9 lines
143 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Move static-switch and static-if tests out of scanCFG. We don't need to do these tests every time we run CFG optimization; we can do them once at the end of optimization, as a separate step. Change-Id: If0e72fbacb938b62387fd2ffdbf34d1153bf3bd4 Bug: skia:11319 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/369481 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>
2021-02-12 14:17:53 +00:00
half4 main() {
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>
2021-02-23 14:36:55 +00:00
@switch (int(sqrt(1))) {
Migrate SkSL error tests to golden outputs. Change-Id: Ic8f4730d035981c32b4ddb48e5e919b0396b6d93 Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317578 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
2020-09-17 22:20:26 +00:00
case 1:
Move static-switch and static-if tests out of scanCFG. We don't need to do these tests every time we run CFG optimization; we can do them once at the end of optimization, as a separate step. Change-Id: If0e72fbacb938b62387fd2ffdbf34d1153bf3bd4 Bug: skia:11319 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/369481 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>
2021-02-12 14:17:53 +00:00
return half4(1);
Migrate SkSL error tests to golden outputs. Change-Id: Ic8f4730d035981c32b4ddb48e5e919b0396b6d93 Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317578 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
2020-09-17 22:20:26 +00:00
default:
Move static-switch and static-if tests out of scanCFG. We don't need to do these tests every time we run CFG optimization; we can do them once at the end of optimization, as a separate step. Change-Id: If0e72fbacb938b62387fd2ffdbf34d1153bf3bd4 Bug: skia:11319 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/369481 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>
2021-02-12 14:17:53 +00:00
return half4(0);
Migrate SkSL error tests to golden outputs. Change-Id: Ic8f4730d035981c32b4ddb48e5e919b0396b6d93 Bug: skia:10694 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317578 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
2020-09-17 22:20:26 +00:00
}
}
Reference in New Issue
Copy Permalink