skia2/tests/sksl
John Stiles bd058477e2 Constant-propagate the ! prefix onto constant boolean expressions.
This will flatten out expressions such as `!false` or `!true`. We
already had a similar fix-up at IR generation time which handled simple
cases, but this will catch more complicated ones like `!sk_Caps.xxxxx`
(since caps bits are only flattened out at constant propagation time).

Change-Id: I04282809d9a784266a64dbcafd097f3b0662806c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/351497
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-01-07 20:09:49 +00:00
..
blend Deduplicate vector constants in SPIR-V output. 2021-01-06 21:05:50 +00:00
errors Remove compile-time constant support from PrefixExpression. 2021-01-07 18:14:22 +00:00
fp Make all fragmentProcessors implicitly nullable in SkSL 2020-12-23 20:22:18 +00:00
glsl Replace array indexing on vector types with swizzles. 2020-12-07 21:16:40 +00:00
inliner Constant-propagate the ! prefix onto constant boolean expressions. 2021-01-07 20:09:49 +00:00
intrinsics Fix type error with Metal mod(vec, float) intrinsic. 2021-01-05 18:07:04 +00:00
metal Add support for number(boolean) and boolean(number) casts in SkSL. 2021-01-05 21:19:45 +00:00
runtime Add SkVM support for conversion constructors to and from boolean. 2021-01-06 15:23:09 +00:00
shared Flatten nested vector constructors when emitting SPIR-V. 2021-01-07 15:47:11 +00:00
spirv Deduplicate vector constants in SPIR-V output. 2021-01-06 21:05:50 +00:00
workarounds Eliminate inliner temporary variables for top-level-exit functions. 2020-12-17 20:37:21 +00:00