Home
last modified time | relevance | path

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

1234

/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.c379 const GLuint clearSave = ctx->Stencil.Clear; in clear_bufferiv()
380 ctx->Stencil.Clear = *value; in clear_bufferiv()
382 ctx->Stencil.Clear = clearSave; in clear_bufferiv()
739 const GLuint clearStencilSave = ctx->Stencil.Clear; in clear_bufferfi()
755 ctx->Stencil.Clear = stencil; in clear_bufferfi()
762 ctx->Stencil.Clear = clearStencilSave; in clear_bufferfi()
/external/llvm-project/clang/include/clang/Tooling/Transformer/
DStencil.h46 using Stencil = std::shared_ptr<StencilInterface>; variable
53 Stencil makeStencil(llvm::StringRef Text);
54 Stencil makeStencil(RangeSelector Selector);
55 inline Stencil makeStencil(Stencil S) { return S; } in makeStencil()
60 Stencil catVector(std::vector<Stencil> Parts);
64 template <typename... Ts> Stencil cat(Ts &&... Parts) { in cat()
76 Stencil expression(llvm::StringRef Id);
80 Stencil deref(llvm::StringRef ExprId);
86 Stencil maybeDeref(llvm::StringRef ExprId);
91 Stencil addressOf(llvm::StringRef ExprId);
[all …]
/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.c317 depth_stencil.stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in clear_with_quad()
318 stencil_ref.ref_value[0] = ctx->Stencil.Clear; in clear_with_quad()
405 return (ctx->Stencil.WriteMask[0] & stencilMax) == 0; in is_stencil_disabled()
418 return (ctx->Stencil.WriteMask[0] & stencilMax) != stencilMax; in is_stencil_masked()
542 ctx->Depth.Clear, ctx->Stencil.Clear); in st_Clear()
/external/llvm-project/clang/lib/Tooling/Transformer/
DStencil.cpp85 AccessData(StringRef BaseId, Stencil Member) in AccessData()
88 Stencil Member;
92 IfBoundData(StringRef Id, Stencil TrueStencil, Stencil FalseStencil) in IfBoundData()
96 Stencil TrueStencil;
97 Stencil FalseStencil;
101 SequenceData(std::vector<Stencil> Stencils) : Stencils(std::move(Stencils)) {} in SequenceData()
102 std::vector<Stencil> Stencils;
341 Stencil transformer::detail::makeStencil(StringRef Text) { in makeStencil()
345 Stencil transformer::detail::makeStencil(RangeSelector Selector) { in makeStencil()
349 Stencil transformer::dPrint(StringRef Id) { in dPrint()
[all …]
DCMakeLists.txt12 Stencil.cpp
/external/llvm-project/clang/unittests/Tooling/
DStencilTest.cpp81 void testError(const Stencil &Stencil, in testError() argument
102 if (auto ResultOrErr = Stencil->eval(StmtMatch->Result)) { in testError()
117 void testUnboundNodeError(const Stencil &Stencil, StringRef UnboundId) { in testUnboundNodeError() argument
118 testError(Stencil, in testUnboundNodeError()
136 auto Stencil = in TEST_F() local
139 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in TEST_F()
153 auto Stencil = cat("if(!", node("a1"), ") ", node("UNBOUND"), ";"); in TEST_F() local
154 auto ResultOrErr = Stencil->eval(StmtMatch->Result); in TEST_F()
161 void testExpr(StringRef Id, StringRef Snippet, const Stencil &Stencil, in testExpr() argument
165 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in testExpr()
[all …]
/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 …]
/external/mesa3d/src/mesa/drivers/common/
Ddriverfuncs.c259 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil.Enabled); in _mesa_init_driver_state()
289 ctx->Stencil.Function[0], in _mesa_init_driver_state()
290 ctx->Stencil.Ref[0], in _mesa_init_driver_state()
291 ctx->Stencil.ValueMask[0]); in _mesa_init_driver_state()
293 ctx->Stencil.Function[1], in _mesa_init_driver_state()
294 ctx->Stencil.Ref[1], in _mesa_init_driver_state()
295 ctx->Stencil.ValueMask[1]); in _mesa_init_driver_state()
296 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]); in _mesa_init_driver_state()
297 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]); in _mesa_init_driver_state()
299 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.c154 ctx->Stencil.WriteMask[0] : 0)); in nouveau_clear()
157 ctx->Stencil.Clear); in nouveau_clear()
/external/mesa3d/src/mesa/swrast/
Ds_stencil.c133 const GLubyte wrtmask = ctx->Stencil.WriteMask[face]; in apply_stencil_op()
218 const GLuint valueMask = ctx->Stencil.ValueMask[face]; in do_stencil_test()
231 switch (ctx->Stencil.Function[face]) { in do_stencil_test()
262 if (ctx->Stencil.FailFunc[face] != GL_KEEP) { in do_stencil_test()
263 apply_stencil_op(ctx, ctx->Stencil.FailFunc[face], face, n, stencil, in do_stencil_test()
357 const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace; in _swrast_stencil_and_ztest_span()
401 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, count, in _swrast_stencil_and_ztest_span()
422 if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span()
423 apply_stencil_op(ctx, ctx->Stencil.ZFailFunc[face], face, in _swrast_stencil_and_ztest_span()
426 if (ctx->Stencil.ZPassFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span()
[all …]
/external/mesa3d/docs/gallium/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/angle/src/libANGLE/renderer/d3d/d3d11/shaders/
DResolveDepthStencil.hlsl21 Texture2DMS<uint2> Stencil : register(t1);
43 depthStencil.g = float(Stencil.Load(coord, 0).g);
52 Stencil.GetDimensions(width, height, samples);
55 stencil.g = float(Stencil.Load(coord, 0).g);
/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/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/_extra/specs/OLD/
DMESA_packed_depth_stencil.spec85 STENCIL_INDEX Stencil Stencil index
100 Stencil
/external/mesa3d/src/intel/blorp/
DTODO8 - Depth and Stencil clears
/external/swiftshader/src/Renderer/
DPixelProcessor.hpp138 struct Stencil struct in sw::PixelProcessor
322 Stencil stencil;
323 Stencil stencilCCW;
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/Tooling/Transformer/
DBUILD.gn19 "Stencil.cpp",
/external/mesa3d/docs/relnotes/
D6.5.rst83 - Stencil: The Driver.StencilOp/Func/Mask() functions have been
84 replaced by the two-sided versions: Driver.Stencil*Separate().
/external/angle/src/tests/gles1_conformance_tests/
DPrimtestTests.cpp152 TEST_P(GLES1PrimtestTest, Stencil) in TEST_P() argument

1234