Home
last modified time | relevance | path

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

123456

/third_party/ffmpeg/libavfilter/
Dvf_ocr.c37 TessBaseAPI *tess; member
55 s->tess = TessBaseAPICreate(); in init()
56 if (TessBaseAPIInit3(s->tess, s->datapath, s->language) == -1) { in init()
61 if (!TessBaseAPISetVariable(s->tess, "tessedit_char_whitelist", s->whitelist)) { in init()
66 if (!TessBaseAPISetVariable(s->tess, "tessedit_char_blacklist", s->blacklist)) { in init()
105 result = TessBaseAPIRect(s->tess, in->data[0], 1, in filter_frame()
107 confs = TessBaseAPIAllWordConfidences(s->tess); in filter_frame()
126 TessBaseAPIEnd(s->tess); in uninit()
127 TessBaseAPIDelete(s->tess); in uninit()
/third_party/skia/src/gpu/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 …]
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_pipeline.c683 assert(tcs_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
684 tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
685 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
686 tes_info->tess.tcs_vertices_out |= tcs_info->tess.tcs_vertices_out; in merge_tess_info()
688 assert(tcs_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
689 tes_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
690 tcs_info->tess.spacing == tes_info->tess.spacing); in merge_tess_info()
691 tes_info->tess.spacing |= tcs_info->tess.spacing; in merge_tess_info()
693 assert(tcs_info->tess.primitive_mode == 0 || in merge_tess_info()
694 tes_info->tess.primitive_mode == 0 || in merge_tess_info()
[all …]
/third_party/flutter/skia/src/gpu/ops/
DGrAALinearizingConvexPathRenderer.cpp84 static void extract_verts(const GrAAConvexTessellator& tess, in extract_verts() argument
90 for (int i = 0; i < tess.numPts(); ++i) { in extract_verts()
91 verts.write(tess.point(i), color, tess.coverage(i)); in extract_verts()
94 for (int i = 0; i < tess.numIndices(); ++i) { in extract_verts()
95 idxs[i] = tess.index(i) + firstIndex; in extract_verts()
252 GrAAConvexTessellator tess(args.fStyle, args.fStrokeWidth, in onPrepareDraws() local
255 if (!tess.tessellate(args.fViewMatrix, args.fPath)) { in onPrepareDraws()
259 int currentVertices = tess.numPts(); in onPrepareDraws()
277 int currentIndices = tess.numIndices(); in onPrepareDraws()
288 extract_verts(tess, vertices + vertexStride * vertexCount, in onPrepareDraws()
DGrAAConvexTessellator.cpp841 void GrAAConvexTessellator::Ring::init(const GrAAConvexTessellator& tess) { in init() argument
842 this->computeNormals(tess); in init()
843 this->computeBisectors(tess); in init()
855 void GrAAConvexTessellator::Ring::computeNormals(const GrAAConvexTessellator& tess) { in computeNormals() argument
859 fPts[cur].fNorm = tess.point(fPts[next].fIndex) - tess.point(fPts[cur].fIndex); in computeNormals()
861 fPts[cur].fNorm = SkPointPriv::MakeOrthog(fPts[cur].fNorm, tess.side()); in computeNormals()
865 void GrAAConvexTessellator::Ring::computeBisectors(const GrAAConvexTessellator& tess) { in computeBisectors() argument
871 SkPointPriv::MakeOrthog(fPts[cur].fNorm, (SkPointPriv::Side)-tess.side()) + in computeBisectors()
872 SkPointPriv::MakeOrthog(fPts[prev].fNorm, tess.side()); in computeBisectors()
883 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;)
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_tcs.c191 key->tes_primitive_mode = tep->program.info.tess.primitive_mode; in brw_tcs_populate_key()
193 tep->program.info.tess.primitive_mode == GL_QUADS && in brw_tcs_populate_key()
194 tep->program.info.tess.spacing == TESS_SPACING_EQUAL; in brw_tcs_populate_key()
255 key->input_vertices = prog->info.tess.tcs_vertices_out; in brw_tcs_populate_default_key()
258 key->tes_primitive_mode = tes->Program->info.tess.primitive_mode; in brw_tcs_populate_default_key()
260 tes->Program->info.tess.primitive_mode == GL_QUADS && in brw_tcs_populate_default_key()
261 tes->Program->info.tess.spacing == TESS_SPACING_EQUAL; in brw_tcs_populate_default_key()
/third_party/skia/src/gpu/geometry/
DGrAAConvexTessellator.cpp850 void GrAAConvexTessellator::Ring::init(const GrAAConvexTessellator& tess) { in init() argument
851 this->computeNormals(tess); in init()
852 this->computeBisectors(tess); in init()
864 void GrAAConvexTessellator::Ring::computeNormals(const GrAAConvexTessellator& tess) { in computeNormals() argument
868 fPts[cur].fNorm = tess.point(fPts[next].fIndex) - tess.point(fPts[cur].fIndex); in computeNormals()
870 fPts[cur].fNorm = SkPointPriv::MakeOrthog(fPts[cur].fNorm, tess.side()); in computeNormals()
874 void GrAAConvexTessellator::Ring::computeBisectors(const GrAAConvexTessellator& tess) { in computeBisectors() argument
880 SkPointPriv::MakeOrthog(fPts[cur].fNorm, (SkPointPriv::Side)-tess.side()) + in computeBisectors()
881 SkPointPriv::MakeOrthog(fPts[prev].fNorm, tess.side()); in computeBisectors()
892 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;)
/third_party/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()
402 nir->info.tess.tcs_vertices_out <= (devinfo->ver >= 12 ? 32 : 16) && in brw_compile_tcs()
411 prog_data->instances = nir->info.tess.tcs_vertices_out; in brw_compile_tcs()
417 DIV_ROUND_UP(nir->info.tess.tcs_vertices_out, verts_per_thread); in brw_compile_tcs()
437 output_size_bytes += nir->info.tess.tcs_vertices_out * in brw_compile_tcs()
Dbrw_shader.cpp1388 (enum brw_tess_partitioning) (nir->info.tess.spacing - 1); in brw_compile_tes()
1390 switch (nir->info.tess.primitive_mode) { in brw_compile_tes()
1404 if (nir->info.tess.point_mode) { in brw_compile_tes()
1406 } else if (nir->info.tess.primitive_mode == GL_ISOLINES) { in brw_compile_tes()
1411 nir->info.tess.ccw ? BRW_TESS_OUTPUT_TOPOLOGY_TRI_CW in brw_compile_tes()
/third_party/skia/src/gpu/v1/
DPathRendererChain.cpp60 auto tess = sk_make_sp<TessellationPathRenderer>(); in PathRendererChain() local
61 fTessellationPathRenderer = tess.get(); in PathRendererChain()
62 fChain.push_back(std::move(tess)); in PathRendererChain()
/third_party/mesa3d/src/mesa/main/
Ddraw_validate.c316 if (tes->info.tess.point_mode) { in _mesa_update_valid_to_render_state()
319 } else if (tes->info.tess.primitive_mode == GL_ISOLINES) { in _mesa_update_valid_to_render_state()
389 if (tes->info.tess.point_mode) in _mesa_update_valid_to_render_state()
391 else if (tes->info.tess.primitive_mode == GL_ISOLINES) in _mesa_update_valid_to_render_state()
/third_party/mesa3d/src/intel/vulkan/
Danv_pipeline.c958 assert(tcs_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
959 tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
960 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
961 tes_info->tess.tcs_vertices_out |= tcs_info->tess.tcs_vertices_out; in merge_tess_info()
963 assert(tcs_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
964 tes_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
965 tcs_info->tess.spacing == tes_info->tess.spacing); in merge_tess_info()
966 tes_info->tess.spacing |= tcs_info->tess.spacing; in merge_tess_info()
968 assert(tcs_info->tess.primitive_mode == 0 || in merge_tess_info()
969 tes_info->tess.primitive_mode == 0 || in merge_tess_info()
[all …]
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_tess_io_to_mem.c296 … unsigned pervertex_output_patch_size = b->shader->info.tess.tcs_vertices_out * output_vertex_size; in hs_output_lds_offset()
330 ? nir_imm_int(b, b->shader->info.tess.tcs_vertices_out) in hs_per_vertex_output_vmem_offset()
353 ? nir_imm_int(b, b->shader->info.tess.tcs_vertices_out) in hs_per_patch_output_vmem_offset()
477 switch (shader->info.tess.primitive_mode) { in hs_emit_write_tess_factors()
544 if (shader->info.tess.primitive_mode == GL_ISOLINES) { in hs_emit_write_tess_factors()
548 } else if (shader->info.tess.primitive_mode == GL_TRIANGLES) { in hs_emit_write_tess_factors()
/third_party/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()
/third_party/skia/bench/
DTessellateBench.cpp143 auto tess = PathCurveTessellator::Make(&arena, variable
145 tess->prepare(fTarget.get(),
157 auto tess = PathWedgeTessellator::Make(&arena, variable
159 tess->prepare(fTarget.get(),
/third_party/mesa3d/src/amd/vulkan/
Dradv_pipeline.c1970 if (tes->info.tess.point_mode) in radv_get_num_input_vertices()
1972 if (tes->info.tess.primitive_mode == GL_ISOLINES) in radv_get_num_input_vertices()
2402 (info->stage == MESA_SHADER_TESS_EVAL && info->tess.point_mode) || in radv_link_shaders()
2669 const VkPipelineTessellationStateCreateInfo *tess = in radv_generate_graphics_pipeline_key() local
2671 if (tess) in radv_generate_graphics_pipeline_key()
2672 key.tcs.tess_input_vertices = tess->patchControlPoints; in radv_generate_graphics_pipeline_key()
2755 num_vertices_per_prim = nir[es_stage]->info.tess.point_mode ? 1 in radv_determine_ngg_settings()
2756 : nir[es_stage]->info.tess.primitive_mode == GL_ISOLINES ? 2 in radv_determine_ngg_settings()
3014 assert(tcs_info->tess.tcs_vertices_out == 0 || tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
3015 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
[all …]
Dradv_shader_info.c729 info->tes.primitive_mode = nir->info.tess.primitive_mode; in radv_nir_shader_info_pass()
730 info->tes.spacing = nir->info.tess.spacing; in radv_nir_shader_info_pass()
731 info->tes.ccw = nir->info.tess.ccw; in radv_nir_shader_info_pass()
732 info->tes.point_mode = nir->info.tess.point_mode; in radv_nir_shader_info_pass()
735 info->tcs.tcs_vertices_out = nir->info.tess.tcs_vertices_out; in radv_nir_shader_info_pass()
/third_party/mesa3d/src/compiler/glsl/
Dlinker.cpp1904 gl_prog->info.tess.tcs_vertices_out = 0; in link_tcs_out_layout_qualifiers()
1920 if (gl_prog->info.tess.tcs_vertices_out != 0 && in link_tcs_out_layout_qualifiers()
1921 gl_prog->info.tess.tcs_vertices_out != in link_tcs_out_layout_qualifiers()
1925 gl_prog->info.tess.tcs_vertices_out, in link_tcs_out_layout_qualifiers()
1929 gl_prog->info.tess.tcs_vertices_out = in link_tcs_out_layout_qualifiers()
1938 if (gl_prog->info.tess.tcs_vertices_out == 0) { in link_tcs_out_layout_qualifiers()
1964 gl_prog->info.tess.primitive_mode = PRIM_UNKNOWN; in link_tes_in_layout_qualifiers()
1965 gl_prog->info.tess.spacing = TESS_SPACING_UNSPECIFIED; in link_tes_in_layout_qualifiers()
1985 if (gl_prog->info.tess.primitive_mode != PRIM_UNKNOWN && in link_tes_in_layout_qualifiers()
1986 gl_prog->info.tess.primitive_mode != in link_tes_in_layout_qualifiers()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_gather_info.c117 shader->info.tess.tcs_cross_invocation_inputs_read |= bitfield; in set_io_mask()
136 shader->info.tess.tcs_cross_invocation_outputs_read |= bitfield; in set_io_mask()
531 shader->info.tess.tcs_cross_invocation_inputs_read |= slot_mask; in gather_intrinsic_info()
554 shader->info.tess.tcs_cross_invocation_outputs_read |= slot_mask; in gather_intrinsic_info()
893 shader->info.tess.tcs_cross_invocation_inputs_read = 0; in nir_shader_gather_info()
894 shader->info.tess.tcs_cross_invocation_outputs_read = 0; in nir_shader_gather_info()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_program.c672 OUT_RING(ring, hs_info->tess.tcs_vertices_out); in setup_stateobj()
678 hs_info->tess.tcs_vertices_out)); in setup_stateobj()
687 hs_info->tess.tcs_vertices_out * vs->output_size / 4; in setup_stateobj()
695 const uint32_t patch_control_points = hs_info->tess.tcs_vertices_out; in setup_stateobj()
701 uint32_t prims_per_wave = wavesize / hs_info->tess.tcs_vertices_out; in setup_stateobj()
717 if (ds_info->tess.point_mode) in setup_stateobj()
719 else if (ds_info->tess.primitive_mode == GL_ISOLINES) in setup_stateobj()
721 else if (ds_info->tess.ccw) in setup_stateobj()
727 fd6_gl2spacing(ds_info->tess.spacing)) | in setup_stateobj()
/third_party/mesa3d/docs/relnotes/
D18.3.3.rst61 - radv: Set partial_vs_wave for pipelines with just GS, not tess.
153 - radv: clean up setting partial_es_wave for distributed tess on VI
D21.1.4.rst110 - anv: Fix dynamic primitive topology for tess on Gfx7.x too
126 - anv: fix dynamic primitive topology for tess
D13.0.3.rst110 - radeonsi: add a tess+GS hang workaround for VI dGPUs
134 - radeonsi: fix isolines tess factor writes to control ring

123456