skia2/tests/sksl
John Stiles e64855fbfa Fix fuzzer-discovered crash with negated swizzles.
This CL updates `compareConstant` to fail gracefully instead of
aborting if the passed-in types don't match. This lets us call
`compareConstant` without checking types first.

Change-Id: Id2acdbdf700e64bcb24825cdad2c0e000992e8cb
Bug: oss-fuzz:28904
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/347038
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2020-12-23 18:52:47 +00:00
..
blend Add support for inlining switches with returns inside. 2020-12-18 00:14:48 +00:00
errors SkSL: Remove all $gsamplerFoo types 2020-12-23 16:57:07 +00:00
fp SkSL: Remove "null" as a type and literal value. 2020-12-23 16:21:57 +00:00
glsl Replace array indexing on vector types with swizzles. 2020-12-07 21:16:40 +00:00
inliner Elide return expression temp-var in vardecl-less blocks. 2020-12-22 19:33:12 +00:00
intrinsics Implement bitCount intrinsic on SPIR-V and Metal. 2020-12-22 21:46:54 +00:00
metal Enforce additional restrictions on opaque types. 2020-12-22 22:24:24 +00:00
runtime Add .rte -> .skvm unit test framework 2020-12-22 17:59:42 +00:00
shared Fix fuzzer-discovered crash with negated swizzles. 2020-12-23 18:52:47 +00:00
spirv Fix various SkSL errors that don't report a line number. 2020-12-14 16:11:13 +00:00
workarounds Eliminate inliner temporary variables for top-level-exit functions. 2020-12-17 20:37:21 +00:00