/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_depthstencil.c | 82 ds->stencil[0].enabled = templ->stencil[0].enabled; in svga_create_depth_stencil_state() 83 if (ds->stencil[0].enabled) { in svga_create_depth_stencil_state() 84 ds->stencil[0].func = svga_translate_compare_func(templ->stencil[0].func); in svga_create_depth_stencil_state() 85 ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op); in svga_create_depth_stencil_state() 86 ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op); in svga_create_depth_stencil_state() 87 ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op); in svga_create_depth_stencil_state() 92 ds->stencil_mask = templ->stencil[0].valuemask & 0xff; in svga_create_depth_stencil_state() 93 ds->stencil_writemask = templ->stencil[0].writemask & 0xff; in svga_create_depth_stencil_state() 97 ds->stencil[1].enabled = templ->stencil[1].enabled; in svga_create_depth_stencil_state() 98 if (templ->stencil[1].enabled) { in svga_create_depth_stencil_state() [all …]
|
D | svga_state_rss.c | 126 if (!curr->stencil[0].enabled) in emit_rss() 133 else if (curr->stencil[0].enabled && !curr->stencil[1].enabled) in emit_rss() 140 EMIT_RS( svga, curr->stencil[0].func, STENCILFUNC, fail ); in emit_rss() 141 EMIT_RS( svga, curr->stencil[0].fail, STENCILFAIL, fail ); in emit_rss() 142 EMIT_RS( svga, curr->stencil[0].zfail, STENCILZFAIL, fail ); in emit_rss() 143 EMIT_RS( svga, curr->stencil[0].pass, STENCILPASS, fail ); in emit_rss() 170 EMIT_RS( svga, curr->stencil[cw].func, STENCILFUNC, fail ); in emit_rss() 171 EMIT_RS( svga, curr->stencil[cw].fail, STENCILFAIL, fail ); in emit_rss() 172 EMIT_RS( svga, curr->stencil[cw].zfail, STENCILZFAIL, fail ); in emit_rss() 173 EMIT_RS( svga, curr->stencil[cw].pass, STENCILPASS, fail ); in emit_rss() [all …]
|
D | svga_pipe_clear.c | 42 unsigned stencil) in try_clear() argument 89 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui, depth, stencil, in try_clear() 109 double depth, unsigned stencil) in svga_clear() argument 121 ret = try_clear( svga, buffers, color, depth, stencil ); in svga_clear() 128 ret = try_clear( svga, buffers, color, depth, stencil ); in svga_clear()
|
/external/deqp/modules/gles3/functional/ |
D | es3fDepthStencilTests.cpp | 101 StencilParams stencil[rr::FACETYPE_LAST]; member 138 log << params.stencil[rr::FACETYPE_FRONT]; in operator <<() 141 log << params.stencil[rr::FACETYPE_BACK]; in operator <<() 163 int stencil; member 170 , stencil (0) in ClearCommand() 181 , stencil (stencil_) in ClearCommand() 354 cmd.params.stencil[rr::FACETYPE_FRONT].function = GL_EQUAL; in generateStencilVisualizeCommands() 355 cmd.params.stencil[rr::FACETYPE_FRONT].reference = stencilValues[ndx]; in generateStencilVisualizeCommands() 356 cmd.params.stencil[rr::FACETYPE_FRONT].compareMask = ~0u; in generateStencilVisualizeCommands() 357 cmd.params.stencil[rr::FACETYPE_FRONT].stencilFailOp = GL_KEEP; in generateStencilVisualizeCommands() [all …]
|
/external/deqp/modules/gles2/functional/ |
D | es2fDepthStencilTests.cpp | 101 StencilParams stencil[rr::FACETYPE_LAST]; member 138 log << params.stencil[rr::FACETYPE_FRONT]; in operator <<() 141 log << params.stencil[rr::FACETYPE_BACK]; in operator <<() 163 int stencil; member 170 , stencil (0) in ClearCommand() 181 , stencil (stencil_) in ClearCommand() 354 cmd.params.stencil[rr::FACETYPE_FRONT].function = GL_EQUAL; in generateStencilVisualizeCommands() 355 cmd.params.stencil[rr::FACETYPE_FRONT].reference = stencilValues[ndx]; in generateStencilVisualizeCommands() 356 cmd.params.stencil[rr::FACETYPE_FRONT].compareMask = ~0u; in generateStencilVisualizeCommands() 357 cmd.params.stencil[rr::FACETYPE_FRONT].stencilFailOp = GL_KEEP; in generateStencilVisualizeCommands() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_depth.c | 112 dsa->stencil[0].enabled = 1; in update_depth_stencil_alpha() 113 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); in update_depth_stencil_alpha() 114 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); in update_depth_stencil_alpha() 115 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]); in update_depth_stencil_alpha() 116 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]); in update_depth_stencil_alpha() 117 dsa->stencil[0].valuemask = ctx->Stencil.ValueMask[0] & 0xff; in update_depth_stencil_alpha() 118 dsa->stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in update_depth_stencil_alpha() 123 dsa->stencil[1].enabled = 1; in update_depth_stencil_alpha() 124 dsa->stencil[1].func = st_compare_func_to_pipe(ctx->Stencil.Function[back]); in update_depth_stencil_alpha() 125 dsa->stencil[1].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[back]); in update_depth_stencil_alpha() [all …]
|
D | st_cb_fbo.c | 554 const struct gl_renderbuffer_attachment *stencil) in st_is_depth_stencil_combined() argument 556 assert(depth && stencil); in st_is_depth_stencil_combined() 558 if (depth->Type == stencil->Type) { in st_is_depth_stencil_combined() 560 depth->Renderbuffer == stencil->Renderbuffer) in st_is_depth_stencil_combined() 564 depth->Texture == stencil->Texture) in st_is_depth_stencil_combined() 585 const struct gl_renderbuffer_attachment *stencil = in st_validate_framebuffer() local 592 if (depth->Type && stencil->Type && depth->Type != stencil->Type) { in st_validate_framebuffer() 598 stencil->Type == GL_RENDERBUFFER_EXT && in st_validate_framebuffer() 599 depth->Renderbuffer != stencil->Renderbuffer) { in st_validate_framebuffer() 605 stencil->Type == GL_TEXTURE && in st_validate_framebuffer() [all …]
|
/external/deqp/doc/testspecs/GLES2/ |
D | functional.stencil.txt | 22 + dEQP-GLES2.functional.stencil.* 26 + Stencil update with GL_REPLACE in stencil fail, depth fail and depth pass 27 + All stencil update modes in stencil fail 28 + All stencil comparison modes 29 + Masked stencil comparison 30 + Out-of-range stencil clear values 31 + Out-of-range stencil update values 35 + Exhaustive testing of all possible stencil test states 40 stencil value, choosen uniformly from available values. In addition there are 41 two cells that target out-of-range stencil values. The amount of cells is scaled [all …]
|
/external/mesa3d/src/gallium/docs/source/cso/ |
D | dsa.rst | 1 .. _depth,stencil,&alpha: 6 These three states control the depth, stencil, and alpha tests, used to 32 Whether the stencil test is enabled. For the second stencil, whether the 33 two-sided stencil is enabled. If two-sided stencil is disabled, the other 36 The stencil test function. One of PIPE_FUNC. 38 Stencil test value mask; this is ANDed with the value in the stencil 39 buffer and the reference value before doing the stencil comparison test. 41 Stencil test writemask; this controls which bits of the stencil buffer 44 The operation to carry out if the stencil test fails. One of 47 The operation to carry out if the stencil test passes but the depth test [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_depth.c | 97 const struct pipe_stencil_state *stencil, in lp_build_stencil_test_single() argument 117 assert(stencil->enabled); in lp_build_stencil_test_single() 119 if (stencil->valuemask != stencilMax) { in lp_build_stencil_test_single() 121 LLVMValueRef valuemask = lp_build_const_int_vec(bld->gallivm, type, stencil->valuemask); in lp_build_stencil_test_single() 127 res = lp_build_cmp(bld, stencil->func, stencilRef, stencilVals); in lp_build_stencil_test_single() 141 const struct pipe_stencil_state stencil[2], in lp_build_stencil_test() 148 assert(stencil[0].enabled); in lp_build_stencil_test() 151 res = lp_build_stencil_test_single(bld, &stencil[0], in lp_build_stencil_test() 154 if (stencil[1].enabled && front_facing != NULL) { in lp_build_stencil_test() 158 back_res = lp_build_stencil_test_single(bld, &stencil[1], in lp_build_stencil_test() [all …]
|
/external/deqp/external/vulkancts/mustpass/1.0.0/ |
D | vk-default.txt | 3889 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_decc_pass_repl_dfail_inv_comp_not_equal_b… 3890 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_incc_pass_keep_dfail_inv_comp_not_equal_b… 3891 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_wrap_pass_decw_dfail_wrap_comp_less_back_… 3892 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_inv_pass_incc_dfail_keep_comp_greater_or_… 3893 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_incc_pass_keep_dfail_wrap_comp_equal_back… 3894 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_repl_pass_inv_dfail_repl_comp_always_back… 3895 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_zero_pass_incc_dfail_decc_comp_not_equal_… 3896 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_incc_pass_keep_dfail_incc_comp_greater_or… 3897 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_decc_pass_zero_dfail_keep_comp_equal_back… 3898 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_keep_pass_wrap_dfail_decw_comp_less_or_eq… [all …]
|
/external/deqp/android/cts/master/ |
D | vk-master.txt | 3893 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_decc_pass_repl_dfail_inv_comp_not_equal_b… 3894 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_incc_pass_keep_dfail_inv_comp_not_equal_b… 3895 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_wrap_pass_decw_dfail_wrap_comp_less_back_… 3896 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_inv_pass_incc_dfail_keep_comp_greater_or_… 3897 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_incc_pass_keep_dfail_wrap_comp_equal_back… 3898 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_repl_pass_inv_dfail_repl_comp_always_back… 3899 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_zero_pass_incc_dfail_decc_comp_not_equal_… 3900 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_incc_pass_keep_dfail_incc_comp_greater_or… 3901 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_decc_pass_zero_dfail_keep_comp_equal_back… 3902 dEQP-VK.pipeline.stencil.format.s8_uint.states.front_fail_keep_pass_wrap_dfail_decw_comp_less_or_eq… [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_stencil.c | 100 GLubyte s = stencil[j]; \ 102 stencil[j] = (GLubyte) (NEW_VAL); \ 109 GLubyte s = stencil[j]; \ 110 stencil[j] = (GLubyte) ((invmask & s) | (wrtmask & (NEW_VAL))); \ 128 GLuint n, GLubyte stencil[], const GLubyte mask[], in apply_stencil_op() argument 178 s = (GLubyte) (stencil[j] & valueMask); \ 211 GLubyte stencil[], GLubyte mask[], GLint stride) in do_stencil_test() argument 262 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, in do_stencil_test() 294 GLubyte stencil[]) in get_s8_values() argument 305 stencil[i] = *(map + y[i] * rowStride + x[i]); in get_s8_values() [all …]
|
/external/mesa3d/src/gallium/drivers/nv30/ |
D | nv30_state.c | 224 if (cso->stencil[0].enabled) { in nv30_zsa_state_create() 227 SB_DATA (so, cso->stencil[0].writemask); in nv30_zsa_state_create() 228 SB_DATA (so, nvgl_comparison_op(cso->stencil[0].func)); in nv30_zsa_state_create() 230 SB_DATA (so, cso->stencil[0].valuemask); in nv30_zsa_state_create() 231 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].fail_op)); in nv30_zsa_state_create() 232 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].zfail_op)); in nv30_zsa_state_create() 233 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].zpass_op)); in nv30_zsa_state_create() 240 if (cso->stencil[1].enabled) { in nv30_zsa_state_create() 243 SB_DATA (so, cso->stencil[1].writemask); in nv30_zsa_state_create() 244 SB_DATA (so, nvgl_comparison_op(cso->stencil[1].func)); in nv30_zsa_state_create() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_clear.c | 46 double depth, unsigned stencil, in i915_clear_emit() argument 91 packed_z_stencil = util_pack_z_stencil(depth_tex->b.b.format, depth, stencil); in i915_clear_emit() 114 packed_z_stencil = util_pack_z_stencil(depth_tex->b.b.format, depth, stencil); in i915_clear_emit() 222 double depth, unsigned stencil) in i915_clear_blitter() argument 225 stencil); in i915_clear_blitter() 231 double depth, unsigned stencil) in i915_clear_render() argument 238 i915_clear_emit(pipe, buffers, color, depth, stencil, in i915_clear_render()
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_mlaa.c | 105 mstencil.stencil[0].enabled = 1; in pp_jimenezmlaa_run() 106 mstencil.stencil[0].valuemask = mstencil.stencil[0].writemask = ~0; in pp_jimenezmlaa_run() 107 mstencil.stencil[0].func = PIPE_FUNC_ALWAYS; in pp_jimenezmlaa_run() 108 mstencil.stencil[0].fail_op = PIPE_STENCIL_OP_KEEP; in pp_jimenezmlaa_run() 109 mstencil.stencil[0].zfail_op = PIPE_STENCIL_OP_KEEP; in pp_jimenezmlaa_run() 110 mstencil.stencil[0].zpass_op = PIPE_STENCIL_OP_REPLACE; in pp_jimenezmlaa_run() 141 mstencil.stencil[0].func = PIPE_FUNC_EQUAL; in pp_jimenezmlaa_run() 142 mstencil.stencil[0].zpass_op = PIPE_STENCIL_OP_KEEP; in pp_jimenezmlaa_run()
|
/external/skia/src/gpu/vk/ |
D | GrVkRenderTarget.cpp | 257 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); in getAttachmentsDescriptor() local 258 if (stencil) { in getAttachmentsDescriptor() 259 const GrVkStencilAttachment* vkStencil = static_cast<const GrVkStencilAttachment*>(stencil); in getAttachmentsDescriptor() 367 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); in stencilImageResource() local 368 if (stencil) { in stencilImageResource() 369 const GrVkStencilAttachment* vkStencil = static_cast<const GrVkStencilAttachment*>(stencil); in stencilImageResource() 377 const GrStencilAttachment* stencil = this->renderTargetPriv().getStencilAttachment(); in stencilAttachmentView() local 378 if (stencil) { in stencilAttachmentView() 379 const GrVkStencilAttachment* vkStencil = static_cast<const GrVkStencilAttachment*>(stencil); in stencilAttachmentView()
|
/external/mesa3d/src/mesa/main/ |
D | pixeltransfer.c | 250 GLubyte stencil[]) in _mesa_apply_stencil_transfer_ops() argument 258 stencil[i] = (stencil[i] << shift) + offset; in _mesa_apply_stencil_transfer_ops() 264 stencil[i] = (stencil[i] >> shift) + offset; in _mesa_apply_stencil_transfer_ops() 269 stencil[i] = stencil[i] + offset; in _mesa_apply_stencil_transfer_ops() 277 stencil[i] = (GLubyte) ctx->PixelMaps.StoS.Map[ stencil[i] & mask ]; in _mesa_apply_stencil_transfer_ops()
|
/external/skia/src/gpu/batches/ |
D | GrStencilPathBatch.h | 24 const GrStencilSettings& stencil, in Create() argument 28 return new GrStencilPathBatch(viewMatrix, useHWAA, stencil, scissor, renderTarget, path); in Create() 45 const GrStencilSettings& stencil, in GrStencilPathBatch() argument 52 , fStencil(stencil) in GrStencilPathBatch()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_hyperz.c | 115 if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || in r300_hiz_allowed() 116 r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) in r300_hiz_allowed() 174 !dsa->dsa.stencil[0].enabled && in r300_update_hyperz() 175 !dsa->dsa.stencil[1].enabled) { in r300_update_hyperz() 241 if (r300_dsa_writes_stencil(&dsa->stencil[0]) || in r300_dsa_writes_depth_stencil() 242 r300_dsa_writes_stencil(&dsa->stencil[1])) in r300_dsa_writes_depth_stencil()
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | renderer.c | 992 dsa->stencil[0].enabled = 1; in renderer_polygon_stencil_begin() 993 dsa->stencil[0].writemask = 1; in renderer_polygon_stencil_begin() 994 dsa->stencil[0].fail_op = PIPE_STENCIL_OP_KEEP; in renderer_polygon_stencil_begin() 995 dsa->stencil[0].zfail_op = PIPE_STENCIL_OP_KEEP; in renderer_polygon_stencil_begin() 996 dsa->stencil[0].zpass_op = PIPE_STENCIL_OP_INVERT; in renderer_polygon_stencil_begin() 997 dsa->stencil[0].func = PIPE_FUNC_ALWAYS; in renderer_polygon_stencil_begin() 998 dsa->stencil[0].valuemask = ~0; in renderer_polygon_stencil_begin() 1004 dsa->stencil[0].enabled = 1; in renderer_polygon_stencil_begin() 1005 dsa->stencil[0].writemask = ~0; in renderer_polygon_stencil_begin() 1006 dsa->stencil[0].fail_op = PIPE_STENCIL_OP_KEEP; in renderer_polygon_stencil_begin() [all …]
|
/external/skia/src/gpu/ |
D | GrResourceProvider.cpp | 203 GrStencilAttachment* stencil = static_cast<GrStencilAttachment*>( in attachStencilAttachment() local 205 if (!stencil) { in attachStencilAttachment() 207 stencil = this->gpu()->createStencilAttachmentForRenderTarget(rt, width, height); in attachStencilAttachment() 208 if (stencil) { in attachStencilAttachment() 209 stencil->resourcePriv().setUniqueKey(sbKey); in attachStencilAttachment() 213 if (rt->renderTargetPriv().attachStencilAttachment(stencil)) { in attachStencilAttachment()
|
D | GrPathRendering.h | 136 const GrStencilSettings* stencil) in StencilPathArgs() 141 , fStencil(stencil) { in StencilPathArgs() 159 const GrStencilSettings* stencil) in DrawPathArgs() 161 , fStencil(stencil) { in DrawPathArgs()
|
/external/deqp/modules/glshared/ |
D | glsInteractionTestUtil.cpp | 174 …state.stencil[ndx].function = rnd.choose<deUint32>(DE_ARRAY_BEGIN(compareFuncs), DE_ARRAY_END(co… in computeRandomRenderState() 175 state.stencil[ndx].reference = rnd.getInt(minStencilVal, maxStencilVal); in computeRandomRenderState() 176 state.stencil[ndx].compareMask = rnd.getUint32(); in computeRandomRenderState() 177 …state.stencil[ndx].stencilFailOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(s… in computeRandomRenderState() 178 …state.stencil[ndx].depthFailOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(st… in computeRandomRenderState() 179 …state.stencil[ndx].depthPassOp = rnd.choose<deUint32>(DE_ARRAY_BEGIN(stencilOps), DE_ARRAY_END(st… in computeRandomRenderState() 180 state.stencil[ndx].writeMask = rnd.getUint32(); in computeRandomRenderState()
|
/external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/ |
D | ViEAndroidGLES20.java | 54 int depth, int stencil) { in ViEAndroidGLES20() argument 56 init(translucent, depth, stencil); in ViEAndroidGLES20() 59 private void init(boolean translucent, int depth, int stencil) { in init() argument 78 new ConfigChooser(8, 8, 8, 8, depth, stencil) : in init() 79 new ConfigChooser(5, 6, 5, 0, depth, stencil) ); in init() 112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument 118 mStencilSize = stencil; in ConfigChooser()
|