Home
last modified time | relevance | path

Searched refs:tess (Results 1 - 25 of 68) sorted by relevance

123

/third_party/ffmpeg/libavfilter/
H A 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()
97 result = TessBaseAPIRect(s->tess, in->data[0], 1, in filter_frame()
99 confs = TessBaseAPIAllWordConfidences(s->tess); in filter_frame()
118 TessBaseAPIEnd(s->tess); in uninit()
119 TessBaseAPIDelete(s->tess); in uninit()
/third_party/skia/src/gpu/ops/
H A 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,
228 if (!tess.tessellate(args.fViewMatrix, args.fPath)) {
232 int currentVertices = tess
[all...]
/third_party/mesa3d/src/gallium/frontends/lavapipe/
H A Dlvp_pipeline.c555 assert(tcs_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
556 tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
557 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
558 tes_info->tess.tcs_vertices_out |= tcs_info->tess.tcs_vertices_out; in merge_tess_info()
560 assert(tcs_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
561 tes_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
562 tcs_info->tess.spacing == tes_info->tess in merge_tess_info()
[all...]
/third_party/skia/src/gpu/geometry/
H A DGrAAConvexTessellator.cpp850 void GrAAConvexTessellator::Ring::init(const GrAAConvexTessellator& tess) {
851 this->computeNormals(tess);
852 this->computeBisectors(tess);
864 void GrAAConvexTessellator::Ring::computeNormals(const GrAAConvexTessellator& tess) {
868 fPts[cur].fNorm = tess.point(fPts[next].fIndex) - tess.point(fPts[cur].fIndex);
870 fPts[cur].fNorm = SkPointPriv::MakeOrthog(fPts[cur].fNorm, tess.side());
874 void GrAAConvexTessellator::Ring::computeBisectors(const GrAAConvexTessellator& tess) {
880 SkPointPriv::MakeOrthog(fPts[cur].fNorm, (SkPointPriv::Side)-tess.side()) +
881 SkPointPriv::MakeOrthog(fPts[prev].fNorm, tess
[all...]
H A 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/skia/src/gpu/v1/
H A 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/intel/compiler/
H A Dbrw_vec4_tcs.cpp85 if (nir->info.tess.tcs_vertices_out % 2) { in emit_prolog()
87 brw_imm_ud(nir->info.tess.tcs_vertices_out), in emit_prolog()
102 if (nir->info.tess.tcs_vertices_out % 2) { in emit_thread_end()
398 nir->info.tess.tcs_vertices_out <= (devinfo->ver >= 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()
H A Dbrw_shader.cpp1381 (enum brw_tess_partitioning) (nir->info.tess.spacing - 1); in brw_compile_tes()
1383 switch (nir->info.tess._primitive_mode) { in brw_compile_tes()
1397 if (nir->info.tess.point_mode) { in brw_compile_tes()
1399 } else if (nir->info.tess._primitive_mode == TESS_PRIMITIVE_ISOLINES) { in brw_compile_tes()
1404 nir->info.tess.ccw ? BRW_TESS_OUTPUT_TOPOLOGY_TRI_CW in brw_compile_tes()
/third_party/mesa3d/src/mesa/main/
H A Ddraw_validate.c173 * The OpenGL spec argues that this is allowed because a tess ctrl shader in _mesa_update_valid_to_render_state()
174 * without a tess eval shader can be used with transform feedback. in _mesa_update_valid_to_render_state()
179 * a tess ctrl shader without a tess eval shader shouldn't have been in _mesa_update_valid_to_render_state()
183 * Also, all vendors except one don't support a tess ctrl shader without in _mesa_update_valid_to_render_state()
184 * a tess eval shader anyway. in _mesa_update_valid_to_render_state()
316 if (tes->info.tess.point_mode) { in _mesa_update_valid_to_render_state()
319 } else if (tes->info.tess._primitive_mode == TESS_PRIMITIVE_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 in _mesa_update_valid_to_render_state()
[all...]
/third_party/mesa3d/src/microsoft/compiler/
H A Ddxil_nir_tess.c135 nir_push_if(b, nir_ige(b, state->count, nir_imm_int(b, b->impl->function->shader->info.tess.tcs_vertices_out))); in start_tcs_loop()
314 /* Update the types of the tess level variables and remove writes to removed components.
315 * GL always has a 4-component outer tess level and 2-component inner, while D3D requires
323 if (nir->info.tess._primitive_mode != TESS_PRIMITIVE_QUADS) { in dxil_nir_fixup_tess_level_for_domain()
328 new_array_size = nir->info.tess._primitive_mode == TESS_PRIMITIVE_TRIANGLES ? 3 : 2; in dxil_nir_fixup_tess_level_for_domain()
331 new_array_size = nir->info.tess._primitive_mode == TESS_PRIMITIVE_TRIANGLES ? 1 : 0; in dxil_nir_fixup_tess_level_for_domain()
/third_party/mesa3d/src/compiler/glsl/
H A Dlinker.cpp1809 gl_prog->info.tess.tcs_vertices_out = 0; in link_tcs_out_layout_qualifiers()
1825 if (gl_prog->info.tess.tcs_vertices_out != 0 && in link_tcs_out_layout_qualifiers()
1826 gl_prog->info.tess.tcs_vertices_out != in link_tcs_out_layout_qualifiers()
1830 gl_prog->info.tess.tcs_vertices_out, in link_tcs_out_layout_qualifiers()
1834 gl_prog->info.tess.tcs_vertices_out = in link_tcs_out_layout_qualifiers()
1843 if (gl_prog->info.tess.tcs_vertices_out == 0) { in link_tcs_out_layout_qualifiers()
1869 gl_prog->info.tess._primitive_mode = TESS_PRIMITIVE_UNSPECIFIED; in link_tes_in_layout_qualifiers()
1870 gl_prog->info.tess.spacing = TESS_SPACING_UNSPECIFIED; in link_tes_in_layout_qualifiers()
1890 if (gl_prog->info.tess._primitive_mode != TESS_PRIMITIVE_UNSPECIFIED && in link_tes_in_layout_qualifiers()
1891 gl_prog->info.tess in link_tes_in_layout_qualifiers()
[all...]
/third_party/mesa3d/src/amd/common/
H A Dac_nir_lower_tess_io_to_mem.c143 /* Whether TES reads the tess factors. */
158 /* Set if all invocations will write to all tess factors, so tess factors
330 unsigned pervertex_output_patch_size = b->shader->info.tess.tcs_vertices_out * output_vertex_size; in hs_output_lds_offset()
370 ? nir_imm_int(b, b->shader->info.tess.tcs_vertices_out) in hs_per_vertex_output_vmem_offset()
449 /* Remember driver location of tess factors, so we can read them later */ in lower_hs_output_store()
460 /* Keep tess factor nir_store_output instruction if it's going to be passed in lower_hs_output_store()
462 * llvm variable which is read by the final llvm tess factor write epilog. in lower_hs_output_store()
527 switch (shader->info.tess._primitive_mode) { in hs_emit_write_tess_factors()
567 /* The descriptor where tess factor in hs_emit_write_tess_factors()
[all...]
/third_party/spirv-tools/test/opt/
H A Dinterface_var_sroa_test.cpp263 OpEntryPoint TessellationEvaluation %tess "tess" %x %y in TEST_F()
302 %tess = OpFunction %void None %void_f in TEST_F()
367 OpEntryPoint TessellationControl %tess "tess" %x %y %z in TEST_F()
388 %tess = OpFunction %void None %void_f in TEST_F()
/third_party/mesa3d/src/intel/vulkan/
H A Danv_pipeline.c857 assert(tcs_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
858 tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
859 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
860 tes_info->tess.tcs_vertices_out |= tcs_info->tess.tcs_vertices_out; in merge_tess_info()
862 assert(tcs_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
863 tes_info->tess.spacing == TESS_SPACING_UNSPECIFIED || in merge_tess_info()
864 tcs_info->tess.spacing == tes_info->tess in merge_tess_info()
[all...]
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_shader.c96 /* for ex, VS shaders with tess don't have normal varying outs: */ in fixup_regfootprint()
345 v->tess.primitive_mode = info->tess._primitive_mode; in alloc_variant()
346 v->tess.tcs_vertices_out = info->tess.tcs_vertices_out; in alloc_variant()
347 v->tess.spacing = info->tess.spacing; in alloc_variant()
348 v->tess.ccw = info->tess.ccw; in alloc_variant()
349 v->tess in alloc_variant()
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_nir_lower_abi.c99 nir_intrinsic_set_arg_upper_bound_u32_amd(load_arg, 2048 / MAX2(b->shader->info.tess.tcs_vertices_out, 1)); in lower_abi_instr()
109 return nir_imm_int(b, b->shader->info.tess.tcs_vertices_out); in lower_abi_instr()
201 unsigned out_vertices_per_patch = b->shader->info.tess.tcs_vertices_out; in lower_abi_instr()
H A Dradv_pipeline.c2414 if (tes->info.tess.point_mode) in radv_get_num_input_vertices()
2416 if (tes->info.tess._primitive_mode == TESS_PRIMITIVE_ISOLINES) in radv_get_num_input_vertices()
3101 (info->stage == MESA_SHADER_TESS_EVAL && info->tess.point_mode) || in radv_link_shaders()
3432 num_vertices_per_prim = stages[es_stage].nir->info.tess.point_mode ? 1 in radv_determine_ngg_settings()
3433 : stages[es_stage].nir->info.tess._primitive_mode == TESS_PRIMITIVE_ISOLINES ? 2 in radv_determine_ngg_settings()
3774 assert(tcs_info->tess.tcs_vertices_out == 0 || tes_info->tess.tcs_vertices_out == 0 || in merge_tess_info()
3775 tcs_info->tess.tcs_vertices_out == tes_info->tess.tcs_vertices_out); in merge_tess_info()
3776 tes_info->tess in merge_tess_info()
[all...]
H A Dradv_shader_info.c655 info->tes._primitive_mode = nir->info.tess._primitive_mode; in radv_nir_shader_info_pass()
656 info->tes.spacing = nir->info.tess.spacing; in radv_nir_shader_info_pass()
657 info->tes.ccw = nir->info.tess.ccw; in radv_nir_shader_info_pass()
658 info->tes.point_mode = nir->info.tess.point_mode; in radv_nir_shader_info_pass()
661 info->tcs.tcs_vertices_out = nir->info.tess.tcs_vertices_out; in radv_nir_shader_info_pass()
/third_party/skia/bench/
H A DTessellateBench.cpp143 auto tess = PathCurveTessellator::Make(&arena, in DEF_PATH_TESS_BENCH() local
145 tess->prepare(fTarget.get(), in DEF_PATH_TESS_BENCH()
157 auto tess = PathWedgeTessellator::Make(&arena, in DEF_PATH_TESS_BENCH() local
159 tess->prepare(fTarget.get(), in DEF_PATH_TESS_BENCH()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_gather_info.c141 shader->info.tess.tcs_cross_invocation_inputs_read |= bitfield; in set_io_mask()
160 shader->info.tess.tcs_cross_invocation_outputs_read |= bitfield; in set_io_mask()
588 shader->info.tess.tcs_cross_invocation_inputs_read |= slot_mask; in gather_intrinsic_info()
611 shader->info.tess.tcs_cross_invocation_outputs_read |= slot_mask; in gather_intrinsic_info()
978 shader->info.tess.tcs_cross_invocation_inputs_read = 0; in nir_shader_gather_info()
979 shader->info.tess.tcs_cross_invocation_outputs_read = 0; in nir_shader_gather_info()
/third_party/mesa3d/src/gallium/auxiliary/nir/
H A Dnir_to_tgsi_info.c427 nir->info.tess.tcs_vertices_out; in nir_tgsi_scan_shader()
431 info->properties[TGSI_PROPERTY_TES_PRIM_MODE] = u_tess_prim_from_shader(nir->info.tess._primitive_mode); in nir_tgsi_scan_shader()
439 info->properties[TGSI_PROPERTY_TES_SPACING] = (nir->info.tess.spacing + 1) % 3; in nir_tgsi_scan_shader()
440 info->properties[TGSI_PROPERTY_TES_VERTEX_ORDER_CW] = !nir->info.tess.ccw; in nir_tgsi_scan_shader()
441 info->properties[TGSI_PROPERTY_TES_POINT_MODE] = nir->info.tess.point_mode; in nir_tgsi_scan_shader()
/third_party/mesa3d/src/gallium/drivers/d3d12/
H A Dd3d12_compiler.cpp649 /* Nothing to do if there is a user tess ctrl shader bound */ in validate_tess_ctrl_shader_variant()
981 key->hs.primitive_mode = next->current->nir->info.tess._primitive_mode; in d3d12_fill_shader_key()
982 key->hs.ccw = next->current->nir->info.tess.ccw; in d3d12_fill_shader_key()
983 key->hs.point_mode = next->current->nir->info.tess.point_mode; in d3d12_fill_shader_key()
984 key->hs.spacing = next->current->nir->info.tess.spacing; in d3d12_fill_shader_key()
994 key->ds.tcs_vertices_out = prev->current->nir->info.tess.tcs_vertices_out; in d3d12_fill_shader_key()
1157 new_nir_variant->info.tess._primitive_mode = (tess_primitive_mode)key.hs.primitive_mode; in select_shader_variant()
1158 new_nir_variant->info.tess.ccw = key.hs.ccw; in select_shader_variant()
1159 new_nir_variant->info.tess.point_mode = key.hs.point_mode; in select_shader_variant()
1160 new_nir_variant->info.tess in select_shader_variant()
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_program.c281 * tess + xfb fails some tests if we don't emit this. in setup_stream_out()
718 OUT_RING(ring, hs->tess.tcs_vertices_out);
724 hs->tess.tcs_vertices_out));
733 hs->tess.tcs_vertices_out * vs->output_size / 4;
741 const uint32_t patch_control_points = hs->tess.tcs_vertices_out;
744 * should be by MAX2(patch_control_points, hs_info->tess.tcs_vertices_out)
747 uint32_t prims_per_wave = wavesize / hs->tess.tcs_vertices_out;
762 if (ds->tess.point_mode)
764 else if (ds->tess.primitive_mode == TESS_PRIMITIVE_ISOLINES)
766 else if (ds->tess
[all...]
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_pipeline.c766 /* Note: we currently don't support multiview with tess or GS. If we did, in tu6_emit_vs_system_values()
1197 tu_cs_emit(cs, hs->tess.tcs_vertices_out); in tu6_emit_vpc()
1207 * should be by MAX2(patch_control_points, hs->tess.tcs_vertices_out) in tu6_emit_vpc()
1210 uint32_t prims_per_wave = wavesize / hs->tess.tcs_vertices_out; in tu6_emit_vpc()
1222 * are specified in the tess eval shader, but in SPIR-V generated from in tu6_emit_vpc()
1223 * HLSL, they are specified in the tess control shader. */ in tu6_emit_vpc()
1224 const struct ir3_shader_variant *tess = in tu6_emit_vpc() local
1225 ds->tess.spacing == TESS_SPACING_UNSPECIFIED ? hs : ds; in tu6_emit_vpc()
1228 if (tess->tess in tu6_emit_vpc()
[all...]
/third_party/mesa3d/src/compiler/
H A Dshader_info.h521 } tess; member

Completed in 36 milliseconds

123