/external/mesa3d/src/mesa/main/ |
D | stencil.c | 113 if (ctx->Stencil.Clear == (GLuint) s) in _mesa_ClearStencil() 117 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil() 159 if (ctx->Stencil.Function[0] == frontfunc && in _mesa_StencilFuncSeparateATI() 160 ctx->Stencil.Function[1] == backfunc && in _mesa_StencilFuncSeparateATI() 161 ctx->Stencil.ValueMask[0] == mask && in _mesa_StencilFuncSeparateATI() 162 ctx->Stencil.ValueMask[1] == mask && in _mesa_StencilFuncSeparateATI() 163 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI() 164 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI() 167 ctx->Stencil.Function[0] = frontfunc; in _mesa_StencilFuncSeparateATI() 168 ctx->Stencil.Function[1] = backfunc; in _mesa_StencilFuncSeparateATI() [all …]
|
D | clear.c | 338 const GLuint clearSave = ctx->Stencil.Clear; in _mesa_ClearBufferiv() 339 ctx->Stencil.Clear = *value; in _mesa_ClearBufferiv() 341 ctx->Stencil.Clear = clearSave; in _mesa_ClearBufferiv() 606 const GLuint clearStencilSave = ctx->Stencil.Clear; in _mesa_ClearBufferfi() 610 ctx->Stencil.Clear = stencil; in _mesa_ClearBufferfi() 617 ctx->Stencil.Clear = clearStencilSave; in _mesa_ClearBufferfi()
|
D | get.c | 445 { GL_STENCIL_CLEAR_VALUE, CONTEXT_INT(Stencil.Clear), NO_EXTRA }, 451 { GL_STENCIL_TEST, CONTEXT_BOOL(Stencil.Enabled), NO_EXTRA }, 767 { GL_STENCIL_BACK_FUNC, CONTEXT_ENUM(Stencil.Function[1]), NO_EXTRA }, 768 { GL_STENCIL_BACK_VALUE_MASK, CONTEXT_INT(Stencil.ValueMask[1]), NO_EXTRA }, 769 { GL_STENCIL_BACK_WRITEMASK, CONTEXT_INT(Stencil.WriteMask[1]), NO_EXTRA }, 770 { GL_STENCIL_BACK_REF, CONTEXT_INT(Stencil.Ref[1]), NO_EXTRA }, 771 { GL_STENCIL_BACK_FAIL, CONTEXT_ENUM(Stencil.FailFunc[1]), NO_EXTRA }, 772 { GL_STENCIL_BACK_PASS_DEPTH_FAIL, CONTEXT_ENUM(Stencil.ZFailFunc[1]), NO_EXTRA }, 773 { GL_STENCIL_BACK_PASS_DEPTH_PASS, CONTEXT_ENUM(Stencil.ZPassFunc[1]), NO_EXTRA }, 1117 { GL_STENCIL_TEST_TWO_SIDE_EXT, CONTEXT_BOOL(Stencil.TestTwoSide), [all …]
|
D | enable.c | 660 if (ctx->Stencil.Enabled == state) in _mesa_set_enable() 663 ctx->Stencil.Enabled = state; in _mesa_set_enable() 938 if (ctx->Stencil.TestTwoSide == state) in _mesa_set_enable() 941 ctx->Stencil.TestTwoSide = state; in _mesa_set_enable() 943 ctx->Stencil._BackFace = 2; in _mesa_set_enable() 945 ctx->Stencil._BackFace = 1; in _mesa_set_enable() 1411 return ctx->Stencil.Enabled; in _mesa_IsEnabled() 1655 return ctx->Stencil.TestTwoSide; in _mesa_IsEnabled()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen6_depthstencil.c | 48 if (ctx->Stencil._Enabled) { in gen6_upload_depth_stencil_state() 49 int back = ctx->Stencil._BackFace; in gen6_upload_depth_stencil_state() 53 intel_translate_compare_func(ctx->Stencil.Function[0]); in gen6_upload_depth_stencil_state() 55 intel_translate_stencil_op(ctx->Stencil.FailFunc[0]); in gen6_upload_depth_stencil_state() 57 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[0]); in gen6_upload_depth_stencil_state() 59 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[0]); in gen6_upload_depth_stencil_state() 60 ds->ds1.stencil_write_mask = ctx->Stencil.WriteMask[0]; in gen6_upload_depth_stencil_state() 61 ds->ds1.stencil_test_mask = ctx->Stencil.ValueMask[0]; in gen6_upload_depth_stencil_state() 63 if (ctx->Stencil._TestTwoSide) { in gen6_upload_depth_stencil_state() 66 intel_translate_compare_func(ctx->Stencil.Function[back]); in gen6_upload_depth_stencil_state() [all …]
|
D | brw_cc.c | 107 if (ctx->Stencil._Enabled) { in upload_cc_unit() 108 const unsigned back = ctx->Stencil._BackFace; in upload_cc_unit() 112 intel_translate_compare_func(ctx->Stencil.Function[0]); in upload_cc_unit() 114 intel_translate_stencil_op(ctx->Stencil.FailFunc[0]); in upload_cc_unit() 116 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[0]); in upload_cc_unit() 118 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[0]); in upload_cc_unit() 119 cc->cc1.stencil_ref = ctx->Stencil.Ref[0]; in upload_cc_unit() 120 cc->cc1.stencil_write_mask = ctx->Stencil.WriteMask[0]; in upload_cc_unit() 121 cc->cc1.stencil_test_mask = ctx->Stencil.ValueMask[0]; in upload_cc_unit() 123 if (ctx->Stencil._TestTwoSide) { in upload_cc_unit() [all …]
|
D | gen6_cc.c | 225 cc->cc0.stencil_ref = ctx->Stencil.Ref[0]; in gen6_upload_color_calc_state() 226 cc->cc0.bf_stencil_ref = ctx->Stencil.Ref[ctx->Stencil._BackFace]; in gen6_upload_color_calc_state()
|
D | gen7_misc_state.c | 115 dw1 |= ((ctx->Stencil.WriteMask != 0) << 27); in emit_depthbuffer() 195 ((stencil_mt != NULL && ctx->Stencil.WriteMask != 0) << 27) | in emit_depthbuffer()
|
D | brw_wm.c | 517 if (ctx->Stencil._Enabled) { in brw_wm_populate_key() 520 if (ctx->Stencil.WriteMask[0] || in brw_wm_populate_key() 521 ctx->Stencil.WriteMask[ctx->Stencil._BackFace]) in brw_wm_populate_key()
|
D | intel_pixel.c | 113 if (ctx->Stencil._Enabled) { in intel_check_blit_fragment_ops()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_depth.c | 111 if (ctx->Stencil.Enabled && ctx->DrawBuffer->Visual.stencilBits > 0) { 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() 119 sr.ref_value[0] = ctx->Stencil.Ref[0] & 0xff; in update_depth_stencil_alpha() 121 if (ctx->Stencil._TestTwoSide) { in update_depth_stencil_alpha() 122 const GLuint back = ctx->Stencil._BackFace; in update_depth_stencil_alpha() [all …]
|
D | st_cb_clear.c | 271 depth_stencil.stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in clear_with_quad() 272 stencil_ref.ref_value[0] = ctx->Stencil.Clear; in clear_with_quad() 364 = (ctx->Stencil.WriteMask[0] & stencilMax) != stencilMax; in check_clear_depth_stencil_with_quad() 417 = (ctx->Stencil.WriteMask[0] & stencilMax) != stencilMax; in check_clear_stencil_with_quad() 557 ctx->Depth.Clear, ctx->Stencil.Clear); in st_Clear()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_state.c | 66 front_ref = ctx->Stencil.Ref[0]; in i915_update_stencil() 67 front_mask = ctx->Stencil.ValueMask[0]; in i915_update_stencil() 68 front_writemask = ctx->Stencil.WriteMask[0]; in i915_update_stencil() 69 front_func = ctx->Stencil.Function[0]; in i915_update_stencil() 70 front_fail = ctx->Stencil.FailFunc[0]; in i915_update_stencil() 71 front_pass_z_fail = ctx->Stencil.ZFailFunc[0]; in i915_update_stencil() 72 front_pass_z_pass = ctx->Stencil.ZPassFunc[0]; in i915_update_stencil() 73 back_ref = ctx->Stencil.Ref[ctx->Stencil._BackFace]; in i915_update_stencil() 74 back_mask = ctx->Stencil.ValueMask[ctx->Stencil._BackFace]; in i915_update_stencil() 75 back_writemask = ctx->Stencil.WriteMask[ctx->Stencil._BackFace]; in i915_update_stencil() [all …]
|
D | intel_pixel.c | 113 if (ctx->Stencil._Enabled) { in intel_check_blit_fragment_ops()
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv04_state_raster.c | 173 if (ctx->Stencil.WriteMask[0]) in nv04_emit_control() 176 if (ctx->Stencil.Enabled) in nv04_emit_control() 179 nv04->ctrl[1] |= get_comparison_op(ctx->Stencil.Function[0]) << 4 | in nv04_emit_control() 180 ctx->Stencil.Ref[0] << 8 | in nv04_emit_control() 181 ctx->Stencil.ValueMask[0] << 16 | in nv04_emit_control() 182 ctx->Stencil.WriteMask[0] << 24; in nv04_emit_control() 184 nv04->ctrl[2] |= get_stencil_op(ctx->Stencil.ZPassFunc[0]) << 8 | in nv04_emit_control() 185 get_stencil_op(ctx->Stencil.ZFailFunc[0]) << 4 | in nv04_emit_control() 186 get_stencil_op(ctx->Stencil.FailFunc[0]); in nv04_emit_control()
|
D | nv10_state_raster.c | 144 PUSH_DATAb(push, ctx->Stencil.Enabled); in nv10_emit_stencil_func() 147 PUSH_DATA (push, nvgl_comparison_op(ctx->Stencil.Function[0])); in nv10_emit_stencil_func() 148 PUSH_DATA (push, ctx->Stencil.Ref[0]); in nv10_emit_stencil_func() 149 PUSH_DATA (push, ctx->Stencil.ValueMask[0]); in nv10_emit_stencil_func() 158 PUSH_DATA (push, ctx->Stencil.WriteMask[0]); in nv10_emit_stencil_mask() 167 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.FailFunc[0])); in nv10_emit_stencil_op() 168 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.ZFailFunc[0])); in nv10_emit_stencil_op() 169 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.ZPassFunc[0])); in nv10_emit_stencil_op()
|
D | nouveau_driver.c | 131 ctx->Stencil.WriteMask[0] : 0)); in nouveau_clear() 134 ctx->Stencil.Clear); in nouveau_clear()
|
/external/mesa3d/src/mesa/drivers/common/ |
D | driverfuncs.c | 271 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil._Enabled); in _mesa_init_driver_state() 302 ctx->Stencil.Function[0], in _mesa_init_driver_state() 303 ctx->Stencil.Ref[0], in _mesa_init_driver_state() 304 ctx->Stencil.ValueMask[0]); in _mesa_init_driver_state() 306 ctx->Stencil.Function[1], in _mesa_init_driver_state() 307 ctx->Stencil.Ref[1], in _mesa_init_driver_state() 308 ctx->Stencil.ValueMask[1]); in _mesa_init_driver_state() 309 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]); in _mesa_init_driver_state() 310 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]); in _mesa_init_driver_state() 312 ctx->Stencil.FailFunc[0], in _mesa_init_driver_state() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_stencil.c | 131 const GLubyte ref = ctx->Stencil.Ref[face]; in apply_stencil_op() 132 const GLubyte wrtmask = ctx->Stencil.WriteMask[face]; in apply_stencil_op() 217 const GLuint valueMask = ctx->Stencil.ValueMask[face]; in do_stencil_test() 218 const GLubyte ref = (GLubyte) (ctx->Stencil.Ref[face] & valueMask); in do_stencil_test() 230 switch (ctx->Stencil.Function[face]) { in do_stencil_test() 261 if (ctx->Stencil.FailFunc[face] != GL_KEEP) { in do_stencil_test() 262 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, in do_stencil_test() 356 const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace; in _swrast_stencil_and_ztest_span() 400 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, count, in _swrast_stencil_and_ztest_span() 421 if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span() [all …]
|
D | s_depth.c | 657 const GLuint writeMask = ctx->Stencil.WriteMask[0]; in _swrast_clear_depth_stencil_buffer() 699 clear |= (ctx->Stencil.Clear & writeMask & 0xff) << 24; in _swrast_clear_depth_stencil_buffer() 703 clear |= (ctx->Stencil.Clear & writeMask & 0xff); in _swrast_clear_depth_stencil_buffer() 726 const GLuint sClear = ctx->Stencil.Clear & writeMask; in _swrast_clear_depth_stencil_buffer()
|
/external/mesa3d/src/gallium/docs/source/cso/ |
D | dsa.rst | 3 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/ |
D | functional.stencil.txt | 19 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/mesa3d/src/mesa/tnl_dd/ |
D | t_dd_tritmp.h | 265 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/OLD/ |
D | MESA_packed_depth_stencil.spec | 85 STENCIL_INDEX Stencil Stencil index 100 Stencil
|
/external/mesa3d/src/mesa/swrast_setup/ |
D | ss_triangle.c | 258 (ctx->Stencil.Enabled && ctx->Stencil._TestTwoSide)) in _swsetup_choose_trifuncs()
|