Add Raster Pipeline op for switch cases.
This op sets the loop mask to true if the lane matches an expected
value, and clears a lane in an initially all-true mask representing
the "default" case. This will let us represent `case 123:` as a
single op.
After each case, we should be able to use `branch_if_no_active_lanes`
to skip over dead case sections, and we can handle `default:` by
putting the default-mask into the loop mask.
Change-Id: I47169c70519419acaa2139c027f3e9fde71268cd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/642496
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
4 files changed