skia2/tests/sksl
John Stiles 059bea1380 Simplify IRGenerator::coerce.
I started unpacking the mechanics of type coercion, and realized that
the second half of the function was looking up the Symbol for a Type
based on its name (Types are already Symbols), converting that Symbol
back into a Type (we started with a Type anyway), wrapping that Type
in a TypeReference, then calling that TypeReference (which always
calls convertConstructor).

This CL cuts out the middle steps and simply calls convertConstructor
directly. A test was added to confirm that an earlier error encountered
on the CQ is no longer occurring.

Change-Id: I76aae455a301afe4e67ef989d9dfe11f47ed36ae
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353105
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-01-13 15:43:44 +00:00
..
blend Deduplicate vector constants in SPIR-V output. 2021-01-06 21:05:50 +00:00
errors Fix fuzzer-discovered optimizer crash. 2021-01-08 13:03:02 +00:00
folding Implement constant folding for vector*scalar ops. 2021-01-11 21:03:55 +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 rename Arg to Ptr 2021-01-08 20:50:15 +00:00
shared Simplify IRGenerator::coerce. 2021-01-13 15:43:44 +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