/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_program.c | 41 struct nv50_program *prog = (struct nv50_program *)info->driverPriv; in nv50_vertprog_assign_slots() local 46 prog->in[i].id = i; in nv50_vertprog_assign_slots() 47 prog->in[i].sn = info->in[i].sn; in nv50_vertprog_assign_slots() 48 prog->in[i].si = info->in[i].si; in nv50_vertprog_assign_slots() 49 prog->in[i].hw = n; in nv50_vertprog_assign_slots() 50 prog->in[i].mask = info->in[i].mask; in nv50_vertprog_assign_slots() 52 prog->vp.attrs[(4 * i) / 32] |= info->in[i].mask << ((4 * i) % 32); in nv50_vertprog_assign_slots() 59 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID; in nv50_vertprog_assign_slots() 61 prog->in_nr = info->numInputs; in nv50_vertprog_assign_slots() 66 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_INSTANCE_ID; in nv50_vertprog_assign_slots() [all …]
|
/external/e2fsprogs/resize/ |
D | sim_progress.c | 29 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/compiler/glsl/tests/ |
D | set_uniform_initializer_tests.cpp | 33 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/syzkaller/sys/linux/ |
D | init_iptables.go | 12 func (arch *arch) generateIptables(g *prog.Gen, typ prog.Type, old prog.Arg) ( 13 arg prog.Arg, calls []*prog.Call) { 17 func (arch *arch) generateArptables(g *prog.Gen, typ prog.Type, old prog.Arg) ( 18 arg prog.Arg, calls []*prog.Call) { 22 func (arch *arch) generateNetfilterTable(g *prog.Gen, typ prog.Type, old prog.Arg, 23 hasUnion bool, hookCount int) (arg prog.Arg, calls []*prog.Call) { 37 var tableArg *prog.GroupArg 39 tableArg = arg.(*prog.UnionArg).Option.(*prog.GroupArg) 41 tableArg = arg.(*prog.GroupArg) 47 entriesArg := tableArg.Inner[numFileds-1].(*prog.GroupArg) [all …]
|
D | init.go | 23 func InitTarget(target *prog.Target) { 43 target.SpecialTypes = map[string]func(g *prog.Gen, typ prog.Type, old prog.Arg) ( 44 prog.Arg, []*prog.Call){ 85 clockGettimeSyscall *prog.Syscall 101 func (arch *arch) sanitizeCall(c *prog.Call) { 105 cmd := c.Args[0].(*prog.ConstArg) 112 cmd := c.Args[1].(*prog.ConstArg) 120 req := c.Args[0].(*prog.ConstArg) 130 cmd := c.Args[0].(*prog.ConstArg) 136 family := c.Args[0].(*prog.ConstArg) [all …]
|
D | init_alg.go | 12 func (arch *arch) generateSockaddrAlg(g *prog.Gen, typ0 prog.Type, old prog.Arg) ( 13 arg prog.Arg, calls []*prog.Call) { 14 typ := typ0.(*prog.StructType) 18 feat := prog.MakeConstArg(typ.Fields[2], 0) 19 mask := prog.MakeConstArg(typ.Fields[3], 0) 21 feat = g.GenerateArg(typ.Fields[2], &calls).(*prog.ConstArg) 22 mask = g.GenerateArg(typ.Fields[3], &calls).(*prog.ConstArg) 28 arg = prog.MakeGroupArg(typ, []prog.Arg{ 30 prog.MakeDataArg(typ.Fields[1], algTypeData), 33 prog.MakeDataArg(typ.Fields[4], algNameData), [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | serialize.cpp | 43 write_subroutines(struct blob *metadata, struct gl_shader_program *prog) in write_subroutines() argument 46 struct gl_linked_shader *sh = prog->_LinkedShaders[i]; in write_subroutines() 71 read_subroutines(struct blob_reader *metadata, struct gl_shader_program *prog) in read_subroutines() argument 76 struct gl_linked_shader *sh = prog->_LinkedShaders[i]; in read_subroutines() 86 subs = rzalloc_array(prog, struct gl_subroutine_function, in read_subroutines() 91 subs[j].name = ralloc_strdup(prog, blob_read_string (metadata)); in read_subroutines() 95 subs[j].types = rzalloc_array(prog, const struct glsl_type *, in read_subroutines() 122 write_buffer_blocks(struct blob *metadata, struct gl_shader_program *prog) in write_buffer_blocks() argument 124 blob_write_uint32(metadata, prog->data->NumUniformBlocks); in write_buffer_blocks() 125 blob_write_uint32(metadata, prog->data->NumShaderStorageBlocks); in write_buffer_blocks() [all …]
|
D | shader_cache.cpp | 71 compile_shaders(struct gl_context *ctx, struct gl_shader_program *prog) { in compile_shaders() argument 72 for (unsigned i = 0; i < prog->NumShaders; i++) { in compile_shaders() 73 _mesa_glsl_compile_shader(ctx, prog->Shaders[i], false, false, true); in compile_shaders() 86 struct gl_shader_program *prog) in shader_cache_write_program_metadata() argument 98 static const char zero[sizeof(prog->data->sha1)] = {0}; in shader_cache_write_program_metadata() 99 if (memcmp(prog->data->sha1, zero, sizeof(prog->data->sha1)) == 0) in shader_cache_write_program_metadata() 105 serialize_glsl_program(&metadata, ctx, prog); in shader_cache_write_program_metadata() 110 (cache_key *) malloc(prog->NumShaders * sizeof(cache_key)); in shader_cache_write_program_metadata() 111 cache_item_metadata.num_keys = prog->NumShaders; in shader_cache_write_program_metadata() 117 for (unsigned i = 0; i < prog->NumShaders; i++) { in shader_cache_write_program_metadata() [all …]
|
D | linker.cpp | 260 gl_shader_program *prog; member in __anon8ad725fe0111::array_resize_visitor 264 gl_shader_program *prog, in array_resize_visitor() argument 268 this->prog = prog; in array_resize_visitor() 291 linker_error(this->prog, "size of array %s declared as %u, " in visit() 302 linker_error(this->prog, "%s shader accesses element %i of " in visit() 450 linker_error(gl_shader_program *prog, const char *fmt, ...) in linker_error() argument 454 ralloc_strcat(&prog->data->InfoLog, "error: "); in linker_error() 456 ralloc_vasprintf_append(&prog->data->InfoLog, fmt, ap); in linker_error() 459 prog->data->LinkStatus = linking_failure; in linker_error() 464 linker_warning(gl_shader_program *prog, const char *fmt, ...) in linker_warning() argument [all …]
|
D | link_uniforms.cpp | 460 parcel_out_uniform_storage(struct gl_shader_program *prog, in parcel_out_uniform_storage() argument 465 : prog(prog), map(map), uniforms(uniforms), in parcel_out_uniform_storage() 513 prog->data->ShaderStorageBlocks : prog->data->UniformBlocks; in set_and_process() 515 prog->data->NumShaderStorageBlocks : prog->data->NumUniformBlocks; in set_and_process() 723 prog->_LinkedShaders[shader_type]->Program->sh.ImageAccess[i] = access; in handle_images() 736 prog->_LinkedShaders[shader_type]->Program->sh.NumSubroutineUniforms++; in handle_subroutines() 927 struct gl_shader_program *prog; member in parcel_out_uniform_storage 1161 find_empty_block(struct gl_shader_program *prog, in find_empty_block() argument 1167 &prog->EmptyUniformLocations) { in find_empty_block() 1190 struct gl_shader_program *prog) in link_setup_uniform_remap_tables() argument [all …]
|
/external/mesa3d/src/mesa/program/ |
D | arbprogparse.c | 72 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() 94 program->String = prog.String; in _mesa_parse_arb_fragment_program() 95 program->arb.NumInstructions = prog.arb.NumInstructions; in _mesa_parse_arb_fragment_program() 96 program->arb.NumTemporaries = prog.arb.NumTemporaries; in _mesa_parse_arb_fragment_program() 97 program->arb.NumParameters = prog.arb.NumParameters; in _mesa_parse_arb_fragment_program() 98 program->arb.NumAttributes = prog.arb.NumAttributes; in _mesa_parse_arb_fragment_program() 99 program->arb.NumAddressRegs = prog.arb.NumAddressRegs; in _mesa_parse_arb_fragment_program() 100 program->arb.NumNativeInstructions = prog.arb.NumNativeInstructions; in _mesa_parse_arb_fragment_program() [all …]
|
D | program.c | 183 _mesa_init_gl_program(struct gl_program *prog, GLenum target, GLuint id, in _mesa_init_gl_program() argument 186 if (!prog) in _mesa_init_gl_program() 189 memset(prog, 0, sizeof(*prog)); in _mesa_init_gl_program() 190 prog->Id = id; in _mesa_init_gl_program() 191 prog->Target = target; in _mesa_init_gl_program() 192 prog->RefCount = 1; in _mesa_init_gl_program() 193 prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB; in _mesa_init_gl_program() 194 prog->info.stage = _mesa_program_enum_to_shader_stage(target); in _mesa_init_gl_program() 195 prog->is_arb_asm = is_arb_asm; in _mesa_init_gl_program() 211 prog->SamplerUnits[i] = i; in _mesa_init_gl_program() [all …]
|
D | prog_print.c | 366 GLboolean relAddr, const struct gl_program *prog) in reg_string() argument 382 sprintf(str, "%s", arb_input_attrib_string(index, prog->Target)); in reg_string() 385 sprintf(str, "%s", arb_output_attrib_string(index, prog->Target)); in reg_string() 402 = prog->Parameters->Parameters + index; in reg_string() 518 const struct gl_program *prog) in fprint_dst_reg() argument 522 dstReg->Index, mode, dstReg->RelAddr, prog), in fprint_dst_reg() 538 const struct gl_program *prog) in fprint_src_reg() argument 542 srcReg->Index, mode, srcReg->RelAddr, prog), in fprint_src_reg() 560 const struct gl_program *prog) in _mesa_fprint_alu_instruction() argument 572 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_alu_instruction() [all …]
|
/external/syzkaller/pkg/compiler/ |
D | gen.go | 16 func (comp *compiler) genResources() []*prog.ResourceDesc { 17 var resources []*prog.ResourceDesc 30 func (comp *compiler) genResource(n *ast.Resource) *prog.ResourceDesc { 31 res := &prog.ResourceDesc{ 44 res.Type = comp.genType(base, "", prog.DirIn, false) 48 func (comp *compiler) genSyscalls() []*prog.Syscall { 49 var calls []*prog.Syscall 61 func (comp *compiler) genSyscall(n *ast.Call) *prog.Syscall { 62 var ret prog.Type 64 ret = comp.genType(n.Ret, "ret", prog.DirOut, true) [all …]
|
D | types.go | 27 Check func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) 29 CheckConsts func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) 35 Gen func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) prog.Type 73 Check: func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) { 76 Gen: func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) prog.Type { 78 kind, rangeBegin, rangeEnd := prog.IntPlain, uint64(0), uint64(0) 80 kind, rangeBegin, rangeEnd = prog.IntRange, args[0].Value, args[0].Value2 83 return &prog.IntType{ 97 Gen: func(comp *compiler, t *ast.Type, args []*ast.Type, base prog.IntTypeCommon) prog.Type { 98 base.ArgDir = prog.DirIn // pointers are always in [all …]
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_program.c | 539 nvc0_program_dump(struct nvc0_program *prog) in nvc0_program_dump() argument 543 if (prog->type != PIPE_SHADER_COMPUTE) { in nvc0_program_dump() 544 for (pos = 0; pos < ARRAY_SIZE(prog->hdr); ++pos) in nvc0_program_dump() 546 pos * sizeof(prog->hdr[0]), prog->hdr[pos]); in nvc0_program_dump() 548 debug_printf("shader binary code (0x%x bytes):", prog->code_size); in nvc0_program_dump() 549 for (pos = 0; pos < prog->code_size / 4; ++pos) { in nvc0_program_dump() 552 debug_printf("%08x ", prog->code[pos]); in nvc0_program_dump() 559 nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset, in nvc0_program_translate() argument 569 info->type = prog->type; in nvc0_program_translate() 572 info->bin.source = (void *)prog->pipe.tokens; in nvc0_program_translate() [all …]
|
/external/syzkaller/sys/targets/ |
D | common.go | 11 func MakePosixMmap(target *prog.Target) func(addr, size uint64) *prog.Call { 16 return func(addr, size uint64) *prog.Call { 17 return &prog.Call{ 19 Args: []prog.Arg{ 20 prog.MakeVmaPointerArg(meta.Args[0], addr, size), 21 prog.MakeConstArg(meta.Args[1], size), 22 prog.MakeConstArg(meta.Args[2], prot), 23 prog.MakeConstArg(meta.Args[3], flags), 24 prog.MakeResultArg(meta.Args[4], nil, invalidFD), 25 prog.MakeConstArg(meta.Args[5], 0), [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_shader_cache.c | 49 struct gl_program *prog, unsigned num_tokens) in write_tgsi_to_cache() argument 54 prog->driver_cache_blob = ralloc_size(NULL, blob->size); in write_tgsi_to_cache() 55 memcpy(prog->driver_cache_blob, blob->data, blob->size); in write_tgsi_to_cache() 56 prog->driver_cache_blob_size = blob->size; in write_tgsi_to_cache() 60 st_serialise_tgsi_program(struct gl_context *ctx, struct gl_program *prog) in st_serialise_tgsi_program() argument 65 switch (prog->info.stage) { in st_serialise_tgsi_program() 67 struct st_vertex_program *stvp = (struct st_vertex_program *) prog; in st_serialise_tgsi_program() 76 write_tgsi_to_cache(&blob, stvp->tgsi.tokens, prog, in st_serialise_tgsi_program() 83 struct st_common_program *stcp = (struct st_common_program *) prog; in st_serialise_tgsi_program() 86 write_tgsi_to_cache(&blob, stcp->tgsi.tokens, prog, in st_serialise_tgsi_program() [all …]
|
D | st_cb_program.c | 62 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() 74 struct st_common_program *prog = rzalloc(NULL, in st_new_program() local 76 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program() 79 struct st_compute_program *prog = rzalloc(NULL, in st_new_program() local 81 return _mesa_init_gl_program(&prog->Base, target, id, is_arb_asm); in st_new_program() 94 st_delete_program(struct gl_context *ctx, struct gl_program *prog) in st_delete_program() argument 98 switch( prog->Target ) { in st_delete_program() [all …]
|
D | st_atom_storagebuf.c | 44 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() 58 for (i = 0; i < prog->info.num_ssbos; i++) { in st_bind_ssbos() 64 prog->sh.ShaderStorageBlocks[i]->Binding]; in st_bind_ssbos() 85 prog->info.num_ssbos, buffers); in st_bind_ssbos() 87 if (prog->info.num_ssbos < c->MaxShaderStorageBlocks) in st_bind_ssbos() 90 buffer_base + prog->info.num_ssbos, in st_bind_ssbos() 91 c->MaxShaderStorageBlocks - prog->info.num_ssbos, in st_bind_ssbos() 97 struct gl_program *prog = in st_bind_vs_ssbos() local [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_program.c | 68 struct gl_program *prog, in brw_create_nir() argument 86 nir = prog_to_nir(prog, options); in brw_create_nir() 129 _mesa_add_state_reference(prog->Parameters, in brw_create_nir() 140 brw_shader_gather_info(nir_shader *nir, struct gl_program *prog) in brw_shader_gather_info() argument 145 const char *prog_name = prog->info.name; in brw_shader_gather_info() 146 const char *prog_label = prog->info.label; in brw_shader_gather_info() 147 prog->info = nir->info; in brw_shader_gather_info() 148 prog->info.name = prog_name; in brw_shader_gather_info() 149 prog->info.label = prog_label; in brw_shader_gather_info() 162 struct brw_program *prog = rzalloc(NULL, struct brw_program); in brwNewProgram() local [all …]
|
D | brw_disk_cache.c | 43 gen_shader_sha1(struct brw_context *brw, struct gl_program *prog, in gen_shader_sha1() argument 51 _mesa_sha1_format(sha1_buf, prog->sh.data->sha1); in gen_shader_sha1() 84 read_blob_program_data(struct blob_reader *binary, struct gl_program *prog, in read_blob_program_data() argument 112 struct gl_program *prog, gl_shader_stage stage) in read_and_upload() argument 151 gen_shader_sha1(brw, prog, stage, &prog_key, binary_sha1); in read_and_upload() 178 if (!read_blob_program_data(&binary, prog, stage, &program, prog_data)) { in read_and_upload() 198 prog_key.vs.program_string_id = brw_program(prog)->id; in read_and_upload() 203 prog_key.tcs.program_string_id = brw_program(prog)->id; in read_and_upload() 208 prog_key.tes.program_string_id = brw_program(prog)->id; in read_and_upload() 213 prog_key.gs.program_string_id = brw_program(prog)->id; in read_and_upload() [all …]
|
/external/aac/libMpegTPDec/src/ |
D | tpdec_latm.cpp | 318 for (UINT prog = 0; prog < pLatmDemux->m_numProgram; prog++) { in CLatmDemux_ReadStreamMuxConfig() local 319 pLatmDemux->m_numLayer[prog] = FDKreadBits(bs, 3) + 1; in CLatmDemux_ReadStreamMuxConfig() 320 if (pLatmDemux->m_numLayer[prog] > LATM_MAX_LAYER) { in CLatmDemux_ReadStreamMuxConfig() 325 for (UINT lay = 0; lay < pLatmDemux->m_numLayer[prog]; lay++) { in CLatmDemux_ReadStreamMuxConfig() 327 p_linfo = &pLatmDemux->m_linfo[prog][lay]; in CLatmDemux_ReadStreamMuxConfig() 332 if ((prog == 0) && (lay == 0)) { in CLatmDemux_ReadStreamMuxConfig() 340 FDKmemcpy(&pAsc[TPDEC_TRACKINDEX(prog, lay)], in CLatmDemux_ReadStreamMuxConfig() 341 &pAsc[TPDEC_TRACKINDEX(prog, lay - 1)], in CLatmDemux_ReadStreamMuxConfig() 352 (pAsc[TPDEC_TRACKINDEX(prog, lay)].m_aot == AOT_USAC)) { in CLatmDemux_ReadStreamMuxConfig() 354 (UINT)(pAsc[TPDEC_TRACKINDEX(prog, lay)] in CLatmDemux_ReadStreamMuxConfig() [all …]
|
/external/mksh/src/ |
D | check.pl | 184 ($prog = $0) =~ s#.*/##; 187 Usage: $prog [-Pv] [-C cat] [-e e=v] [-p prog] [-s fn] [-T dir] \ 255 die "$prog: no program specified (use -p)\n" if !defined $opt_p; 256 die "$prog: no test set specified (use -s)\n" if !defined $opt_s; 264 die "$prog: bad -t argument (should be number > 0): $opt_t\n" 281 die "$prog: categories can't be negated on the command line\n" 329 die "$prog: couldn't get current working directory\n" if $pwd eq ''; 330 die "$prog: couldn't cd to $pwd - $!\n" if !chdir($pwd); 332 die "$prog: couldn't cd to $temp_base - $!\n" if !chdir($temp_base); 333 die "$prog: couldn't get temporary directory base\n" unless -d '.'; [all …]
|
/external/mesa3d/src/gallium/state_trackers/clover/api/ |
D | program.cpp | 33 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 …]
|