/external/mesa3d/src/mesa/main/ |
H A D | stencil.c | 28 * Stencil operations. 115 ctx->Stencil.Clear = (GLuint) s; 130 * __struct gl_contextRec::Stencil. On change flushes the vertices and notifies 153 if (ctx->Stencil.Function[0] == frontfunc && 154 ctx->Stencil.Function[1] == backfunc && 155 ctx->Stencil.ValueMask[0] == mask && 156 ctx->Stencil.ValueMask[1] == mask && 157 ctx->Stencil.Ref[0] == ref && 158 ctx->Stencil.Ref[1] == ref) 161 ctx->Stencil [all...] |
H A D | stencil.h | 3 * Stencil operations. 83 * "Stencil comparison operations and queries of <ref> clamp its value 92 GLint ref = ctx->Stencil.Ref[face];
|
H A D | clear.c | 357 const GLuint clearSave = ctx->Stencil.Clear; 358 ctx->Stencil.Clear = *value; 360 ctx->Stencil.Clear = clearSave; 634 const GLuint clearStencilSave = ctx->Stencil.Clear; 638 ctx->Stencil.Clear = stencil; 645 ctx->Stencil.Clear = clearStencilSave;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | gen6_depthstencil.c | 50 if (ctx->Stencil._Enabled) { 51 int back = ctx->Stencil._BackFace; 55 intel_translate_compare_func(ctx->Stencil.Function[0]); 57 intel_translate_stencil_op(ctx->Stencil.FailFunc[0]); 59 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[0]); 61 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[0]); 62 ds->ds1.stencil_write_mask = ctx->Stencil.WriteMask[0]; 63 ds->ds1.stencil_test_mask = ctx->Stencil.ValueMask[0]; 65 if (ctx->Stencil._TestTwoSide) { 68 intel_translate_compare_func(ctx->Stencil [all...] |
H A D | brw_cc.c | 124 if (ctx->Stencil._Enabled) { 125 const unsigned back = ctx->Stencil._BackFace; 129 intel_translate_compare_func(ctx->Stencil.Function[0]); 131 intel_translate_stencil_op(ctx->Stencil.FailFunc[0]); 133 intel_translate_stencil_op(ctx->Stencil.ZFailFunc[0]); 135 intel_translate_stencil_op(ctx->Stencil.ZPassFunc[0]); 137 cc->cc1.stencil_write_mask = ctx->Stencil.WriteMask[0]; 138 cc->cc1.stencil_test_mask = ctx->Stencil.ValueMask[0]; 140 if (ctx->Stencil._TestTwoSide) { 143 intel_translate_compare_func(ctx->Stencil [all...] |
H A D | gen8_wm_depth_stencil.c | 41 struct gl_stencil_attrib *stencil = &ctx->Stencil; 80 int backface_ref = _mesa_get_stencil_ref(ctx, ctx->Stencil._BackFace);
|
H A D | intel_pixel.c | 110 if (ctx->Stencil._Enabled) {
|
H A D | gen8_depth_state.c | 115 * BSpec: vol2a.11 3D Pipeline Windower > Early Depth/Stencil Processing 116 * > Depth/Stencil Buffer State > 3DSTATE_STENCIL_BUFFER [DevIVB+], 222 stencil_mt, ctx->Stencil._WriteEnabled, 258 /* 3DSTATE_WM::Early Depth/Stencil Control != EDSC_PREPS (2). */ 286 * !DEPTH_STENCIL_STATE::Stencil Buffer Write Enable || 287 * !3DSTATE_DEPTH_BUFFER::Stencil Buffer Enable || 288 * !3DSTATE_STENCIL_BUFFER::Stencil Buffer Enable 290 const bool stencil_writes_enabled = ctx->Stencil._WriteEnabled; 343 ctx->Stencil._WriteEnabled ? PIPE_CONTROL_RENDER_TARGET_FLUSH : 0; 397 * See the "Optimized Depth Buffer Clear and/or Stencil Buffe [all...] |
H A D | brw_wm.c | 475 if (ctx->Stencil._Enabled) { 478 if (ctx->Stencil.WriteMask[0] || 479 ctx->Stencil.WriteMask[ctx->Stencil._BackFace])
|
H A D | gen7_misc_state.c | 111 ((stencil_mt != NULL && ctx->Stencil._WriteEnabled) << 27) |
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_depth.c | 121 if (ctx->Stencil.Enabled && ctx->DrawBuffer->Visual.stencilBits > 0) { 123 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); 124 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); 125 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]); 126 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]); 127 dsa->stencil[0].valuemask = ctx->Stencil.ValueMask[0] & 0xff; 128 dsa->stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; 131 if (ctx->Stencil._TestTwoSide) { 132 const GLuint back = ctx->Stencil._BackFace; 134 dsa->stencil[1].func = st_compare_func_to_pipe(ctx->Stencil [all...] |
H A D | st_cb_clear.c | 262 depth_stencil.stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; 263 stencil_ref.ref_value[0] = ctx->Stencil.Clear; 373 return (ctx->Stencil.WriteMask[0] & stencilMax) == 0; 386 return (ctx->Stencil.WriteMask[0] & stencilMax) != stencilMax; 483 ctx->Depth.Clear, ctx->Stencil.Clear);
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
H A D | nv04_state_raster.c | 174 /* Stencil test. */ 175 if (ctx->Stencil.WriteMask[0]) 178 if (ctx->Stencil._Enabled) 181 nv04->ctrl[1] |= get_comparison_op(ctx->Stencil.Function[0]) << 4 | 183 ctx->Stencil.ValueMask[0] << 16 | 184 ctx->Stencil.WriteMask[0] << 24; 186 nv04->ctrl[2] |= get_stencil_op(ctx->Stencil.ZPassFunc[0]) << 8 | 187 get_stencil_op(ctx->Stencil.ZFailFunc[0]) << 4 | 188 get_stencil_op(ctx->Stencil.FailFunc[0]);
|
H A D | nv10_state_raster.c | 148 PUSH_DATAb(push, ctx->Stencil._Enabled); 151 PUSH_DATA (push, nvgl_comparison_op(ctx->Stencil.Function[0])); 153 PUSH_DATA (push, ctx->Stencil.ValueMask[0]); 162 PUSH_DATA (push, ctx->Stencil.WriteMask[0]); 171 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.FailFunc[0])); 172 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.ZFailFunc[0])); 173 PUSH_DATA (push, nvgl_stencil_op(ctx->Stencil.ZPassFunc[0]));
|
H A D | nouveau_driver.c | 148 ctx->Stencil.WriteMask[0] : 0)); 151 ctx->Stencil.Clear);
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
H A D | i915_state.c | 69 front_mask = ctx->Stencil.ValueMask[0]; 70 front_writemask = ctx->Stencil.WriteMask[0]; 71 front_func = ctx->Stencil.Function[0]; 72 front_fail = ctx->Stencil.FailFunc[0]; 73 front_pass_z_fail = ctx->Stencil.ZFailFunc[0]; 74 front_pass_z_pass = ctx->Stencil.ZPassFunc[0]; 75 back_ref = _mesa_get_stencil_ref(ctx, ctx->Stencil._BackFace); 76 back_mask = ctx->Stencil.ValueMask[ctx->Stencil._BackFace]; 77 back_writemask = ctx->Stencil [all...] |
H A D | intel_pixel.c | 113 if (ctx->Stencil._Enabled) {
|
H A D | intel_clear.c | 138 (ctx->Stencil.WriteMask[0] & 0xff) != 0xff) {
|
H A D | intel_pixel_copy.c | 114 if (ctx->Stencil._Enabled) {
|
/external/mesa3d/src/mesa/drivers/common/ |
H A D | driverfuncs.c | 251 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil._Enabled); 281 ctx->Stencil.Function[0], 282 ctx->Stencil.Ref[0], 283 ctx->Stencil.ValueMask[0]); 285 ctx->Stencil.Function[1], 286 ctx->Stencil.Ref[1], 287 ctx->Stencil.ValueMask[1]); 288 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]); 289 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]); 291 ctx->Stencil [all...] |
/external/mesa3d/src/mesa/swrast/ |
H A D | s_stencil.c | 41 /* Stencil Logic: 134 const GLubyte wrtmask = ctx->Stencil.WriteMask[face]; 219 const GLuint valueMask = ctx->Stencil.ValueMask[face]; 232 switch (ctx->Stencil.Function[face]) { 263 if (ctx->Stencil.FailFunc[face] != GL_KEEP) { 264 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, 358 const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace; 402 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, count, 423 if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) { 424 apply_stencil_op(ctx, ctx->Stencil [all...] |
/external/mesa3d/docs/specs/OLD/ |
H A D | MESA_packed_depth_stencil.spec | 85 STENCIL_INDEX Stencil Stencil index 100 Stencil
|
/external/mesa3d/src/mesa/tnl_dd/ |
H A D | t_dd_tritmp.h | 265 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { 278 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { 294 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { 503 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { 517 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) { 532 if (DO_TWOSTENCIL && !HAVE_STENCIL_TWOSIDE && ctx->Stencil.TestTwoSide) {
|
/external/swiftshader/src/Renderer/ |
H A D | PixelProcessor.hpp | 136 struct Stencil struct in class:sw::PixelProcessor 315 Stencil stencil; 316 Stencil stencilCCW;
|
/external/mesa3d/src/mesa/swrast_setup/ |
H A D | ss_triangle.c | 258 (ctx->Stencil.Enabled && ctx->Stencil._TestTwoSide))
|