Home
last modified time | relevance | path

Searched refs:Stencil (Results 1 - 25 of 49) sorted by relevance

12

/third_party/mesa3d/src/mesa/main/
H A Dstencil.c28 * Stencil operations.
118 ctx->Stencil.Clear = (GLuint) s; in _mesa_ClearStencil()
133 * __struct gl_contextRec::Stencil. On change flushes the vertices and notifies
156 if (ctx->Stencil.Function[0] == frontfunc && in _mesa_StencilFuncSeparateATI()
157 ctx->Stencil.Function[1] == backfunc && in _mesa_StencilFuncSeparateATI()
158 ctx->Stencil.ValueMask[0] == mask && in _mesa_StencilFuncSeparateATI()
159 ctx->Stencil.ValueMask[1] == mask && in _mesa_StencilFuncSeparateATI()
160 ctx->Stencil.Ref[0] == ref && in _mesa_StencilFuncSeparateATI()
161 ctx->Stencil.Ref[1] == ref) in _mesa_StencilFuncSeparateATI()
165 ctx->Stencil in _mesa_StencilFuncSeparateATI()
[all...]
H A Dstencil.h3 * Stencil operations.
44 * "Stencil comparison operations and queries of <ref> clamp its value
53 GLint ref = ctx->Stencil.Ref[face]; in _mesa_get_stencil_ref()
60 return ctx->Stencil.Enabled && in _mesa_stencil_is_enabled()
67 const int face = ctx->Stencil._BackFace; in _mesa_stencil_is_two_sided()
70 (ctx->Stencil.Function[0] != ctx->Stencil.Function[face] || in _mesa_stencil_is_two_sided()
71 ctx->Stencil.FailFunc[0] != ctx->Stencil.FailFunc[face] || in _mesa_stencil_is_two_sided()
72 ctx->Stencil in _mesa_stencil_is_two_sided()
[all...]
H A Dattrib.c186 attr->Stencil = ctx->Stencil.Enabled; in _mesa_PushAttrib()
187 attr->StencilTwoSide = ctx->Stencil.TestTwoSide; in _mesa_PushAttrib()
252 memcpy(&head->Stencil, &ctx->Stencil, sizeof(head->Stencil)); in _mesa_PushAttrib()
448 TEST_AND_UPDATE(ctx->Stencil.Enabled, enable->Stencil, GL_STENCIL_TEST); in pop_enable_group()
450 TEST_AND_UPDATE(ctx->Stencil.TestTwoSide, enable->StencilTwoSide, in pop_enable_group()
1004 TEST_AND_UPDATE(ctx->Stencil in _mesa_PopAttrib()
[all...]
H A Dclear.c382 const GLuint clearSave = ctx->Stencil.Clear; in clear_bufferiv()
383 ctx->Stencil.Clear = *value; in clear_bufferiv()
385 ctx->Stencil.Clear = clearSave; in clear_bufferiv()
742 const GLuint clearStencilSave = ctx->Stencil.Clear; in clear_bufferfi()
758 ctx->Stencil.Clear = stencil; in clear_bufferfi()
765 ctx->Stencil.Clear = clearStencilSave; in clear_bufferfi()
H A Dget.c894 v->value_enum16 = ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT; in find_custom_value()
898 v->value_enum16 = ctx->Stencil.FailFunc[ctx->Stencil.ActiveFace]; in find_custom_value()
901 v->value_enum16 = ctx->Stencil.Function[ctx->Stencil.ActiveFace]; in find_custom_value()
904 v->value_enum16 = ctx->Stencil.ZFailFunc[ctx->Stencil.ActiveFace]; in find_custom_value()
907 v->value_enum16 = ctx->Stencil.ZPassFunc[ctx->Stencil.ActiveFace]; in find_custom_value()
910 v->value_int = _mesa_get_stencil_ref(ctx, ctx->Stencil in find_custom_value()
[all...]
H A Denable.c879 if (ctx->Stencil.Enabled == state) in _mesa_set_enable()
884 ctx->Stencil.Enabled = state; in _mesa_set_enable()
1119 if (ctx->Stencil.TestTwoSide == state) in _mesa_set_enable()
1124 ctx->Stencil.TestTwoSide = state; in _mesa_set_enable()
1126 ctx->Stencil._BackFace = 2; in _mesa_set_enable()
1128 ctx->Stencil._BackFace = 1; in _mesa_set_enable()
1719 return ctx->Stencil.Enabled; in _mesa_IsEnabled()
1875 return ctx->Stencil.TestTwoSide; in _mesa_IsEnabled()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_depth.c100 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 in st_update_depth_stencil_alpha()
[all...]
H A Dst_cb_clear.c307 depth_stencil.stencil[0].writemask = ctx->Stencil.WriteMask[0] & 0xff; in clear_with_quad()
308 stencil_ref.ref_value[0] = ctx->Stencil.Clear; in clear_with_quad()
399 return (ctx->Stencil.WriteMask[0] & stencilMax) == 0; in is_stencil_disabled()
412 return (ctx->Stencil.WriteMask[0] & stencilMax) != stencilMax; in is_stencil_masked()
539 ctx->Depth.Clear, ctx->Stencil.Clear); in st_Clear()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DSubresourceStorageTests.cpp296 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, tru in TEST()
[all...]
H A DEnumMaskIteratorTests.cpp24 Stencil = 4, member in dawn_native::TestAspect
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/skia/third_party/externals/dawn/src/tests/end2end/
H A DSubresourceRenderAttachmentTests.cpp26 enum class Type { Color, Depth, Stencil };
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()
H A DDepthStencilSamplingTests.cpp55 Stencil, member in DepthStencilSamplingTest::TestAspect
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}, in TEST_P()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DSubresource.cpp56 return format.aspects & Aspect::Stencil; in SelectFormatAspects()
74 case Aspect::Stencil: in GetAspectIndex()
83 // Note that we can't do a switch because compilers complain that Depth | Stencil is not in GetAspectCount()
91 ASSERT(aspects == (Aspect::Depth | Aspect::Stencil)); in GetAspectCount()
H A DFormat.cpp96 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, true, true, 2); in BuildFormatTable()
340 Aspect::Depth | Aspect::Stencil, wgpu::TextureFormat::Depth24Plus, wgpu::TextureFormat::Stencil8, true, isD24S8Supported, 2); in BuildFormatTable()
344 Aspect::Depth | Aspect::Stencil, wgpu::TextureFormat::Depth32Float, wgpu::TextureFormat::Stencil8, true, isD32S8Supported, 2); in BuildFormatTable()
H A DSubresource.h25 // - Depth/Stencil textures have Depth as Plane 0, and Stencil as Plane 1.
30 Stencil = 0x4, member in dawn_native::Aspect
H A DCommandValidation.cpp374 ASSERT(format.aspects & Aspect::Stencil); in SingleAspectUsedByImageCopyTexture()
375 return Aspect::Stencil; in SingleAspectUsedByImageCopyTexture()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DTextureGL.cpp227 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()
H A DCommandBufferGL.cpp324 case Aspect::Stencil: in ApplyBindGroup()
497 if (src.aspect & Aspect::Stencil) { in CopyTextureToTextureWithBlit()
512 case Aspect::Stencil: in CopyTextureToTextureWithBlit()
649 dst.aspect == Aspect::Stencil, in Execute()
734 case Aspect::Stencil: in Execute()
1024 if (format.aspects == (Aspect::Depth | Aspect::Stencil)) { in ExecuteRenderPass()
1028 } else if (format.aspects == Aspect::Stencil) { in ExecuteRenderPass()
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DPixelProcessor.hpp139 struct Stencil struct in sw::PixelProcessor
323 Stencil stencil;
324 Stencil stencilCCW;
/third_party/skia/third_party/externals/angle2/src/tests/gles1_conformance_tests/
H A DPrimtestTests.cpp152 TEST_P(GLES1PrimtestTest, Stencil) in TEST_P()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
H A DOutputMerger.h70 UINT Flags, FLOAT Depth, UINT8 Stencil);
/third_party/skia/src/gpu/d3d/
H A DGrD3DAttachment.cpp48 clearValue.DepthStencil.Stencil = 0; in MakeStencil()
/third_party/skia/third_party/externals/swiftshader/src/Device/
H A DPixelProcessor.hpp118 struct Stencil struct in sw::PixelProcessor
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
H A DvktShaderTileImageTests.cpp31 // - Stencil
94 Stencil
796 case TestType::Stencil: in addFS()
967 case TestType::Stencil: in checkSupport()
1613 if (m_testParam->testType == TestType::Stencil) in simulate()
1870 (m_testParam->testType == TestType::Depth) || (m_testParam->testType == TestType::Stencil) ? in rendering()
1975 { TestType::Stencil, "stencil" }, in createShaderTileImageTestVariations()
2118 else if (testTypeParam.value == TestType::Stencil || in createShaderTileImageTestVariations()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DTextureVk.cpp879 ASSERT(GetFormat().aspects & Aspect::Stencil); in GetVkAspectMask() member in dawn_native::vulkan::Aspect
880 return VulkanAspectMask(Aspect::Stencil); in GetVkAspectMask()
976 return GetFormat().aspects == (Aspect::Depth | Aspect::Stencil); in ShouldCombineDepthStencilBarriers()
1222 (Aspect::Depth | Aspect::Stencil | Aspect::CombinedDepthStencil)) { in ClearTexture()

Completed in 23 milliseconds

12