Don't use tessellation on secondary Vk cmd buffers

Secondary buffers don't support stencil.

Change-Id: I9c669c9a42cd351e2790b13db7f4d5d5b167a601
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/401078
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Auto-Submit: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Chris Dalton 2021-04-26 14:29:54 -06:00 committed by Skia Commit-Bot
parent 00f3041414
commit f285bd12ac

View File

@ -133,7 +133,8 @@ GrPathRenderer::CanDrawPath GrTessellationPathRenderer::onCanDrawPath(
args.fViewMatrix->hasPerspective() ||
shape.style().strokeRec().getStyle() == SkStrokeRec::kStrokeAndFill_Style ||
shape.inverseFilled() ||
args.fHasUserStencilSettings) {
args.fHasUserStencilSettings ||
args.fTargetIsWrappedVkSecondaryCB) {
return CanDrawPath::kNo;
}
// On platforms that don't have native support for indirect draws and/or hardware tessellation,