graphite: dawn: Fix invalid stripIndexFormat
Dawn/WebGPU requires that stripIndexFormat only be set for triangle
strip primitive type, and throws a validation error if specified for
other primitive types.
This fix should make the following gm tests pass with grdawn:
glyph_pos_h_f
glyph_pos_n_f
textblobmixedsizes_df
blurrect
circular_arcs_fill
circular_arcs_stroke_and_fill_butt
circular_arcs_stroke_and_fill_square
circular_arcs_stroke_and_fill_round
nested_aa
nested_bw
nested_flipY_aa
nested_flipY_bw
Bug: b/277589135
Change-Id: I1c1c75010157d09f4f60692cc85fefc694f2e388
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/669197
Reviewed-by: Nicolette Prevost <nicolettep@google.com>
Commit-Queue: Sunny Sachanandani <sunnyps@google.com>
1 file changed