/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/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/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/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 …]
|
D | st_cb_clear.c | 195 GLboolean color, GLboolean depth, GLboolean stencil) in clear_with_quad() argument 262 if (stencil) { in clear_with_quad() 265 depth_stencil.stencil[0].enabled = 1; in clear_with_quad() 266 depth_stencil.stencil[0].func = PIPE_FUNC_ALWAYS; in clear_with_quad() 267 depth_stencil.stencil[0].fail_op = PIPE_STENCIL_OP_REPLACE; in clear_with_quad() 268 depth_stencil.stencil[0].zpass_op = PIPE_STENCIL_OP_REPLACE; in clear_with_quad() 269 depth_stencil.stencil[0].zfail_op = PIPE_STENCIL_OP_REPLACE; in clear_with_quad() 270 depth_stencil.stencil[0].valuemask = 0xff; in clear_with_quad() 271 depth_stencil.stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in clear_with_quad()
|
/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 …]
|
D | lp_state_fs.c | 255 key->stencil[0].enabled || in generate_fs() 256 key->stencil[1].enabled) { in generate_fs() 277 !(key->stencil[0].enabled && key->stencil[0].writemask)) in generate_fs() 323 key->stencil, in generate_fs() 380 key->stencil, in generate_fs() 484 key->stencil[0].enabled || in generate_fs_loop() 485 key->stencil[1].enabled) { in generate_fs_loop() 506 !(key->stencil[0].enabled && key->stencil[0].writemask)) in generate_fs_loop() 562 key->stencil, in generate_fs_loop() 619 key->stencil, in generate_fs_loop() [all …]
|
D | lp_clear.c | 52 unsigned stencil) in llvmpipe_clear() argument 62 lp_setup_clear( llvmpipe->setup, color->f, depth, stencil, buffers ); in llvmpipe_clear()
|
/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 …]
|
D | nv30_clear.c | 44 pack_zeta(enum pipe_format format, double depth, unsigned stencil) in pack_zeta() argument 48 return (zuint & 0xffffff00) | (stencil & 0xff); in pack_zeta() 54 const union pipe_color_union *color, double depth, unsigned stencil) in nv30_clear() argument 73 zeta = pack_zeta(fb->zsbuf->format, depth, stencil); in nv30_clear() 157 unsigned buffers, double depth, unsigned stencil, in nv30_clear_depth_stencil() argument 213 PUSH_DATA (push, pack_zeta(ps->format, depth, stencil)); in nv30_clear_depth_stencil()
|
/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/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/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/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/deqp/doc/testspecs/GLES3/ |
D | functional.fbo.blit.txt | 30 + Copying stencil values 46 stencil data. A copy defined by the test case is performed between first 47 and second framebuffer. If depth and/or stencil values were copied, 48 a rendering command that will use the copied depth/stencil values is
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_simple_shaders.c | 230 struct ureg_dst out, depth, stencil; in util_make_fragment_tex_shader_writedepthstencil() local 252 stencil = ureg_DECL_output( ureg, in util_make_fragment_tex_shader_writedepthstencil() 264 ureg_writemask(stencil, TGSI_WRITEMASK_Y), in util_make_fragment_tex_shader_writedepthstencil() 284 struct ureg_dst out, stencil; in util_make_fragment_tex_shader_writestencil() local 301 stencil = ureg_DECL_output( ureg, in util_make_fragment_tex_shader_writestencil() 310 ureg_writemask(stencil, TGSI_WRITEMASK_Y), in util_make_fragment_tex_shader_writestencil()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_quad_depth_test.c | 240 data->shader_stencil_refs[j] = ((unsigned)(quad->output.stencil[j])); in convert_quad_stencil() 617 if (!softpipe->depth_stencil->stencil[1].enabled) { in depth_stencil_test_quad() 627 func = softpipe->depth_stencil->stencil[face].func; in depth_stencil_test_quad() 628 failOp = softpipe->depth_stencil->stencil[face].fail_op; in depth_stencil_test_quad() 629 zFailOp = softpipe->depth_stencil->stencil[face].zfail_op; in depth_stencil_test_quad() 630 zPassOp = softpipe->depth_stencil->stencil[face].zpass_op; in depth_stencil_test_quad() 632 wrtMask = softpipe->depth_stencil->stencil[face].writemask; in depth_stencil_test_quad() 633 valMask = softpipe->depth_stencil->stencil[face].valuemask; in depth_stencil_test_quad() 784 qs->softpipe->depth_stencil->stencil[0].enabled)) { in depth_test_quads_fallback() 802 if (qs->softpipe->depth_stencil->stencil[0].enabled) { in depth_test_quads_fallback() [all …]
|