/third_party/mesa3d/src/mesa/main/ |
D | stencil.c | 116 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil() 154 if (ctx->Stencil.Function[0] == frontfunc && in _mesa_StencilFuncSeparateATI() 155 ctx->Stencil.Function[1] == backfunc && in _mesa_StencilFuncSeparateATI() 156 ctx->Stencil.ValueMask[0] == mask && in _mesa_StencilFuncSeparateATI() 157 ctx->Stencil.ValueMask[1] == mask && in _mesa_StencilFuncSeparateATI() 158 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI() 159 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI() 164 ctx->Stencil.Function[0] = frontfunc; in _mesa_StencilFuncSeparateATI() 165 ctx->Stencil.Function[1] = backfunc; in _mesa_StencilFuncSeparateATI() 166 ctx->Stencil.Ref[0] = ctx->Stencil.Ref[1] = ref; in _mesa_StencilFuncSeparateATI() [all …]
|
D | stencil.h | 102 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 …]
|
D | attrib.c | 185 attr->Stencil = ctx->Stencil.Enabled; in _mesa_PushAttrib() 186 attr->StencilTwoSide = ctx->Stencil.TestTwoSide; in _mesa_PushAttrib() 251 memcpy(&head->Stencil, &ctx->Stencil, sizeof(head->Stencil)); in _mesa_PushAttrib() 447 TEST_AND_UPDATE(ctx->Stencil.Enabled, enable->Stencil, GL_STENCIL_TEST); in pop_enable_group() 449 TEST_AND_UPDATE(ctx->Stencil.TestTwoSide, enable->StencilTwoSide, in pop_enable_group() 1145 TEST_AND_UPDATE(ctx->Stencil.Enabled, attr->Stencil.Enabled, in _mesa_PopAttrib() 1147 TEST_AND_CALL1(Stencil.Clear, ClearStencil); in _mesa_PopAttrib() 1149 TEST_AND_UPDATE(ctx->Stencil.TestTwoSide, attr->Stencil.TestTwoSide, in _mesa_PopAttrib() 1151 _mesa_ActiveStencilFaceEXT(attr->Stencil.ActiveFace in _mesa_PopAttrib() 1156 attr->Stencil.Function[0], in _mesa_PopAttrib() [all …]
|
D | clear.c | 383 const GLuint clearSave = ctx->Stencil.Clear; in clear_bufferiv() 384 ctx->Stencil.Clear = *value; in clear_bufferiv() 386 ctx->Stencil.Clear = clearSave; in clear_bufferiv() 743 const GLuint clearStencilSave = ctx->Stencil.Clear; in clear_bufferfi() 759 ctx->Stencil.Clear = stencil; in clear_bufferfi() 766 ctx->Stencil.Clear = clearStencilSave; in clear_bufferfi()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_atom_depth.c | 100 if (ctx->Stencil.Enabled && ctx->DrawBuffer->Visual.stencilBits > 0) { in st_update_depth_stencil_alpha() 102 dsa->stencil[0].func = func_to_gallium(ctx->Stencil.Function[0]); in st_update_depth_stencil_alpha() 103 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); in st_update_depth_stencil_alpha() 104 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]); in st_update_depth_stencil_alpha() 105 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]); in st_update_depth_stencil_alpha() 106 dsa->stencil[0].valuemask = ctx->Stencil.ValueMask[0] & 0xff; in st_update_depth_stencil_alpha() 107 dsa->stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in st_update_depth_stencil_alpha() 111 const GLuint back = ctx->Stencil._BackFace; in st_update_depth_stencil_alpha() 113 dsa->stencil[1].func = func_to_gallium(ctx->Stencil.Function[back]); in st_update_depth_stencil_alpha() 114 dsa->stencil[1].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[back]); in st_update_depth_stencil_alpha() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | SubresourceStorageTests.cpp | 296 SubresourceStorage<int> s(Aspect::Depth | Aspect::Stencil, 5, 3); in TEST() 297 FakeStorage<int> f(Aspect::Depth | Aspect::Stencil, 5, 3); in TEST() 299 SubresourceRange range = SubresourceRange::MakeSingle(Aspect::Stencil, 1, 2); in TEST() 303 CheckAspectCompressed(s, Aspect::Stencil, false); in TEST() 304 CheckLayerCompressed(s, Aspect::Stencil, 0, true); in TEST() 305 CheckLayerCompressed(s, Aspect::Stencil, 1, false); in TEST() 306 CheckLayerCompressed(s, Aspect::Stencil, 2, true); in TEST() 313 SubresourceStorage<int> s(Aspect::Depth | Aspect::Stencil, kLayers, kLevels); in TEST() 314 FakeStorage<int> f(Aspect::Depth | Aspect::Stencil, kLayers, kLevels); in TEST() 328 CheckAspectCompressed(s, Aspect::Stencil, true); in TEST() [all …]
|
D | EnumMaskIteratorTests.cpp | 24 Stencil = 4, enumerator 55 TestAspect expected[] = {TestAspect::Color, TestAspect::Depth, TestAspect::Stencil}; in TEST() 57 TestAspect aspects = TestAspect::Color | TestAspect::Depth | TestAspect::Stencil; in TEST() 64 TestAspect expected[] = {TestAspect::Color, TestAspect::Stencil}; in TEST() 66 TestAspect aspects = TestAspect::Stencil | TestAspect::Color; in TEST()
|
/third_party/mesa3d/src/mesa/drivers/dri/i915/ |
D | i915_state.c | 69 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 …]
|
/third_party/mesa3d/src/mesa/drivers/common/ |
D | driverfuncs.c | 262 ctx->Driver.Enable(ctx, GL_STENCIL_TEST, ctx->Stencil.Enabled); in _mesa_init_driver_state() 292 ctx->Stencil.Function[0], in _mesa_init_driver_state() 293 ctx->Stencil.Ref[0], in _mesa_init_driver_state() 294 ctx->Stencil.ValueMask[0]); in _mesa_init_driver_state() 296 ctx->Stencil.Function[1], in _mesa_init_driver_state() 297 ctx->Stencil.Ref[1], in _mesa_init_driver_state() 298 ctx->Stencil.ValueMask[1]); in _mesa_init_driver_state() 299 ctx->Driver.StencilMaskSeparate(ctx, GL_FRONT, ctx->Stencil.WriteMask[0]); in _mesa_init_driver_state() 300 ctx->Driver.StencilMaskSeparate(ctx, GL_BACK, ctx->Stencil.WriteMask[1]); in _mesa_init_driver_state() 302 ctx->Stencil.FailFunc[0], in _mesa_init_driver_state() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv04_state_raster.c | 175 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()
|
D | nv10_state_raster.c | 151 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()
|
/third_party/mesa3d/src/mesa/swrast/ |
D | s_stencil.c | 133 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() 417 const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace; in _swrast_stencil_and_ztest_span() 461 apply_stencil_op(ctx, ctx->Stencil.ZPassFunc[face], face, count, in _swrast_stencil_and_ztest_span() 482 if (ctx->Stencil.ZFailFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span() 483 apply_stencil_op(ctx, ctx->Stencil.ZFailFunc[face], face, in _swrast_stencil_and_ztest_span() 486 if (ctx->Stencil.ZPassFunc[face] != GL_KEEP) { in _swrast_stencil_and_ztest_span() [all …]
|
/third_party/mesa3d/docs/gallium/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
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | SubresourceRenderAttachmentTests.cpp | 26 enum class Type { Color, Depth, Stencil }; enumerator 62 case Type::Stencil: { in DoSingleTest() 92 case Type::Stencil: { in DoSingleTest() 114 case Type::Stencil: in DoTest() 164 DoTest(Type::Stencil); in TEST_P()
|
D | DepthStencilSamplingTests.cpp | 55 Stencil, enumerator 96 case TestAspect::Stencil: in GenerateSamplingShader() 285 case TestAspect::Stencil: in DoSamplingTestImpl() 303 case TestAspect::Stencil: in DoSamplingTestImpl() 340 case TestAspect::Stencil: in DoSamplingTestImpl() 358 case TestAspect::Stencil: in DoSamplingTestImpl() 442 CreateSamplingRenderPipeline({TestAspect::Stencil}, {0, 1, 2, 3}), in DoSamplingExtraStencilComponentsRenderTest() 453 CreateSamplingComputePipeline({TestAspect::Stencil}, {0, 1, 2, 3}), in DoSamplingExtraStencilComponentsComputeTest() 607 DoSamplingTest(TestAspect::Stencil, CreateSamplingRenderPipeline({TestAspect::Stencil}, 0), in TEST_P() 610 DoSamplingTest(TestAspect::Stencil, CreateSamplingComputePipeline({TestAspect::Stencil}, 0), in TEST_P() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/ |
D | ResolveDepthStencil.hlsl | 21 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);
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/ |
D | ResolveDepthStencil.hlsl | 21 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);
|
/third_party/openGLES/extensions/ATI/ |
D | ATI_separate_stencil.txt | 140 Stencil func sets both front and back to the same test." 162 … STENCIL_BACK_FUNC_ATI Z8 GetIntegerv ALWAYS 4.1.4 Stencil-buffer 163 … STENCIL_BACK_FAIL_ATI Z6 GetIntegerv KEEP 4.1.4 Stencil-buffer 164 … STENCIL_BACK_PASS_DEPTH_FAIL_ATI Z6 GetIntegerv KEEP 4.1.4 Stencil-buffer 165 … STENCIL_BACK_PASS_DEPTH_PASS_ATI Z6 GetIntegerv KEEP 4.1.4 Stencil-buffer 166 … STENCIL_OP_SEPARATE_FACE_ATI B IsEnabled FALSE 4.1.4 Stencil-buffer
|
/third_party/skia/third_party/externals/opengl-registry/extensions/ATI/ |
D | ATI_separate_stencil.txt | 140 Stencil func sets both front and back to the same test." 162 … STENCIL_BACK_FUNC_ATI Z8 GetIntegerv ALWAYS 4.1.4 Stencil-buffer 163 … STENCIL_BACK_FAIL_ATI Z6 GetIntegerv KEEP 4.1.4 Stencil-buffer 164 … STENCIL_BACK_PASS_DEPTH_FAIL_ATI Z6 GetIntegerv KEEP 4.1.4 Stencil-buffer 165 … STENCIL_BACK_PASS_DEPTH_PASS_ATI Z6 GetIntegerv KEEP 4.1.4 Stencil-buffer 166 … STENCIL_OP_SEPARATE_FACE_ATI B IsEnabled FALSE 4.1.4 Stencil-buffer
|
/third_party/vk-gl-cts/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
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | Subresource.cpp | 56 return format.aspects & Aspect::Stencil; in SelectFormatAspects() 74 case Aspect::Stencil: in GetAspectIndex() 91 ASSERT(aspects == (Aspect::Depth | Aspect::Stencil)); in GetAspectCount()
|
D | Format.cpp | 96 return (aspects & Aspect::Stencil) != 0; in HasStencil() 100 return (aspects & (Aspect::Depth | Aspect::Stencil)) != 0; in HasDepthOrStencil() 226 internalFormat.aspects = Aspect::Stencil; in BuildFormatTable() 337 …Aspect::Depth | Aspect::Stencil, wgpu::TextureFormat::Depth24Plus, wgpu::TextureFormat::Stencil8, … in BuildFormatTable() 340 …Aspect::Depth | Aspect::Stencil, wgpu::TextureFormat::Depth24Plus, wgpu::TextureFormat::Stencil8, … in BuildFormatTable() 344 …Aspect::Depth | Aspect::Stencil, wgpu::TextureFormat::Depth32Float, wgpu::TextureFormat::Stencil8,… in BuildFormatTable()
|
/third_party/openGLES/extensions/EXT/ |
D | EXT_stencil_two_side.txt | 284 -- Section 4.1.5 "Stencil test" 297 Stencil testing may operate in a two-sided mode. Two-sided stencil 324 where face is either FRONT or BACK. Stencil commands (StencilFunc, 353 -- Section 4.3.1 "Writing to the Stencil Buffer or to the Depth and 354 Stencil Buffers" 432 and the EXT_stencil_two_side back stencil state set. Stencil tests and 461 STENCIL_FUNC 2xZ8 GetIntegerv ALWAYS Stencil function 4.1.4 stencil-bu… 462 STENCIL_VALUE_MASK 2xZ+ GetIntegerv 1's Stencil mask 4.1.4 stencil-bu… 463 STENCIL_REF 2xZ+ GetIntegerv 0 Stencil reference 4.1.4 stencil-bu… 465 STENCIL_FAIL 2xZ6 GetIntegerv KEEP Stencil fail action 4.1.4 stencil-bu… [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/ |
D | EXT_stencil_two_side.txt | 284 -- Section 4.1.5 "Stencil test" 297 Stencil testing may operate in a two-sided mode. Two-sided stencil 324 where face is either FRONT or BACK. Stencil commands (StencilFunc, 353 -- Section 4.3.1 "Writing to the Stencil Buffer or to the Depth and 354 Stencil Buffers" 432 and the EXT_stencil_two_side back stencil state set. Stencil tests and 461 STENCIL_FUNC 2xZ8 GetIntegerv ALWAYS Stencil function 4.1.4 stencil-bu… 462 STENCIL_VALUE_MASK 2xZ+ GetIntegerv 1's Stencil mask 4.1.4 stencil-bu… 463 STENCIL_REF 2xZ+ GetIntegerv 0 Stencil reference 4.1.4 stencil-bu… 465 STENCIL_FAIL 2xZ6 GetIntegerv KEEP Stencil fail action 4.1.4 stencil-bu… [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | TextureGL.cpp | 227 if ((range.aspects & (Aspect::Depth | Aspect::Stencil)) != 0) { in ClearTexture() 233 if (range.aspects & Aspect::Stencil) { in ClearTexture() 238 if (aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture() 242 } else if (aspects == Aspect::Stencil) { in ClearTexture() 254 if (range.aspects == (Aspect::Depth | Aspect::Stencil)) { in ClearTexture() 258 } else if (range.aspects == Aspect::Stencil) { in ClearTexture()
|