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:
parent
00f3041414
commit
f285bd12ac
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user