Lines Matching defs:face
660 vk_stencil_test_face_state_init(struct vk_stencil_test_face_state *face,
663 face->op.fail = info->failOp;
664 face->op.pass = info->passOp;
665 face->op.depth_fail = info->depthFailOp;
666 face->op.compare = info->compareOp;
667 face->compare_mask = info->compareMask;
668 face->write_mask = info->writeMask;
669 face->reference = info->reference;
701 optimize_stencil_face(struct vk_stencil_test_face_state *face,
708 if (face->op.compare == VK_COMPARE_OP_ALWAYS)
709 face->op.fail = VK_STENCIL_OP_KEEP;
714 if (face->op.compare == VK_COMPARE_OP_NEVER ||
716 face->op.pass = VK_STENCIL_OP_KEEP;
722 if (face->op.compare == VK_COMPARE_OP_NEVER ||
724 face->op.depth_fail = VK_STENCIL_OP_KEEP;
729 if (consider_write_mask && face->write_mask == 0) {
730 face->op.pass = VK_STENCIL_OP_KEEP;
731 face->op.fail = VK_STENCIL_OP_KEEP;
732 face->op.depth_fail = VK_STENCIL_OP_KEEP;
735 return face->op.fail != VK_STENCIL_OP_KEEP ||
736 face->op.depth_fail != VK_STENCIL_OP_KEEP ||
737 face->op.pass != VK_STENCIL_OP_KEEP;