Update stack rewinding behavior in RP builder.
If SK_HAS_MUSTTAIL is defined, we don't need to use stack_rewind and
omit it from generated programs. If it's _not_ defined, we now
automatically inject stack_rewind ops every 500 instructions to
avoid stack overflow in long programs.
Change-Id: I5161abe03292e563954584301b4fafdd47b24a1a
Bug: skia:13676
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/625917
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2 files changed