Searched defs:stencil (Results 1 - 25 of 86) sorted by last modified time

1234

/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
H A DViEAndroidGLES20.java54 int depth, int stencil) {
56 init(translucent, depth, stencil);
59 private void init(boolean translucent, int depth, int stencil) { argument
78 new ConfigChooser(8, 8, 8, 8, depth, stencil) :
79 new ConfigChooser(5, 6, 5, 0, depth, stencil) );
112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { argument
118 mStencilSize = stencil;
53 ViEAndroidGLES20(Context context, boolean translucent, int depth, int stencil) argument
/external/vulkan-validation-layers/include/vulkan/
H A Dvulkan.h2114 uint32_t stencil; member in struct:VkClearDepthStencilValue
/external/vulkan-validation-layers/tests/
H A Dlayer_validation_tests.cpp444 VkStencilOpState stencil = {}; local
445 stencil.failOp = VK_STENCIL_OP_KEEP;
446 stencil.passOp = VK_STENCIL_OP_KEEP;
447 stencil.depthFailOp = VK_STENCIL_OP_KEEP;
448 stencil.compareOp = VK_COMPARE_OP_NEVER;
458 ds_ci.front = stencil;
459 ds_ci.back = stencil;
1275 "Dynamic stencil read mask state not set for this command buffer");
1279 TEST_DESCRIPTION("Simple Draw Call that validates failure when a stencil "
1286 FAIL() << "Did not receive Error 'Dynamic stencil rea
[all...]
/external/skia/third_party/vulkan/
H A Dvulkan.h2105 uint32_t stencil; member in struct:VkClearDepthStencilValue
/external/skia/src/gpu/
H A DGrPathRendering.h136 const GrStencilSettings* stencil)
141 , fStencil(stencil) {
159 const GrStencilSettings* stencil)
161 , fStencil(stencil) {
132 StencilPathArgs(bool useHWAA, GrRenderTarget* renderTarget, const SkMatrix* viewMatrix, const GrScissorState* scissor, const GrStencilSettings* stencil) argument
156 DrawPathArgs(const GrPrimitiveProcessor* primProc, const GrPipeline* pipeline, const GrProgramDesc* desc, const GrStencilSettings* stencil) argument
H A DGrPipelineBuilder.h167 * rendering to the stencil buffer.
205 * Returns whether the rasterizer and stencil test (if any) will run at a higher sample rate
222 * Sets the stencil settings to use for the next draw.
224 * out the client settable stencil bits. So multipass algorithms
225 * using stencil should not change the clip between passes.
226 * @param settings the stencil settings to use.
230 GrStencilSettings* stencil() { return &fStencilSettings; } function in class:GrPipelineBuilder
235 * This simple struct saves and restores the stencil settings
H A DGrRenderTarget.cpp95 bool GrRenderTargetPriv::attachStencilAttachment(GrStencilAttachment* stencil) { argument
96 if (!stencil && !fRenderTarget->fStencilAttachment) {
97 // No need to do any work since we currently don't have a stencil attachment and
101 fRenderTarget->fStencilAttachment = stencil;
H A DGrResourceProvider.cpp203 GrStencilAttachment* stencil = static_cast<GrStencilAttachment*>( local
205 if (!stencil) {
206 // Need to try and create a new stencil
207 stencil = this->gpu()->createStencilAttachmentForRenderTarget(rt, width, height);
208 if (stencil) {
209 stencil->resourcePriv().setUniqueKey(sbKey);
213 if (rt->renderTargetPriv().attachStencilAttachment(stencil)) {
215 // Right now we're clearing the stencil attachment here after it is
217 // stencil buffers with smaller color targets this will no longer
221 // FBO. But iOS doesn't allow a stencil
[all...]
/external/skia/src/gpu/batches/
H A DGrDrawPathBatch.h31 void setStencilSettings(const GrStencilSettings& stencil) { fStencilSettings = stencil; } argument
65 // This can't return a more abstract type because we install the stencil settings late :(
161 // This can't return a more abstract type because we install the stencil settings late :(
H A DGrStencilPathBatch.h24 const GrStencilSettings& stencil,
28 return new GrStencilPathBatch(viewMatrix, useHWAA, stencil, scissor, renderTarget, path);
45 const GrStencilSettings& stencil,
52 , fStencil(stencil)
22 Create(const SkMatrix& viewMatrix, bool useHWAA, const GrStencilSettings& stencil, const GrScissorState& scissor, GrRenderTarget* renderTarget, const GrPath* path) argument
43 GrStencilPathBatch(const SkMatrix& viewMatrix, bool useHWAA, const GrStencilSettings& stencil, const GrScissorState& scissor, GrRenderTarget* renderTarget, const GrPath* path) argument
/external/skia/src/gpu/gl/
H A DGrGLGpu.cpp1407 // Default to unsupported, set this if we find a stencil format that works.
1635 GrGLStencilAttachment* stencil = new GrGLStencilAttachment(this, local
1641 return stencil;
2123 // stencil buffer.
2131 // ANGLE a partial stencil mask will cause clears to be
2133 // changing the clip between stencil passes may or may not
2608 GrStencilSettings stencil; local
2609 stencil.setDisabled();
2610 this->flushStencil(stencil);
2790 // we call the combined func just in case separate stencil i
3652 GrStencilSettings stencil; local
3734 GrStencilSettings stencil; local
[all...]
H A DGrGLRenderTarget.cpp22 GrGLStencilAttachment* stencil)
24 , INHERITED(gpu, idDesc.fLifeCycle, desc, idDesc.fSampleConfig, stencil) {
78 GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local
79 if (nullptr == stencil) {
93 const GrGLStencilAttachment* glStencil = static_cast<const GrGLStencilAttachment*>(stencil);
19 GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, GrGLStencilAttachment* stencil) argument
/external/skia/src/gpu/vk/
H A DGrVkRenderTarget.cpp31 // for the moment we only support 1:1 color to stencil
58 // for the moment we only support 1:1 color to stencil
232 // Stencil attachment view is stored in the base RT stencil attachment
257 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local
258 if (stencil) {
259 const GrVkStencilAttachment* vkStencil = static_cast<const GrVkStencilAttachment*>(stencil);
262 // Currently in vulkan stencil and color attachments must all have same number of samples
367 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local
368 if (stencil) {
369 const GrVkStencilAttachment* vkStencil = static_cast<const GrVkStencilAttachment*>(stencil);
377 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); local
[all...]
H A DGrVkStencilAttachment.cpp61 GrVkStencilAttachment* stencil = new GrVkStencilAttachment(gpu, lifeCycle, format, imageDesc, local
66 return stencil;
/external/opencv3/modules/core/src/
H A Dgl_core_3_1.cpp2291 static void CODEGEN_FUNCPTR Switch_ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) argument
2294 ClearBufferfi(buffer, drawbuffer, depth, stencil);
/external/mesa3d/src/mesa/main/
H A Dattrib.c52 #include "stencil.h"
1211 const struct gl_stencil_attrib *stencil; local
1212 stencil = (const struct gl_stencil_attrib *) attr->data;
1213 _mesa_set_enable(ctx, GL_STENCIL_TEST, stencil->Enabled);
1214 _mesa_ClearStencil(stencil->Clear);
1217 stencil->TestTwoSide);
1218 _mesa_ActiveStencilFaceEXT(stencil->ActiveFace
1223 stencil->Function[0],
1224 stencil->Ref[0],
1225 stencil
[all...]
H A Dclear.c304 * Clear signed integer color buffer or stencil buffer (not depth).
333 /* Save current stencil clear value, set to 'value', do the
334 * stencil clear and restore the clear value.
395 * Clear unsigned integer color buffer (not depth, not stencil).
446 * "Only ClearBufferiv should be used to clear stencil buffers."
467 * Clear fixed-pt or float color buffer or depth buffer (not stencil).
559 * Clear depth/stencil buffer only.
563 GLfloat depth, GLint stencil)
610 ctx->Stencil.Clear = stencil;
562 _mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) argument
H A Ddlist.c1583 GLfloat depth, GLint stencil)
1593 n[4].i = stencil;
1596 CALL_ClearBufferfi(ctx->Exec, (buffer, drawbuffer, depth, stencil));
1582 save_ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) argument
H A Dpack.c5126 * Unpack a row of stencil data from a client buffer according to
5163 /* only shift and offset apply to stencil */
5189 _mesa_error(ctx, GL_OUT_OF_MEMORY, "stencil unpacking");
5202 /* Apply stencil lookup table */
5256 GLubyte *stencil = (GLubyte *) malloc(n * sizeof(GLubyte)); local
5258 if (!stencil) {
5259 _mesa_error(ctx, GL_OUT_OF_MEMORY, "stencil packing");
5266 memcpy(stencil, source, n * sizeof(GLubyte));
5267 _mesa_apply_stencil_transfer_ops(ctx, n, stencil);
5268 source = stencil;
[all...]
H A Dpixeltransfer.c245 * Apply stencil index shift, offset and table lookup to an array
246 * of stencil values.
250 GLubyte stencil[])
258 stencil[i] = (stencil[i] << shift) + offset;
264 stencil[i] = (stencil[i] >> shift) + offset;
269 stencil[i] = stencil[i] + offset;
277 stencil[
249 _mesa_apply_stencil_transfer_ops(const struct gl_context *ctx, GLuint n, GLubyte stencil[]) argument
[all...]
H A Dreadpix.c181 GLubyte *map, *stencil; local
194 stencil = (GLubyte *) malloc(width * sizeof(GLubyte));
196 if (stencil) {
201 _mesa_unpack_ubyte_stencil_row(rb->Format, width, map, stencil);
205 _mesa_pack_stencil_span(ctx, width, type, dest, stencil, packing);
214 free(stencil);
412 * For a packed depth/stencil buffer being read as depth/stencil, just memcpy the
455 * For non-float-depth and stencil buffers being read as 24/8 depth/stencil,
[all...]
H A Dtexstore.c2772 * Store a combined depth/stencil texture image.
2801 GLubyte *stencil = (GLubyte *) malloc(srcWidth * sizeof(GLubyte)); local
2803 if (!depth || !stencil) {
2805 free(stencil);
2809 /* In case we only upload depth we need to preserve the stencil */
2821 if (srcFormat == GL_DEPTH_COMPONENT) { /* preserve stencil */
2837 /* get the 8-bit stencil values */
2840 stencil, /* dst addr */
2848 dstRow[i] = (dstRow[i] & 0xFFFFFF00) | (stencil[i] & 0xFF);
2857 free(stencil);
2874 GLubyte *stencil; local
2970 GLubyte *stencil = (GLubyte *) malloc(srcWidth * sizeof(GLubyte)); local
[all...]
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_clear.c195 GLboolean color, GLboolean depth, GLboolean stencil)
211 stencil ? "stencil" : "",
262 if (stencil) {
265 depth_stencil.stencil[0].enabled = 1;
266 depth_stencil.stencil[0].func = PIPE_FUNC_ALWAYS;
267 depth_stencil.stencil[0].fail_op = PIPE_STENCIL_OP_REPLACE;
268 depth_stencil.stencil[0].zpass_op = PIPE_STENCIL_OP_REPLACE;
269 depth_stencil.stencil[0].zfail_op = PIPE_STENCIL_OP_REPLACE;
270 depth_stencil.stencil[
194 clear_with_quad(struct gl_context *ctx, GLboolean color, GLboolean depth, GLboolean stencil) argument
[all...]
H A Dst_cb_fbo.c549 * Check if two renderbuffer attachments name a combined depth/stencil
554 const struct gl_renderbuffer_attachment *stencil)
556 assert(depth && stencil);
558 if (depth->Type == stencil->Type) {
560 depth->Renderbuffer == stencil->Renderbuffer)
564 depth->Texture == stencil->Texture)
576 * For Gallium we only supports combined Z+stencil, not separate buffers.
585 const struct gl_renderbuffer_attachment *stencil = local
592 if (depth->Type && stencil->Type && depth->Type != stencil
553 st_is_depth_stencil_combined(const struct gl_renderbuffer_attachment *depth, const struct gl_renderbuffer_attachment *stencil) argument
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_copypix.c353 GLubyte *p, *tmpImage, *stencil; local
403 stencil = (GLubyte *) malloc(width * sizeof(GLubyte));
404 if (!stencil) {
410 /* Get stencil values */
412 memcpy(stencil, p, width * sizeof(GLubyte));
416 _swrast_read_stencil_span( ctx, rb, width, srcx, sy, stencil );
419 _mesa_apply_stencil_transfer_ops(ctx, width, stencil);
421 /* Write stencil values */
424 destx, dy, stencil);
427 _swrast_write_stencil_span( ctx, width, destx, dy, stencil );
[all...]

Completed in 884 milliseconds

1234