Home
last modified time | relevance | path

Searched refs:prog (Results 1 – 25 of 1748) sorted by relevance

12345678910>>...70

/external/e2fsprogs/resize/
Dsim_progress.c29 static errcode_t ext2fs_progress_display(ext2_sim_progmeter prog) in ext2fs_progress_display() argument
33 fputs(prog->label, prog->f); in ext2fs_progress_display()
34 width = prog->labelwidth - strlen(prog->label); in ext2fs_progress_display()
36 putc(' ', prog->f); in ext2fs_progress_display()
37 if (prog->labelwidth + prog->barwidth > 80) { in ext2fs_progress_display()
38 fputs("\n", prog->f); in ext2fs_progress_display()
39 for (width = prog->labelwidth; width > 0; width--) in ext2fs_progress_display()
40 putc(' ', prog->f); in ext2fs_progress_display()
42 for (i=0; i < prog->barwidth; i++) in ext2fs_progress_display()
43 putc('-', prog->f); in ext2fs_progress_display()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_program.c39 struct nv50_program *prog = (struct nv50_program *)info->driverPriv; in nv50_vertprog_assign_slots() local
44 prog->in[i].id = i; in nv50_vertprog_assign_slots()
45 prog->in[i].sn = info->in[i].sn; in nv50_vertprog_assign_slots()
46 prog->in[i].si = info->in[i].si; in nv50_vertprog_assign_slots()
47 prog->in[i].hw = n; in nv50_vertprog_assign_slots()
48 prog->in[i].mask = info->in[i].mask; in nv50_vertprog_assign_slots()
50 prog->vp.attrs[(4 * i) / 32] |= info->in[i].mask << ((4 * i) % 32); in nv50_vertprog_assign_slots()
57 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID; in nv50_vertprog_assign_slots()
59 prog->in_nr = info->numInputs; in nv50_vertprog_assign_slots()
64 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_INSTANCE_ID; in nv50_vertprog_assign_slots()
[all …]
/external/mesa3d/src/compiler/glsl/tests/
Dset_uniform_initializer_tests.cpp33 set_uniform_initializer(void *mem_ctx, gl_shader_program *prog,
60 struct gl_shader_program *prog; member in set_uniform_initializer
72 this->prog = rzalloc(NULL, struct gl_shader_program); in SetUp()
73 this->prog->data = rzalloc(this->prog, struct gl_shader_program_data); in SetUp()
87 ralloc_free(this->prog); in TearDown()
88 this->prog = NULL; in TearDown()
103 establish_uniform_storage(struct gl_shader_program *prog, unsigned num_storage, in establish_uniform_storage() argument
113 prog->UniformHash = new string_to_uint_map; in establish_uniform_storage()
114 prog->data->UniformStorage = rzalloc_array(prog, struct gl_uniform_storage, in establish_uniform_storage()
116 prog->data->NumUniformStorage = num_storage; in establish_uniform_storage()
[all …]
/external/mesa3d/src/mesa/program/
Darbprogparse.c72 struct gl_program prog; in _mesa_parse_arb_fragment_program() local
78 memset(&prog, 0, sizeof(prog)); in _mesa_parse_arb_fragment_program()
80 state.prog = &prog; in _mesa_parse_arb_fragment_program()
93 program->String = prog.String; in _mesa_parse_arb_fragment_program()
94 program->arb.NumInstructions = prog.arb.NumInstructions; in _mesa_parse_arb_fragment_program()
95 program->arb.NumTemporaries = prog.arb.NumTemporaries; in _mesa_parse_arb_fragment_program()
96 program->arb.NumParameters = prog.arb.NumParameters; in _mesa_parse_arb_fragment_program()
97 program->arb.NumAttributes = prog.arb.NumAttributes; in _mesa_parse_arb_fragment_program()
98 program->arb.NumAddressRegs = prog.arb.NumAddressRegs; in _mesa_parse_arb_fragment_program()
99 program->arb.NumNativeInstructions = prog.arb.NumNativeInstructions; in _mesa_parse_arb_fragment_program()
[all …]
Dprogram.c181 _mesa_init_gl_program(struct gl_program *prog, GLenum target, GLuint id, in _mesa_init_gl_program() argument
184 if (!prog) in _mesa_init_gl_program()
187 memset(prog, 0, sizeof(*prog)); in _mesa_init_gl_program()
188 mtx_init(&prog->Mutex, mtx_plain); in _mesa_init_gl_program()
189 prog->Id = id; in _mesa_init_gl_program()
190 prog->Target = target; in _mesa_init_gl_program()
191 prog->RefCount = 1; in _mesa_init_gl_program()
192 prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB; in _mesa_init_gl_program()
193 prog->info.stage = _mesa_program_enum_to_shader_stage(target); in _mesa_init_gl_program()
194 prog->is_arb_asm = is_arb_asm; in _mesa_init_gl_program()
[all …]
Dprog_print.c365 GLboolean relAddr, const struct gl_program *prog) in reg_string() argument
381 sprintf(str, "%s", arb_input_attrib_string(index, prog->Target)); in reg_string()
384 sprintf(str, "%s", arb_output_attrib_string(index, prog->Target)); in reg_string()
401 = prog->Parameters->Parameters + index; in reg_string()
517 const struct gl_program *prog) in fprint_dst_reg() argument
521 dstReg->Index, mode, dstReg->RelAddr, prog), in fprint_dst_reg()
537 const struct gl_program *prog) in fprint_src_reg() argument
541 srcReg->Index, mode, srcReg->RelAddr, prog), in fprint_src_reg()
559 const struct gl_program *prog) in _mesa_fprint_alu_instruction() argument
571 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_alu_instruction()
[all …]
Dprog_opt_constant_fold.c49 src_reg_for_float(struct gl_program *prog, float val) in src_reg_for_float() argument
57 src.Index = _mesa_add_unnamed_constant(prog->Parameters, in src_reg_for_float()
64 src_reg_for_vec4(struct gl_program *prog, const float *val) in src_reg_for_vec4() argument
72 src.Index = _mesa_add_unnamed_constant(prog->Parameters, in src_reg_for_vec4()
91 get_value(struct gl_program *prog, struct prog_src_register *r, float *data) in get_value() argument
94 prog->Parameters->ParameterValues[r->Index]; in get_value()
125 _mesa_constant_fold(struct gl_program *prog) in _mesa_constant_fold() argument
130 for (i = 0; i < prog->arb.NumInstructions; i++) { in _mesa_constant_fold()
131 struct prog_instruction *const inst = &prog->arb.Instructions[i]; in _mesa_constant_fold()
140 get_value(prog, &inst->SrcReg[0], a); in _mesa_constant_fold()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_storagebuf.c44 st_bind_ssbos(struct st_context *st, struct gl_program *prog, in st_bind_ssbos() argument
51 if (!prog || !st->pipe->set_shader_buffers) in st_bind_ssbos()
54 c = &st->ctx->Const.Program[prog->info.stage]; in st_bind_ssbos()
56 for (i = 0; i < prog->info.num_ssbos; i++) { in st_bind_ssbos()
62 prog->sh.ShaderStorageBlocks[i]->Binding]; in st_bind_ssbos()
83 prog->info.num_ssbos, buffers); in st_bind_ssbos()
85 if (prog->info.num_ssbos < c->MaxShaderStorageBlocks) in st_bind_ssbos()
88 c->MaxAtomicBuffers + prog->info.num_ssbos, in st_bind_ssbos()
89 c->MaxShaderStorageBlocks - prog->info.num_ssbos, in st_bind_ssbos()
95 struct gl_shader_program *prog = in bind_vs_ssbos() local
[all …]
Dst_cb_program.c62 struct st_vertex_program *prog = rzalloc(NULL, in st_new_program() local
64 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program()
67 struct st_fragment_program *prog = rzalloc(NULL, in st_new_program() local
69 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program()
72 struct st_geometry_program *prog = rzalloc(NULL, in st_new_program() local
74 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program()
77 struct st_tessctrl_program *prog = rzalloc(NULL, in st_new_program() local
79 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program()
82 struct st_tesseval_program *prog = rzalloc(NULL, in st_new_program() local
84 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program()
[all …]
Dst_atom_image.c48 st_bind_images(struct st_context *st, struct gl_program *prog, in st_bind_images() argument
55 if (!prog || !st->pipe->set_shader_images) in st_bind_images()
58 c = &st->ctx->Const.Program[prog->info.stage]; in st_bind_images()
60 for (i = 0; i < prog->info.num_images; i++) { in st_bind_images()
62 &st->ctx->ImageUnits[prog->sh.ImageUnits[i]]; in st_bind_images()
122 prog->info.num_images, images); in st_bind_images()
124 if (prog->info.num_images < c->MaxImageUniforms) in st_bind_images()
126 st->cso_context, shader_type, prog->info.num_images, in st_bind_images()
127 c->MaxImageUniforms - prog->info.num_images, NULL); in st_bind_images()
132 struct gl_shader_program *prog = in bind_vs_images() local
[all …]
Dst_atom_atomicbuf.c45 struct gl_shader_program *prog, in st_bind_atomics() argument
50 if (!prog || !st->pipe->set_shader_buffers) in st_bind_atomics()
53 for (i = 0; i < prog->data->NumAtomicBuffers; i++) { in st_bind_atomics()
54 struct gl_active_atomic_buffer *atomic = &prog->data->AtomicBuffers[i]; in st_bind_atomics()
75 struct gl_shader_program *prog = in bind_vs_atomics() local
78 st_bind_atomics(st, prog, PIPE_SHADER_VERTEX); in bind_vs_atomics()
88 struct gl_shader_program *prog = in bind_fs_atomics() local
91 st_bind_atomics(st, prog, PIPE_SHADER_FRAGMENT); in bind_fs_atomics()
101 struct gl_shader_program *prog = in bind_gs_atomics() local
104 st_bind_atomics(st, prog, PIPE_SHADER_GEOMETRY); in bind_gs_atomics()
[all …]
Dst_atom_constbuf.c241 static void st_bind_ubos(struct st_context *st, struct gl_program *prog, in st_bind_ubos() argument
247 if (!prog) in st_bind_ubos()
250 for (i = 0; i < prog->info.num_ubos; i++) { in st_bind_ubos()
255 &st->ctx->UniformBufferBindings[prog->sh.UniformBlocks[i]->Binding]; in st_bind_ubos()
281 struct gl_shader_program *prog = in bind_vs_ubos() local
284 if (!prog || !prog->_LinkedShaders[MESA_SHADER_VERTEX]) in bind_vs_ubos()
287 st_bind_ubos(st, prog->_LinkedShaders[MESA_SHADER_VERTEX]->Program, PIPE_SHADER_VERTEX); in bind_vs_ubos()
296 struct gl_shader_program *prog = in bind_fs_ubos() local
299 if (!prog || !prog->_LinkedShaders[MESA_SHADER_FRAGMENT]) in bind_fs_ubos()
302 st_bind_ubos(st, prog->_LinkedShaders[MESA_SHADER_FRAGMENT]->Program, PIPE_SHADER_FRAGMENT); in bind_fs_ubos()
[all …]
/external/mesa3d/src/compiler/glsl/
Dlinker.cpp224 gl_shader_program *prog; member in __anon3603d7b40111::array_resize_visitor
228 gl_shader_program *prog, in array_resize_visitor() argument
232 this->prog = prog; in array_resize_visitor()
255 linker_error(this->prog, "size of array %s declared as %u, " in visit()
266 linker_error(this->prog, "%s shader accesses element %i of " in visit()
414 linker_error(gl_shader_program *prog, const char *fmt, ...) in linker_error() argument
418 ralloc_strcat(&prog->data->InfoLog, "error: "); in linker_error()
420 ralloc_vasprintf_append(&prog->data->InfoLog, fmt, ap); in linker_error()
423 prog->data->LinkStatus = false; in linker_error()
428 linker_warning(gl_shader_program *prog, const char *fmt, ...) in linker_warning() argument
[all …]
Dlink_uniforms.cpp428 parcel_out_uniform_storage(struct gl_shader_program *prog, in parcel_out_uniform_storage() argument
432 : prog(prog), map(map), uniforms(uniforms), values(values) in parcel_out_uniform_storage()
459 prog->data->ShaderStorageBlocks : prog->data->UniformBlocks; in set_and_process()
461 prog->data->NumShaderStorageBlocks : prog->data->NumUniformBlocks; in set_and_process()
616 prog->_LinkedShaders[shader_type]->Program->sh.ImageAccess[i] = access; in handle_images()
627 prog->_LinkedShaders[shader_type]->Program->sh.NumSubroutineUniforms++; in handle_subroutines()
822 struct gl_shader_program *prog; member in parcel_out_uniform_storage
1016 find_empty_block(struct gl_shader_program *prog, in find_empty_block() argument
1022 &prog->EmptyUniformLocations) { in find_empty_block()
1045 struct gl_shader_program *prog, in link_setup_uniform_remap_tables() argument
[all …]
Dir_set_program_inouts.cpp46 ir_set_program_inouts_visitor(struct gl_program *prog, in ir_set_program_inouts_visitor() argument
49 this->prog = prog; in ir_set_program_inouts_visitor()
66 struct gl_program *prog; member in __anonc69f0f8d0111::ir_set_program_inouts_visitor
81 mark(struct gl_program *prog, ir_variable *var, int offset, int len, in mark() argument
114 prog->info.patch_inputs_read |= bitfield; in mark()
116 prog->info.inputs_read |= bitfield; in mark()
121 prog->info.double_inputs_read |= bitfield; in mark()
124 prog->info.fs.uses_sample_qualifier |= var->data.sample; in mark()
127 prog->info.system_values_read |= bitfield; in mark()
131 prog->info.patch_outputs_written |= bitfield; in mark()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_program.c538 nvc0_program_dump(struct nvc0_program *prog) in nvc0_program_dump() argument
542 if (prog->type != PIPE_SHADER_COMPUTE) { in nvc0_program_dump()
543 for (pos = 0; pos < ARRAY_SIZE(prog->hdr); ++pos) in nvc0_program_dump()
545 pos * sizeof(prog->hdr[0]), prog->hdr[pos]); in nvc0_program_dump()
547 debug_printf("shader binary code (0x%x bytes):", prog->code_size); in nvc0_program_dump()
548 for (pos = 0; pos < prog->code_size / 4; ++pos) { in nvc0_program_dump()
551 debug_printf("%08x ", prog->code[pos]); in nvc0_program_dump()
558 nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset, in nvc0_program_translate() argument
568 info->type = prog->type; in nvc0_program_translate()
571 info->bin.source = (void *)prog->pipe.tokens; in nvc0_program_translate()
[all …]
/external/mksh/src/
Dcheck.pl179 ($prog = $0) =~ s#.*/##;
182 Usage: $prog [-Pv] [-C cat] [-e e=v] [-p prog] [-s fn] [-T dir] \
249 die "$prog: no program specified (use -p)\n" if !defined $opt_p;
250 die "$prog: no test set specified (use -s)\n" if !defined $opt_s;
256 die "$prog: bad -t argument (should be number > 0): $opt_t\n"
265 die "$prog: categories can't be negated on the command line\n"
301 die "$prog: couldn't get current working directory\n" if $pwd eq '';
302 die "$prog: couldn't cd to $pwd - $!\n" if !chdir($pwd);
304 die "$prog: couldn't cd to $temp_base - $!\n" if !chdir($temp_base);
305 die "$prog: couldn't get temporary directory base\n" unless -d '.';
[all …]
/external/regex-re2/re2/testing/
Ddfa_test.cc26 BuildThread(Prog* prog) : prog_(prog) {} in BuildThread() argument
47 Prog* prog = re->CompileToProg(0); in TEST() local
48 CHECK(prog); in TEST()
49 BuildThread* t = new BuildThread(prog); in TEST()
54 delete prog; in TEST()
62 Prog* prog = re->CompileToProg(0); in TEST() local
63 CHECK(prog); in TEST()
67 BuildThread *t = new BuildThread(prog); in TEST()
79 prog->BuildEntireDFA(Prog::kFirstMatch); in TEST()
80 delete prog; in TEST()
[all …]
/external/mesa3d/src/gallium/state_trackers/clover/api/
Dprogram.cpp33 validate_build_common(const program &prog, cl_uint num_devs, in validate_build_common() argument
40 if (prog.kernel_ref_count()) in validate_build_common()
44 return !count(dev, prog.context().devices()); in validate_build_common()
178 auto &prog = obj(d_prog); in clBuildProgram() local
180 ref_vector<device>(prog.context().devices())); in clBuildProgram()
184 validate_build_common(prog, num_devs, d_devs, pfn_notify, user_data); in clBuildProgram()
186 if (prog.has_source) { in clBuildProgram()
187 prog.compile(devs, opts); in clBuildProgram()
188 prog.link(devs, opts, { prog }); in clBuildProgram()
204 auto &prog = obj(d_prog); in clCompileProgram() local
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_program.c67 struct gl_program *prog, in brw_create_nir() argument
86 nir = prog_to_nir(prog, options); in brw_create_nir()
101 _mesa_add_state_reference(prog->Parameters, in brw_create_nir()
113 if (nir->info != &prog->info) { in brw_create_nir()
114 const char *name = prog->info.name; in brw_create_nir()
115 const char *label = prog->info.label; in brw_create_nir()
116 prog->info = *nir->info; in brw_create_nir()
117 prog->info.name = name; in brw_create_nir()
118 prog->info.label = label; in brw_create_nir()
150 struct brw_program *prog = rzalloc(NULL, struct brw_program); in brwNewProgram() local
[all …]
/external/strace/tests/
Dseccomp-filter-v.c109 TAIL_ALLOC_OBJECT_CONST_PTR(struct sock_fprog, prog); in main()
117 prog->filter = filter + ARRAY_SIZE(filter_c); in main()
118 prog->len = 1; in main()
119 syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, prog); in main()
121 " = -1 EFAULT (%m)\n", prog->filter); in main()
123 prog->filter = filter + ARRAY_SIZE(filter_c) - 1; in main()
124 prog->len = 3; in main()
125 syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, prog); in main()
128 prog->len, kill_stmt_txt, filter + ARRAY_SIZE(filter_c)); in main()
130 prog->len = 0; in main()
[all …]
/external/strace/tests-m32/
Dseccomp-filter-v.c109 TAIL_ALLOC_OBJECT_CONST_PTR(struct sock_fprog, prog); in main()
117 prog->filter = filter + ARRAY_SIZE(filter_c); in main()
118 prog->len = 1; in main()
119 syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, prog); in main()
121 " = -1 EFAULT (%m)\n", prog->filter); in main()
123 prog->filter = filter + ARRAY_SIZE(filter_c) - 1; in main()
124 prog->len = 3; in main()
125 syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, prog); in main()
128 prog->len, kill_stmt_txt, filter + ARRAY_SIZE(filter_c)); in main()
130 prog->len = 0; in main()
[all …]
/external/strace/tests-mx32/
Dseccomp-filter-v.c109 TAIL_ALLOC_OBJECT_CONST_PTR(struct sock_fprog, prog); in main()
117 prog->filter = filter + ARRAY_SIZE(filter_c); in main()
118 prog->len = 1; in main()
119 syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, prog); in main()
121 " = -1 EFAULT (%m)\n", prog->filter); in main()
123 prog->filter = filter + ARRAY_SIZE(filter_c) - 1; in main()
124 prog->len = 3; in main()
125 syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, 0, prog); in main()
128 prog->len, kill_stmt_txt, filter + ARRAY_SIZE(filter_c)); in main()
130 prog->len = 0; in main()
[all …]
/external/mesa3d/src/mesa/main/
Darbprogram.c147 struct gl_program *prog = _mesa_lookup_program(ctx, ids[i]); in _mesa_DeleteProgramsARB() local
148 if (prog == &_mesa_DummyProgram) { in _mesa_DeleteProgramsARB()
151 else if (prog) { in _mesa_DeleteProgramsARB()
153 switch (prog->Target) { in _mesa_DeleteProgramsARB()
158 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
165 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
174 _mesa_reference_program(ctx, &prog, NULL); in _mesa_DeleteProgramsARB()
230 struct gl_program *prog = NULL; in _mesa_IsProgramARB() local
237 prog = _mesa_lookup_program(ctx, id); in _mesa_IsProgramARB()
238 if (prog && (prog != &_mesa_DummyProgram)) in _mesa_IsProgramARB()
[all …]
/external/libpng/contrib/tools/
Dcvtcolor.c25 usage(const char *prog) in usage() argument
29 prog, prog); in usage()
34 component(const char *prog, const char *arg, int issRGB) in component() argument
41 fprintf(stderr, "%s: %s: invalid component value (%lu)\n", prog, arg, c); in component()
42 usage(prog); in component()
51 const char *prog = *argv++; in main() local
81 usage(prog); in main()
87 usage(prog); in main()
91 c[3] = component(prog, argv[3], to_linear); in main()
94 c[2] = component(prog, argv[2], to_linear); in main()
[all …]

12345678910>>...70