/third_party/ffmpeg/libavfilter/ |
H A D | vf_ocr.c | 37 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 D | AALinearizingConvexPathRenderer.cpp | 43 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 D | lvp_pipeline.c | 555 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 D | GrAAConvexTessellator.cpp | 850 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 D | GrAAConvexTessellator.h | 150 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 D | PathRendererChain.cpp | 60 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 D | brw_vec4_tcs.cpp | 85 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 D | brw_shader.cpp | 1381 (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 D | draw_validate.c | 173 * 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 D | dxil_nir_tess.c | 135 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 D | linker.cpp | 1809 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 D | ac_nir_lower_tess_io_to_mem.c | 143 /* 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 D | interface_var_sroa_test.cpp | 263 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 D | anv_pipeline.c | 857 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 D | ir3_shader.c | 96 /* 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 D | radv_nir_lower_abi.c | 99 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 D | radv_pipeline.c | 2414 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 D | radv_shader_info.c | 655 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 D | TessellateBench.cpp | 143 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 D | nir_gather_info.c | 141 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 D | nir_to_tgsi_info.c | 427 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 D | d3d12_compiler.cpp | 649 /* 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 D | fd6_program.c | 281 * 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 D | tu_pipeline.c | 766 /* 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 D | shader_info.h | 521 } tess; member
|