Home
last modified time | relevance | path

Searched refs:stencil (Results 1 – 25 of 717) sorted by relevance

12345678910>>...29

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_depthstencil.c103 ds->stencil[0].enabled, /*f|b*/ in define_depth_stencil_state_object()
104 ds->stencil[0].enabled, /*f*/ in define_depth_stencil_state_object()
105 ds->stencil[0].enabled, /*b*/ in define_depth_stencil_state_object()
109 ds->stencil[0].fail, in define_depth_stencil_state_object()
110 ds->stencil[0].zfail, in define_depth_stencil_state_object()
111 ds->stencil[0].pass, in define_depth_stencil_state_object()
112 ds->stencil[0].func, in define_depth_stencil_state_object()
114 ds->stencil[1].fail, in define_depth_stencil_state_object()
115 ds->stencil[1].zfail, in define_depth_stencil_state_object()
116 ds->stencil[1].pass, in define_depth_stencil_state_object()
[all …]
Dsvga_pipe_clear.c73 double depth, unsigned stencil) in clear_buffers_with_quad() argument
82 depth, stencil, in clear_buffers_with_quad()
127 unsigned stencil) in try_clear() argument
179 clear_buffers_with_quad(svga, buffers, color, depth, stencil); in try_clear()
211 stencil, (float) depth); in try_clear()
217 ret = SVGA3D_ClearRect(svga->swc, flags, uc.ui[0], (float) depth, stencil, in try_clear()
237 double depth, unsigned stencil) in svga_clear() argument
253 SVGA_RETRY_OOM(svga, ret, try_clear( svga, buffers, color, depth, stencil)); in svga_clear()
296 uint8_t stencil; in svga_clear_texture() local
302 stencil = 0; in svga_clear_texture()
[all …]
Dsvga_state_rss.c146 if (!curr->stencil[0].enabled) { in emit_rss_vgpu9()
152 else if (curr->stencil[0].enabled && !curr->stencil[1].enabled) { in emit_rss_vgpu9()
158 EMIT_RS(svga, curr->stencil[0].func, STENCILFUNC); in emit_rss_vgpu9()
159 EMIT_RS(svga, curr->stencil[0].fail, STENCILFAIL); in emit_rss_vgpu9()
160 EMIT_RS(svga, curr->stencil[0].zfail, STENCILZFAIL); in emit_rss_vgpu9()
161 EMIT_RS(svga, curr->stencil[0].pass, STENCILPASS); in emit_rss_vgpu9()
187 EMIT_RS(svga, curr->stencil[cw].func, STENCILFUNC); in emit_rss_vgpu9()
188 EMIT_RS(svga, curr->stencil[cw].fail, STENCILFAIL); in emit_rss_vgpu9()
189 EMIT_RS(svga, curr->stencil[cw].zfail, STENCILZFAIL); in emit_rss_vgpu9()
190 EMIT_RS(svga, curr->stencil[cw].pass, STENCILPASS); in emit_rss_vgpu9()
[all …]
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_zsa.c63 if(so->stencil[i].writemask == 0) in etna_zsa_state_create()
65 … so->stencil[i].fail_op = so->stencil[i].zfail_op = so->stencil[i].zpass_op = PIPE_STENCIL_OP_KEEP; in etna_zsa_state_create()
72 if (so->stencil[0].enabled) { in etna_zsa_state_create()
73 if (so->stencil[0].func != PIPE_FUNC_ALWAYS || in etna_zsa_state_create()
74 (so->stencil[1].enabled && so->stencil[1].func != PIPE_FUNC_ALWAYS)) in etna_zsa_state_create()
77 if (so->stencil[0].fail_op != PIPE_STENCIL_OP_KEEP || in etna_zsa_state_create()
78 so->stencil[0].zfail_op != PIPE_STENCIL_OP_KEEP || in etna_zsa_state_create()
79 so->stencil[0].zpass_op != PIPE_STENCIL_OP_KEEP) { in etna_zsa_state_create()
82 } else if (so->stencil[1].enabled) { in etna_zsa_state_create()
83 if (so->stencil[1].fail_op != PIPE_STENCIL_OP_KEEP || in etna_zsa_state_create()
[all …]
/external/skia/src/gpu/
DGrRenderTarget.cpp22 GrProtected isProtected, GrStencilAttachment* stencil) in GrRenderTarget() argument
26 , fStencilAttachment(stencil) {} in GrRenderTarget()
44 void GrRenderTargetPriv::attachStencilAttachment(sk_sp<GrStencilAttachment> stencil) { in attachStencilAttachment() argument
56 SkASSERT(!stencil || stencil->numSamples() == fRenderTarget->fSampleCnt); in attachStencilAttachment()
60 if (!stencil && !fRenderTarget->fStencilAttachment) { in attachStencilAttachment()
66 fRenderTarget->fStencilAttachment = std::move(stencil); in attachStencilAttachment()
79 GrStencilAttachment* stencil = fRenderTarget->fStencilAttachment.get(); in getSamplePatternKey() local
83 SkASSERT(stencil && stencil->numSamples() > 1); in getSamplePatternKey()
88 SkASSERT(!stencil || stencil->numSamples() == fRenderTarget->fSampleCnt); in getSamplePatternKey()
/external/deqp/modules/gles2/functional/
Des2fDepthStencilTests.cpp101 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/
Des3fDepthStencilTests.cpp101 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/
Dst_atom_depth.c122 dsa->stencil[0].enabled = 1; in st_update_depth_stencil_alpha()
123 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); in st_update_depth_stencil_alpha()
124 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); in st_update_depth_stencil_alpha()
125 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]); in st_update_depth_stencil_alpha()
126 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]); in st_update_depth_stencil_alpha()
127 dsa->stencil[0].valuemask = ctx->Stencil.ValueMask[0] & 0xff; in st_update_depth_stencil_alpha()
128 dsa->stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in st_update_depth_stencil_alpha()
133 dsa->stencil[1].enabled = 1; in st_update_depth_stencil_alpha()
134 dsa->stencil[1].func = st_compare_func_to_pipe(ctx->Stencil.Function[back]); in st_update_depth_stencil_alpha()
135 dsa->stencil[1].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[back]); in st_update_depth_stencil_alpha()
[all …]
/external/deqp/doc/testspecs/GLES2/
Dfunctional.stencil.txt22 + 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/docs/gallium/cso/
Ddsa.rst1 .. _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/skia/src/gpu/mtl/
DGrMtlDepthStencil.mm73 const GrStencilSettings& stencil,
76 if (!stencil.isDisabled()) {
77 if (stencil.isTwoSided()) {
78 desc.frontFaceStencil = skia_stencil_to_mtl(stencil.postOriginCCWFace(origin));
79 desc.backFaceStencil = skia_stencil_to_mtl(stencil.postOriginCWFace(origin));
82 desc.frontFaceStencil = skia_stencil_to_mtl(stencil.singleSidedFace());
88 GenerateKey(stencil, origin));
108 GrMtlDepthStencil::Key GrMtlDepthStencil::GenerateKey(const GrStencilSettings& stencil,
112 if (stencil.isDisabled()) {
115 if (stencil.isTwoSided()) {
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_bld_depth.c90 const struct pipe_stencil_state *stencil, in lp_build_stencil_test_single() argument
110 assert(stencil->enabled); in lp_build_stencil_test_single()
112 if (stencil->valuemask != stencilMax) { in lp_build_stencil_test_single()
114 LLVMValueRef valuemask = lp_build_const_int_vec(bld->gallivm, type, stencil->valuemask); in lp_build_stencil_test_single()
120 res = lp_build_cmp(bld, stencil->func, stencilRef, stencilVals); in lp_build_stencil_test_single()
134 const struct pipe_stencil_state stencil[2], in lp_build_stencil_test()
141 assert(stencil[0].enabled); in lp_build_stencil_test()
144 res = lp_build_stencil_test_single(bld, &stencil[0], in lp_build_stencil_test()
147 if (stencil[1].enabled && front_facing != NULL) { in lp_build_stencil_test()
151 back_res = lp_build_stencil_test_single(bld, &stencil[1], in lp_build_stencil_test()
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dnine_pipe.c47 dsa.stencil[0].enabled = 1; in nine_convert_dsa_state()
48 dsa.stencil[0].func = d3dcmpfunc_to_pipe_func(rs[D3DRS_STENCILFUNC]); in nine_convert_dsa_state()
49 dsa.stencil[0].fail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILFAIL]); in nine_convert_dsa_state()
50 dsa.stencil[0].zpass_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILPASS]); in nine_convert_dsa_state()
51 dsa.stencil[0].zfail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILZFAIL]); in nine_convert_dsa_state()
52 dsa.stencil[0].valuemask = rs[D3DRS_STENCILMASK]; in nine_convert_dsa_state()
53 dsa.stencil[0].writemask = rs[D3DRS_STENCILWRITEMASK]; in nine_convert_dsa_state()
56 dsa.stencil[1].enabled = 1; in nine_convert_dsa_state()
57 dsa.stencil[1].func = d3dcmpfunc_to_pipe_func(rs[D3DRS_CCW_STENCILFUNC]); in nine_convert_dsa_state()
58 dsa.stencil[1].fail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_CCW_STENCILFAIL]); in nine_convert_dsa_state()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_stencil.c101 GLubyte s = stencil[j]; \
103 stencil[j] = (GLubyte) (NEW_VAL); \
110 GLubyte s = stencil[j]; \
111 stencil[j] = (GLubyte) ((invmask & s) | (wrtmask & (NEW_VAL))); \
129 GLuint n, GLubyte stencil[], const GLubyte mask[], in apply_stencil_op() argument
179 s = (GLubyte) (stencil[j] & valueMask); \
212 GLubyte stencil[], GLubyte mask[], GLint stride) in do_stencil_test() argument
263 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, in do_stencil_test()
295 GLubyte stencil[]) in get_s8_values() argument
306 stencil[i] = *(map + y[i] * rowStride + x[i]); in get_s8_values()
[all …]
/external/angle/src/libANGLE/renderer/metal/doc/
DPackedDepthStencilSupport.md1 # Packed depth stencil support in Metal
3 Metal has different runtime behaviors when it comes to packed depth stencil format usage.
6 wants to use both depth and stencil attachments in the same render pass, these attachments must
7 point to the same packed depth stencil texture. In other words, it is not permitted to use separate
8 depth & stencil textures in a same render pass.
13 depth & stencil textures to be attached to one render pass. So technically, one depth32 texture
/external/skqp/src/gpu/ops/
DGrFillRectOp.h35 const GrUserStencilSettings* stencil = nullptr);
53 const GrUserStencilSettings* stencil = nullptr);
63 const GrUserStencilSettings* stencil = nullptr);
72 const GrUserStencilSettings* stencil = nullptr);
80 const GrUserStencilSettings* stencil = nullptr);
88 const GrUserStencilSettings* stencil = nullptr);
/external/skqp/src/gpu/
DGrRenderTarget.cpp22 GrStencilAttachment* stencil) in GrRenderTarget() argument
25 , fStencilAttachment(stencil) { in GrRenderTarget()
75 void GrRenderTargetPriv::attachStencilAttachment(sk_sp<GrStencilAttachment> stencil) { in attachStencilAttachment() argument
76 if (!stencil && !fRenderTarget->fStencilAttachment) { in attachStencilAttachment()
81 fRenderTarget->fStencilAttachment = std::move(stencil); in attachStencilAttachment()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_zsa.c65 if (!(cso->stencil->enabled || cso->alpha.enabled || !cso->depth.writemask)) in fd5_zsa_state_create()
79 if (cso->stencil[0].enabled) { in fd5_zsa_state_create()
80 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd5_zsa_state_create()
93 if (cso->stencil[1].enabled) { in fd5_zsa_state_create()
94 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd5_zsa_state_create()
/external/mesa3d/src/intel/blorp/
Dblorp.c388 blorp_hiz_stencil_op(struct blorp_batch *batch, struct blorp_surf *stencil, in blorp_hiz_stencil_op() argument
401 brw_blorp_surface_info_init(batch->blorp, &params.stencil, stencil, level, in blorp_hiz_stencil_op()
402 layer, stencil->surf->format, true); in blorp_hiz_stencil_op()
403 params.x1 = minify(params.stencil.surf.logical_level0_px.width, in blorp_hiz_stencil_op()
404 params.stencil.view.base_level); in blorp_hiz_stencil_op()
405 params.y1 = minify(params.stencil.surf.logical_level0_px.height, in blorp_hiz_stencil_op()
406 params.stencil.view.base_level); in blorp_hiz_stencil_op()
407 params.dst.surf.samples = params.stencil.surf.samples; in blorp_hiz_stencil_op()
409 params.stencil.surf.logical_level0_px; in blorp_hiz_stencil_op()
410 params.dst.view = params.stencil.view; in blorp_hiz_stencil_op()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_state.c234 if (cso->stencil[0].enabled) { in nv30_zsa_state_create()
237 SB_DATA (so, cso->stencil[0].writemask); in nv30_zsa_state_create()
238 SB_DATA (so, nvgl_comparison_op(cso->stencil[0].func)); in nv30_zsa_state_create()
240 SB_DATA (so, cso->stencil[0].valuemask); in nv30_zsa_state_create()
241 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].fail_op)); in nv30_zsa_state_create()
242 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].zfail_op)); in nv30_zsa_state_create()
243 SB_DATA (so, nvgl_stencil_op(cso->stencil[0].zpass_op)); in nv30_zsa_state_create()
250 if (cso->stencil[1].enabled) { in nv30_zsa_state_create()
253 SB_DATA (so, cso->stencil[1].writemask); in nv30_zsa_state_create()
254 SB_DATA (so, nvgl_comparison_op(cso->stencil[1].func)); in nv30_zsa_state_create()
[all …]
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_mlaa.c105 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()
143 mstencil.stencil[0].func = PIPE_FUNC_EQUAL; in pp_jimenezmlaa_run()
144 mstencil.stencil[0].zpass_op = PIPE_STENCIL_OP_KEEP; in pp_jimenezmlaa_run()
/external/mesa3d/src/gallium/drivers/zink/
Dzink_batch.c119 struct zink_resource *stencil; in zink_batch_reference_resource_rw() local
121 zink_get_depth_stencil_resources((struct pipe_resource*)res, NULL, &stencil); in zink_batch_reference_resource_rw()
128 if (stencil) in zink_batch_reference_resource_rw()
129 pipe_reference(NULL, &stencil->base.reference); in zink_batch_reference_resource_rw()
136 if (stencil) in zink_batch_reference_resource_rw()
137 stencil->batch_uses[batch->batch_id] |= mask; in zink_batch_reference_resource_rw()
/external/mesa3d/src/gallium/drivers/i915/
Di915_clear.c45 double depth, unsigned stencil, in i915_clear_emit() argument
90 packed_z_stencil = util_pack_z_stencil(depth_tex->b.b.format, depth, stencil); in i915_clear_emit()
113 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
242 depth, stencil, in i915_clear_blitter()
251 double depth, unsigned stencil) in i915_clear_render() argument
258 i915_clear_emit(pipe, buffers, color, depth, stencil, in i915_clear_render()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_zsa.c57 if (cso->stencil[0].enabled) { in fd2_zsa_state_create()
58 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd2_zsa_state_create()
71 if (cso->stencil[1].enabled) { in fd2_zsa_state_create()
72 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd2_zsa_state_create()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_zsa.c59 if (cso->stencil[0].enabled) { in fd3_zsa_state_create()
60 const struct pipe_stencil_state *s = &cso->stencil[0]; in fd3_zsa_state_create()
74 if (cso->stencil[1].enabled) { in fd3_zsa_state_create()
75 const struct pipe_stencil_state *bs = &cso->stencil[1]; in fd3_zsa_state_create()

12345678910>>...29