Home
last modified time | relevance | path

Searched refs:tess (Results 1 – 25 of 138) sorted by relevance

123456

/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_pipeline.c663 assert(tcs_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
664 tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
665 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
666 tes_info->tess.tcs_vertices_out |= tcs_info->tess.tcs_vertices_out; in merge_tess_info()
668 assert(tcs_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
669 tes_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
670 tcs_info->tess.spacing == tes_info->tess.spacing); in merge_tess_info()
671 tes_info->tess.spacing |= tcs_info->tess.spacing; in merge_tess_info()
673 assert(tcs_info->tess.primitive_mode == 0 || in merge_tess_info()
674 tes_info->tess.primitive_mode == 0 || in merge_tess_info()
[all …]
/external/skia/src/gpu/ganesh/ops/
DAALinearizingConvexPathRenderer.cpp43 void extract_verts(const GrAAConvexTessellator& tess, in extract_verts() argument
50 for (int i = 0; i < tess.numPts(); ++i) { in extract_verts()
53 localCoordsMatrix->mapPoints(&lc, &tess.point(i), 1); in extract_verts()
55 verts << tess.point(i) << color << VertexWriter::If(localCoordsMatrix, lc) in extract_verts()
56 << tess.coverage(i); in extract_verts()
59 for (int i = 0; i < tess.numIndices(); ++i) { in extract_verts()
60 idxs[i] = tess.index(i) + firstIndex; in extract_verts()
225 GrAAConvexTessellator tess(args.fStyle, args.fStrokeWidth, in onPrepareDraws() local
228 if (!tess.tessellate(args.fViewMatrix, args.fPath)) { in onPrepareDraws()
232 int currentVertices = tess.numPts(); in onPrepareDraws()
[all …]
DTessellationPathRenderer.cpp27 using namespace skgpu::tess;
136 float n4 = wangs_formula::worst_case_cubic_p4(tess::kPrecision, in onDrawPath()
139 if (n4 > tess::kMaxSegmentsPerCurve_p4) { in onDrawPath()
159 path = PreChopPathCurves(tess::kPrecision, path, *args.fViewMatrix, viewport); in onDrawPath()
228 float n4 = wangs_formula::worst_case_cubic_p4(tess::kPrecision, in onStencilPath()
231 if (n4 > tess::kMaxSegmentsPerCurve_p4) { in onStencilPath()
233 path = PreChopPathCurves(tess::kPrecision, path, *args.fViewMatrix, viewport); in onStencilPath()
/external/skia/src/gpu/ganesh/tessellate/
DVertexChunkPatchAllocator.h25 tess::LinearTolerances* worstCaseTolerances, in VertexChunkPatchAllocator()
32 VertexWriter append(const tess::LinearTolerances& tolerances) { in append()
38 tess::LinearTolerances* fWorstCaseTolerances;
DGrStrokeTessellationShader.cpp84 using skgpu::tess::FixedCountStrokes;
191 args.fVertBuilder->defineConstant("PRECISION", skgpu::tess::kPrecision); in onEmitCode()
261 skgpu::tess::kCubicCurveType).c_str()); in onEmitCode()
359 skgpu::tess::NumFixedEdgesInJoin(joinType)); in onEmitCode()
619 "}", skgpu::tess::kMaxResolveLevel /* Parametric/radial sort loop count. */); in emitTessellationCode()
670 float numRadialSegmentsPerRadian = skgpu::tess::CalcNumRadialSegmentsPerRadian( in setData()
675 skgpu::tess::GetJoinType(stroke), // JOIN_TYPE in setData()
DGrPathTessellationShader.cpp22 using namespace skgpu::tess;
136 v->defineConstant("PRECISION", skgpu::tess::kPrecision); in makeProgramImpl()
138 (float)skgpu::tess::kMaxResolveLevel); in makeProgramImpl()
140 (float)(skgpu::tess::kMaxParametricSegments)); in makeProgramImpl()
146 "}", skgpu::tess::kCubicCurveType).c_str()); in makeProgramImpl()
150 "}", skgpu::tess::kTriangularConicCurveType).c_str()); in makeProgramImpl()
/external/skia/src/gpu/graphite/render/
DDynamicInstancesPatchAllocator.h41 VertexWriter append(const tess::LinearTolerances& tolerances) { in append()
48 void operator <<(const tess::LinearTolerances& t) { fTolerances.accumulate(t); }
50 tess::LinearTolerances fTolerances;
/external/skia/src/gpu/ganesh/geometry/
DGrAAConvexTessellator.cpp860 void GrAAConvexTessellator::Ring::init(const GrAAConvexTessellator& tess) { in init() argument
861 this->computeNormals(tess); in init()
862 this->computeBisectors(tess); in init()
874 void GrAAConvexTessellator::Ring::computeNormals(const GrAAConvexTessellator& tess) { in computeNormals() argument
878 fPts[cur].fNorm = tess.point(fPts[next].fIndex) - tess.point(fPts[cur].fIndex); in computeNormals()
880 fPts[cur].fNorm = SkPointPriv::MakeOrthog(fPts[cur].fNorm, tess.side()); in computeNormals()
884 void GrAAConvexTessellator::Ring::computeBisectors(const GrAAConvexTessellator& tess) { in computeBisectors() argument
890 SkPointPriv::MakeOrthog(fPts[cur].fNorm, (SkPointPriv::Side)-tess.side()) + in computeBisectors()
891 SkPointPriv::MakeOrthog(fPts[prev].fNorm, tess.side()); in computeBisectors()
902 bool GrAAConvexTessellator::Ring::isConvex(const GrAAConvexTessellator& tess) const { in isConvex()
[all …]
DGrAAConvexTessellator.h150 void init(const GrAAConvexTessellator& tess);
160 void draw(SkCanvas* canvas, const GrAAConvexTessellator& tess) const;
165 void computeBisectors(const GrAAConvexTessellator& tess);
167 SkDEBUGCODE(bool isConvex(const GrAAConvexTessellator& tess) const;)
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_tcs.c189 key->tes_primitive_mode = tep->program.info.tess.primitive_mode; in brw_tcs_populate_key()
191 tep->program.info.tess.primitive_mode == GL_QUADS && in brw_tcs_populate_key()
192 tep->program.info.tess.spacing == TESS_SPACING_EQUAL; in brw_tcs_populate_key()
253 key->input_vertices = prog->info.tess.tcs_vertices_out; in brw_tcs_populate_default_key()
256 key->tes_primitive_mode = tes->Program->info.tess.primitive_mode; in brw_tcs_populate_default_key()
258 tes->Program->info.tess.primitive_mode == GL_QUADS && in brw_tcs_populate_default_key()
259 tes->Program->info.tess.spacing == TESS_SPACING_EQUAL; in brw_tcs_populate_default_key()
/external/skia/tools/viewer/
DPathTessellatorsSlide.cpp90 for (tess::PathMiddleOutFanIter it(fPath); !it.done();) { in onPrepare()
100 auto* tess = PathCurveTessellator::Make(alloc, shaderCaps.fInfinitySupport); in onPrepare() local
101 tess->prepareWithTriangles(flushState, shaderMatrix, &triangles, pathList, in onPrepare()
103 fTessellator = tess; in onPrepare()
105 auto* tess = PathCurveTessellator::Make(alloc, shaderCaps.fInfinitySupport); in onPrepare()
106 tess->prepareWithTriangles(flushState, shaderMatrix, nullptr, pathList, in onPrepare()
108 fTessellator = tess; in onPrepare()
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_tcs.cpp86 if (nir->info.tess.tcs_vertices_out % 2) { in emit_prolog()
88 brw_imm_ud(nir->info.tess.tcs_vertices_out), in emit_prolog()
103 if (nir->info.tess.tcs_vertices_out % 2) { in emit_thread_end()
398 nir->info.tess.tcs_vertices_out <= (devinfo->gen >= 12 ? 32 : 16) && in brw_compile_tcs()
407 prog_data->instances = nir->info.tess.tcs_vertices_out; in brw_compile_tcs()
413 DIV_ROUND_UP(nir->info.tess.tcs_vertices_out, verts_per_thread); in brw_compile_tcs()
433 output_size_bytes += nir->info.tess.tcs_vertices_out * in brw_compile_tcs()
Dbrw_shader.cpp1327 (enum brw_tess_partitioning) (nir->info.tess.spacing - 1); in brw_compile_tes()
1329 switch (nir->info.tess.primitive_mode) { in brw_compile_tes()
1343 if (nir->info.tess.point_mode) { in brw_compile_tes()
1345 } else if (nir->info.tess.primitive_mode == GL_ISOLINES) { in brw_compile_tes()
1350 nir->info.tess.ccw ? BRW_TESS_OUTPUT_TOPOLOGY_TRI_CW in brw_compile_tes()
/external/skia/bench/
DTessellateBench.cpp139 auto tess = PathCurveTessellator::Make(&arena, variable
141 tess->prepare(fTarget.get(),
151 auto tess = PathWedgeTessellator::Make(&arena, variable
153 tess->prepare(fTarget.get(),
233 tess::AffineMatrix m(gAlmostIdentity);
234 for (tess::PathMiddleOutFanIter it(fPath); !it.done();) {
309 using PatchAttribs = tess::PatchAttribs;
/external/skia/src/gpu/ganesh/
DPathRendererChain.cpp62 auto tess = sk_make_sp<TessellationPathRenderer>(); in PathRendererChain() local
63 fTessellationPathRenderer = tess.get(); in PathRendererChain()
64 fChain.push_back(std::move(tess)); in PathRendererChain()
/external/mesa3d/src/intel/vulkan/
Danv_pipeline.c853 assert(tcs_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
854 tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
855 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
856 tes_info->tess.tcs_vertices_out |= tcs_info->tess.tcs_vertices_out; in merge_tess_info()
858 assert(tcs_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
859 tes_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
860 tcs_info->tess.spacing == tes_info->tess.spacing); in merge_tess_info()
861 tes_info->tess.spacing |= tcs_info->tess.spacing; in merge_tess_info()
863 assert(tcs_info->tess.primitive_mode == 0 || in merge_tess_info()
864 tes_info->tess.primitive_mode == 0 || in merge_tess_info()
[all …]
/external/deqp-deps/SPIRV-Tools/test/opt/
Dinterface_var_sroa_test.cpp265 OpEntryPoint TessellationEvaluation %tess "tess" %x %y in TEST_F()
369 OpEntryPoint TessellationControl %tess "tess" %x %y %z in TEST_F()
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/opt/
Dinterface_var_sroa_test.cpp263 OpEntryPoint TessellationEvaluation %tess "tess" %x %y in TEST_F()
367 OpEntryPoint TessellationControl %tess "tess" %x %y %z in TEST_F()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dinterface_var_sroa_test.cpp265 OpEntryPoint TessellationEvaluation %tess "tess" %x %y in TEST_F()
369 OpEntryPoint TessellationControl %tess "tess" %x %y %z in TEST_F()
/external/rust/crates/vulkano/src/pipeline/graphics_pipeline/
Dbuilder.rs257 if let Some(ref tess) = self.tessellation { in with_pipeline_layout()
259 let shader = &tess.tessellation_control_shader.0; in with_pipeline_layout()
267 let shader = &tess.tessellation_evaluation_shader.0; in with_pipeline_layout()
314 let tess_shader_specialization = if let Some(ref tess) = self.tessellation { in with_pipeline_layout()
316 let shader = &tess.tessellation_control_shader; in with_pipeline_layout()
331 let shader = &tess.tessellation_evaluation_shader; in with_pipeline_layout()
408 if let Some(ref tess) = self.tessellation { in with_pipeline_layout()
415 match tess.tessellation_control_shader.0.ty() { in with_pipeline_layout()
420 match tess.tessellation_evaluation_shader.0.ty() { in with_pipeline_layout()
428 module: tess in with_pipeline_layout()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_gather_info.c121 shader->info.tess.tcs_cross_invocation_inputs_read |= bitfield; in set_io_mask()
140 shader->info.tess.tcs_cross_invocation_outputs_read |= bitfield; in set_io_mask()
403 shader->info.tess.tcs_cross_invocation_inputs_read |= slot_mask; in gather_intrinsic_info()
422 shader->info.tess.tcs_cross_invocation_outputs_read |= slot_mask; in gather_intrinsic_info()
824 shader->info.tess.tcs_cross_invocation_inputs_read = 0; in nir_shader_gather_info()
825 shader->info.tess.tcs_cross_invocation_outputs_read = 0; in nir_shader_gather_info()
/external/mesa3d/src/gallium/auxiliary/nir/
Dnir_to_tgsi_info.c432 nir->info.tess.tcs_vertices_out; in nir_tgsi_scan_shader()
436 if (nir->info.tess.primitive_mode == GL_ISOLINES) in nir_tgsi_scan_shader()
439 info->properties[TGSI_PROPERTY_TES_PRIM_MODE] = nir->info.tess.primitive_mode; in nir_tgsi_scan_shader()
447 info->properties[TGSI_PROPERTY_TES_SPACING] = (nir->info.tess.spacing + 1) % 3; in nir_tgsi_scan_shader()
448 info->properties[TGSI_PROPERTY_TES_VERTEX_ORDER_CW] = !nir->info.tess.ccw; in nir_tgsi_scan_shader()
449 info->properties[TGSI_PROPERTY_TES_POINT_MODE] = nir->info.tess.point_mode; in nir_tgsi_scan_shader()
/external/mesa3d/src/compiler/glsl/
Dlinker.cpp1870 gl_prog->info.tess.tcs_vertices_out = 0; in link_tcs_out_layout_qualifiers()
1886 if (gl_prog->info.tess.tcs_vertices_out != 0 && in link_tcs_out_layout_qualifiers()
1887 gl_prog->info.tess.tcs_vertices_out != in link_tcs_out_layout_qualifiers()
1891 gl_prog->info.tess.tcs_vertices_out, in link_tcs_out_layout_qualifiers()
1895 gl_prog->info.tess.tcs_vertices_out = in link_tcs_out_layout_qualifiers()
1904 if (gl_prog->info.tess.tcs_vertices_out == 0) { in link_tcs_out_layout_qualifiers()
1930 gl_prog->info.tess.primitive_mode = PRIM_UNKNOWN; in link_tes_in_layout_qualifiers()
1931 gl_prog->info.tess.spacing = TESS_SPACING_UNSPECIFIED; in link_tes_in_layout_qualifiers()
1951 if (gl_prog->info.tess.primitive_mode != PRIM_UNKNOWN && in link_tes_in_layout_qualifiers()
1952 gl_prog->info.tess.primitive_mode != in link_tes_in_layout_qualifiers()
[all …]
/external/skia/tests/
DPreChopPathCurvesTest.cpp13 namespace skgpu::tess { namespace
/external/mesa3d/src/amd/vulkan/
Dradv_shader_info.c668 info->tes.primitive_mode = nir->info.tess.primitive_mode; in radv_nir_shader_info_pass()
669 info->tes.spacing = nir->info.tess.spacing; in radv_nir_shader_info_pass()
670 info->tes.ccw = nir->info.tess.ccw; in radv_nir_shader_info_pass()
671 info->tes.point_mode = nir->info.tess.point_mode; in radv_nir_shader_info_pass()
678 info->tcs.tcs_vertices_out = nir->info.tess.tcs_vertices_out; in radv_nir_shader_info_pass()

123456