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

8262313: Override stencilAttachmentPixelFormat to maintain appropriate state #203

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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