Home
last modified time | relevance | path

Searched refs:Stencil (Results 1 – 25 of 63) sorted by relevance

123

/external/mesa3d/src/mesa/main/
Dstencil.c115 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil()
153 if (ctx->Stencil.Function[0] == frontfunc && in _mesa_StencilFuncSeparateATI()
154 ctx->Stencil.Function[1] == backfunc && in _mesa_StencilFuncSeparateATI()
155 ctx->Stencil.ValueMask[0] == mask && in _mesa_StencilFuncSeparateATI()
156 ctx->Stencil.ValueMask[1] == mask && in _mesa_StencilFuncSeparateATI()
157 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI()
158 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI()
162 ctx->Stencil.Function[0] = frontfunc; in _mesa_StencilFuncSeparateATI()
163 ctx->Stencil.Function[1] = backfunc; in _mesa_StencilFuncSeparateATI()
164 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in _mesa_StencilFuncSeparateATI()
[all …]
Dstencil.h102 GLint ref = ctx->Stencil.Ref[face]; in _mesa_get_stencil_ref()
109 return ctx->Stencil.Enabled && in _mesa_stencil_is_enabled()
116 const int face = ctx->Stencil._BackFace; in _mesa_stencil_is_two_sided()
119 (ctx->Stencil.Function[0] != ctx->Stencil.Function[face] || in _mesa_stencil_is_two_sided()
120 ctx->Stencil.FailFunc[0] != ctx->Stencil.FailFunc[face] || in _mesa_stencil_is_two_sided()
121 ctx->Stencil.ZPassFunc[0] != ctx->Stencil.ZPassFunc[face] || in _mesa_stencil_is_two_sided()
122 ctx->Stencil.ZFailFunc[0] != ctx->Stencil.ZFailFunc[face] || in _mesa_stencil_is_two_sided()
123 ctx->Stencil.Ref[0] != ctx->Stencil.Ref[face] || in _mesa_stencil_is_two_sided()
124 ctx->Stencil.ValueMask[0] != ctx->Stencil.ValueMask[face] || in _mesa_stencil_is_two_sided()
125 ctx->Stencil.WriteMask[0] != ctx->Stencil.WriteMask[face]); in _mesa_stencil_is_two_sided()
[all …]
Dclear.c374 const GLuint clearSave = ctx->Stencil.Clear; in clear_bufferiv()
375 ctx->Stencil.Clear = *value; in clear_bufferiv()
377 ctx->Stencil.Clear = clearSave; in clear_bufferiv()
706 const GLuint clearStencilSave = ctx->Stencil.Clear; in clear_bufferfi()
710 ctx->Stencil.Clear = stencil; in clear_bufferfi()
717 ctx->Stencil.Clear = clearStencilSave; in clear_bufferfi()
Dget.c772 v->value_enum = ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT; in find_custom_value()
776 v->value_enum = ctx->Stencil.FailFunc[ctx->Stencil.ActiveFace]; in find_custom_value()
779 v->value_enum = ctx->Stencil.Function[ctx->Stencil.ActiveFace]; in find_custom_value()
782 v->value_enum = ctx->Stencil.ZFailFunc[ctx->Stencil.ActiveFace]; in find_custom_value()
785 v->value_enum = ctx->Stencil.ZPassFunc[ctx->Stencil.ActiveFace]; in find_custom_value()
788 v->value_int = _mesa_get_stencil_ref(ctx, ctx->Stencil.ActiveFace); in find_custom_value()
794 v->value_int = ctx->Stencil.ValueMask[ctx->Stencil.ActiveFace]; in find_custom_value()
797 v->value_int = ctx->Stencil.WriteMask[ctx->Stencil.ActiveFace]; in find_custom_value()
Denable.c729 if (ctx->Stencil.Enabled == state) in _mesa_set_enable()
733 ctx->Stencil.Enabled = state; in _mesa_set_enable()
966 if (ctx->Stencil.TestTwoSide == state) in _mesa_set_enable()
970 ctx->Stencil.TestTwoSide = state; in _mesa_set_enable()
972 ctx->Stencil._BackFace = 2; in _mesa_set_enable()
974 ctx->Stencil._BackFace = 1; in _mesa_set_enable()
1496 return ctx->Stencil.Enabled; in _mesa_IsEnabled()
1651 return ctx->Stencil.TestTwoSide; in _mesa_IsEnabled()
Dattrib.c115 GLboolean Stencil; member
370 attr->Stencil = ctx->Stencil.Enabled; in _mesa_PushAttrib()
371 attr->StencilTwoSide = ctx->Stencil.TestTwoSide; in _mesa_PushAttrib()
492 (void*)&ctx->Stencil)) in _mesa_PushAttrib()
681 TEST_AND_UPDATE(ctx->Stencil.Enabled, enable->Stencil, GL_STENCIL_TEST); in pop_enable_group()
683 … TEST_AND_UPDATE(ctx->Stencil.TestTwoSide, enable->StencilTwoSide, GL_STENCIL_TEST_TWO_SIDE_EXT); in pop_enable_group()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_depth.c121 if (ctx->Stencil.Enabled && ctx->DrawBuffer->Visual.stencilBits > 0) { 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()
132 const GLuint back = ctx->Stencil._BackFace; 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 …]
Dst_cb_clear.c264 depth_stencil.stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in clear_with_quad()
265 stencil_ref.ref_value[0] = ctx->Stencil.Clear; in clear_with_quad()
375 return (ctx->Stencil.WriteMask[0] & stencilMax) == 0; in is_stencil_disabled()
388 return (ctx->Stencil.WriteMask[0] & stencilMax) != stencilMax; in is_stencil_masked()
485 ctx->Depth.Clear, ctx->Stencil.Clear); in st_Clear()
/external/mesa3d/src/mesa/drivers/dri/i915/
Di915_state.c69 front_mask = ctx->Stencil.ValueMask[0]; in i915_update_stencil()
70 front_writemask = ctx->Stencil.WriteMask[0]; in i915_update_stencil()
71 front_func = ctx->Stencil.Function[0]; in i915_update_stencil()
72 front_fail = ctx->Stencil.FailFunc[0]; in i915_update_stencil()
73 front_pass_z_fail = ctx->Stencil.ZFailFunc[0]; in i915_update_stencil()
74 front_pass_z_pass = ctx->Stencil.ZPassFunc[0]; in i915_update_stencil()
75 back_ref = _mesa_get_stencil_ref(ctx, ctx->Stencil._BackFace); in i915_update_stencil()
76 back_mask = ctx->Stencil.ValueMask[ctx->Stencil._BackFace]; in i915_update_stencil()
77 back_writemask = ctx->Stencil.WriteMask[ctx->Stencil._BackFace]; in i915_update_stencil()
78 back_func = ctx->Stencil.Function[ctx->Stencil._BackFace]; in i915_update_stencil()
[all …]
Dintel_clear.c138 (ctx->Stencil.WriteMask[0] & 0xff) != 0xff) { in intelClear()
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c256 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil.Enabled); in _mesa_init_driver_state()
286 ctx->Stencil.Function[0], in _mesa_init_driver_state()
287 ctx->Stencil.Ref[0], in _mesa_init_driver_state()
288 ctx->Stencil.ValueMask[0]); in _mesa_init_driver_state()
290 ctx->Stencil.Function[1], in _mesa_init_driver_state()
291 ctx->Stencil.Ref[1], in _mesa_init_driver_state()
292 ctx->Stencil.ValueMask[1]); in _mesa_init_driver_state()
293 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]); in _mesa_init_driver_state()
294 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]); in _mesa_init_driver_state()
296 ctx->Stencil.FailFunc[0], in _mesa_init_driver_state()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_state_raster.c175 if (ctx->Stencil.WriteMask[0]) in nv04_emit_control()
181 nv04->ctrl[1] |= get_comparison_op(ctx->Stencil.Function[0]) << 4 | in nv04_emit_control()
183 ctx->Stencil.ValueMask[0] << 16 | in nv04_emit_control()
184 ctx->Stencil.WriteMask[0] << 24; in nv04_emit_control()
186 nv04->ctrl[2] |= get_stencil_op(ctx->Stencil.ZPassFunc[0]) << 8 | in nv04_emit_control()
187 get_stencil_op(ctx->Stencil.ZFailFunc[0]) << 4 | in nv04_emit_control()
188 get_stencil_op(ctx->Stencil.FailFunc[0]); in nv04_emit_control()
Dnv10_state_raster.c151 PUSH_DATA (push, nvgl_comparison_op(ctx->Stencil.Function[0])); in nv10_emit_stencil_func()
153 PUSH_DATA (push, ctx->Stencil.ValueMask[0]); in nv10_emit_stencil_func()
162 PUSH_DATA (push, ctx->Stencil.WriteMask[0]); in nv10_emit_stencil_mask()
171 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.FailFunc[0])); in nv10_emit_stencil_op()
172 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.ZFailFunc[0])); in nv10_emit_stencil_op()
173 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.ZPassFunc[0])); in nv10_emit_stencil_op()
Dnouveau_driver.c148 ctx->Stencil.WriteMask[0] : 0)); in nouveau_clear()
151 ctx->Stencil.Clear); in nouveau_clear()
/external/mesa3d/src/mesa/swrast/
Ds_stencil.c134 const GLubyte wrtmask = ctx->Stencil.WriteMask[face]; in apply_stencil_op()
219 const GLuint valueMask = ctx->Stencil.ValueMask[face]; in do_stencil_test()
232 switch (ctx->Stencil.Function[face]) { in do_stencil_test()
263 if (ctx->Stencil.FailFunc[face] != GL_KEEP) { in do_stencil_test()
264 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, in do_stencil_test()
358 const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace; in _swrast_stencil_and_ztest_span()
402 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, count, in _swrast_stencil_and_ztest_span()
423 if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span()
424 apply_stencil_op(ctx, ctx->Stencil.ZFailFunc[face], face, in _swrast_stencil_and_ztest_span()
427 if (ctx->Stencil.ZPassFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span()
[all …]
Ds_depth.c673 const GLuint writeMask = ctx->Stencil.WriteMask[0]; in _swrast_clear_depth_stencil_buffer()
715 clear |= (ctx->Stencil.Clear & writeMask & 0xff) << 24; in _swrast_clear_depth_stencil_buffer()
719 clear |= (ctx->Stencil.Clear & writeMask & 0xff); in _swrast_clear_depth_stencil_buffer()
742 const GLuint sClear = ctx->Stencil.Clear & writeMask; in _swrast_clear_depth_stencil_buffer()
/external/mesa3d/src/gallium/docs/source/cso/
Ddsa.rst3 Depth, Stencil, & Alpha
15 * Stencil
28 Stencil Members
38 Stencil test value mask; this is ANDed with the value in the stencil
41 Stencil test writemask; this controls which bits of the stencil buffer
/external/deqp/doc/testspecs/GLES2/
Dfunctional.stencil.txt19 Stencil test
25 + Stencil buffer clears
26 + Stencil update with GL_REPLACE in stencil fail, depth fail and depth pass
34 + Stencil compare or update with points and lines
/external/swiftshader/src/Device/
DPixelProcessor.hpp128 struct Stencil struct in sw::PixelProcessor
268 Stencil stencil;
269 Stencil stencilCCW;
DRenderer.hpp153 PixelProcessor::Stencil stencil[2]; // clockwise, counterclockwise
154 PixelProcessor::Stencil stencilCCW;
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_tritmp.h265 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { in TAG()
278 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { in TAG()
294 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { in TAG()
503 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { in TAG()
517 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { in TAG()
532 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { in TAG()
/external/mesa3d/docs/specs/OLD/
DMESA_packed_depth_stencil.spec85 STENCIL_INDEX Stencil Stencil index
100 Stencil
/external/swiftshader/src/Renderer/
DPixelProcessor.hpp138 struct Stencil struct in sw::PixelProcessor
319 Stencil stencil;
320 Stencil stencilCCW;
/external/mesa3d/src/intel/blorp/
DTODO8 - Depth and Stencil clears
/external/mesa3d/prebuilt-intermediates/main/
Dget_hash.h39 { GL_STENCIL_CLEAR_VALUE, CONTEXT_INT(Stencil.Clear), NO_EXTRA },
45 { GL_STENCIL_TEST, CONTEXT_BOOL(Stencil.Enabled), NO_EXTRA },
217 { GL_STENCIL_BACK_FUNC, CONTEXT_ENUM(Stencil.Function[1]), NO_EXTRA },
218 { GL_STENCIL_BACK_VALUE_MASK, CONTEXT_UINT(Stencil.ValueMask[1]), NO_EXTRA },
219 { GL_STENCIL_BACK_WRITEMASK, CONTEXT_UINT(Stencil.WriteMask[1]), NO_EXTRA },
221 { GL_STENCIL_BACK_FAIL, CONTEXT_ENUM(Stencil.FailFunc[1]), NO_EXTRA },
222 { GL_STENCIL_BACK_PASS_DEPTH_FAIL, CONTEXT_ENUM(Stencil.ZFailFunc[1]), NO_EXTRA },
223 { GL_STENCIL_BACK_PASS_DEPTH_PASS, CONTEXT_ENUM(Stencil.ZPassFunc[1]), NO_EXTRA },
567 { GL_STENCIL_TEST_TWO_SIDE_EXT, CONTEXT_BOOL(Stencil.TestTwoSide), extra_EXT_stencil_two_side },

123