Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8262313: Override stencilAttachmentPixelFormat to maintain appropriat…
Browse files Browse the repository at this point in the history
…e state
  • Loading branch information
jayathirthrao committed Feb 24, 2021
1 parent 07ce809 commit 223e3cb
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -196,6 +196,11 @@ - (NSPointerArray * ) getSubStates:(NSString *)vertexShaderId fragmentShader:(NS
}
if (stencilNeeded) {
pipelineDesc.stencilAttachmentPixelFormat = MTLPixelFormatStencil8;
} else {
// We continue to use same encoder when we move from shape clip
// to other opcodes. So we need to maintain apprppriate state
// for stencilAttachmentPixelFormat until we end the encoder
pipelineDesc.stencilAttachmentPixelFormat = MTLPixelFormatInvalid;
}

if (renderOptions->isAA) {
Expand Down

0 comments on commit 223e3cb

Please sign in to comment.