/external/e2fsprogs/resize/ |
D | sim_progress.c | 28 static errcode_t ext2fs_progress_display(ext2_sim_progmeter prog) in ext2fs_progress_display() argument 32 fputs(prog->label, prog->f); in ext2fs_progress_display() 33 width = prog->labelwidth - strlen(prog->label); in ext2fs_progress_display() 35 putc(' ', prog->f); in ext2fs_progress_display() 36 if (prog->labelwidth + prog->barwidth > 80) { in ext2fs_progress_display() 37 fputs("\n", prog->f); in ext2fs_progress_display() 38 for (width = prog->labelwidth; width > 0; width--) in ext2fs_progress_display() 39 putc(' ', prog->f); in ext2fs_progress_display() 41 for (i=0; i < prog->barwidth; i++) in ext2fs_progress_display() 42 putc('-', prog->f); in ext2fs_progress_display() [all …]
|
/external/chromium_org/third_party/mesa/src/src/glsl/tests/ |
D | set_uniform_initializer_tests.cpp | 32 set_uniform_initializer(void *mem_ctx, gl_shader_program *prog, 59 struct gl_shader_program *prog; member in set_uniform_initializer 71 this->prog = rzalloc(NULL, struct gl_shader_program); in SetUp() 85 ralloc_free(this->prog); in TearDown() 86 this->prog = NULL; in TearDown() 101 establish_uniform_storage(struct gl_shader_program *prog, unsigned num_storage, in establish_uniform_storage() argument 111 prog->UniformStorage = rzalloc_array(prog, struct gl_uniform_storage, in establish_uniform_storage() 113 prog->NumUserUniformStorage = num_storage; in establish_uniform_storage() 115 prog->UniformStorage[index_to_set].name = (char *) name; in establish_uniform_storage() 116 prog->UniformStorage[index_to_set].type = type; in establish_uniform_storage() [all …]
|
/external/mesa3d/src/glsl/tests/ |
D | set_uniform_initializer_tests.cpp | 32 set_uniform_initializer(void *mem_ctx, gl_shader_program *prog, 59 struct gl_shader_program *prog; member in set_uniform_initializer 71 this->prog = rzalloc(NULL, struct gl_shader_program); in SetUp() 85 ralloc_free(this->prog); in TearDown() 86 this->prog = NULL; in TearDown() 101 establish_uniform_storage(struct gl_shader_program *prog, unsigned num_storage, in establish_uniform_storage() argument 111 prog->UniformStorage = rzalloc_array(prog, struct gl_uniform_storage, in establish_uniform_storage() 113 prog->NumUserUniformStorage = num_storage; in establish_uniform_storage() 115 prog->UniformStorage[index_to_set].name = (char *) name; in establish_uniform_storage() 116 prog->UniformStorage[index_to_set].type = type; in establish_uniform_storage() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
D | arbprogparse.c | 71 struct gl_program prog; in _mesa_parse_arb_fragment_program() local 77 memset(&prog, 0, sizeof(prog)); in _mesa_parse_arb_fragment_program() 79 state.prog = &prog; in _mesa_parse_arb_fragment_program() 93 program->Base.String = prog.String; in _mesa_parse_arb_fragment_program() 94 program->Base.NumInstructions = prog.NumInstructions; in _mesa_parse_arb_fragment_program() 95 program->Base.NumTemporaries = prog.NumTemporaries; in _mesa_parse_arb_fragment_program() 96 program->Base.NumParameters = prog.NumParameters; in _mesa_parse_arb_fragment_program() 97 program->Base.NumAttributes = prog.NumAttributes; in _mesa_parse_arb_fragment_program() 98 program->Base.NumAddressRegs = prog.NumAddressRegs; in _mesa_parse_arb_fragment_program() 99 program->Base.NumNativeInstructions = prog.NumNativeInstructions; in _mesa_parse_arb_fragment_program() [all …]
|
D | program.h | 69 struct gl_vertex_program *prog, 74 struct gl_fragment_program *prog, 79 struct gl_geometry_program *prog, 86 _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog); 94 struct gl_program *prog); 99 struct gl_program *prog) in _mesa_reference_program() argument 101 if (*ptr != prog) in _mesa_reference_program() 102 _mesa_reference_program_(ctx, ptr, prog); in _mesa_reference_program() 108 struct gl_vertex_program *prog) in _mesa_reference_vertprog() argument 111 (struct gl_program *) prog); in _mesa_reference_vertprog() [all …]
|
D | program.c | 264 _mesa_init_program_struct( struct gl_context *ctx, struct gl_program *prog, in _mesa_init_program_struct() argument 268 if (prog) { in _mesa_init_program_struct() 270 memset(prog, 0, sizeof(*prog)); in _mesa_init_program_struct() 271 prog->Id = id; in _mesa_init_program_struct() 272 prog->Target = target; in _mesa_init_program_struct() 273 prog->Resident = GL_TRUE; in _mesa_init_program_struct() 274 prog->RefCount = 1; in _mesa_init_program_struct() 275 prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB; in _mesa_init_program_struct() 279 prog->SamplerUnits[i] = i; in _mesa_init_program_struct() 282 return prog; in _mesa_init_program_struct() [all …]
|
D | prog_opt_constant_fold.c | 47 src_reg_for_float(struct gl_program *prog, float val) in src_reg_for_float() argument 55 src.Index = _mesa_add_unnamed_constant(prog->Parameters, in src_reg_for_float() 62 src_reg_for_vec4(struct gl_program *prog, const float *val) in src_reg_for_vec4() argument 70 src.Index = _mesa_add_unnamed_constant(prog->Parameters, in src_reg_for_vec4() 90 get_value(struct gl_program *prog, struct prog_src_register *r, float *data) in get_value() argument 93 prog->Parameters->ParameterValues[r->Index]; in get_value() 131 _mesa_constant_fold(struct gl_program *prog) in _mesa_constant_fold() argument 136 for (i = 0; i < prog->NumInstructions; i++) { in _mesa_constant_fold() 137 struct prog_instruction *const inst = &prog->Instructions[i]; in _mesa_constant_fold() 146 get_value(prog, &inst->SrcReg[0], a); in _mesa_constant_fold() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | arbprogparse.c | 71 struct gl_program prog; in _mesa_parse_arb_fragment_program() local 77 memset(&prog, 0, sizeof(prog)); in _mesa_parse_arb_fragment_program() 79 state.prog = &prog; in _mesa_parse_arb_fragment_program() 93 program->Base.String = prog.String; in _mesa_parse_arb_fragment_program() 94 program->Base.NumInstructions = prog.NumInstructions; in _mesa_parse_arb_fragment_program() 95 program->Base.NumTemporaries = prog.NumTemporaries; in _mesa_parse_arb_fragment_program() 96 program->Base.NumParameters = prog.NumParameters; in _mesa_parse_arb_fragment_program() 97 program->Base.NumAttributes = prog.NumAttributes; in _mesa_parse_arb_fragment_program() 98 program->Base.NumAddressRegs = prog.NumAddressRegs; in _mesa_parse_arb_fragment_program() 99 program->Base.NumNativeInstructions = prog.NumNativeInstructions; in _mesa_parse_arb_fragment_program() [all …]
|
D | program.h | 69 struct gl_vertex_program *prog, 74 struct gl_fragment_program *prog, 79 struct gl_geometry_program *prog, 86 _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog); 94 struct gl_program *prog); 99 struct gl_program *prog) in _mesa_reference_program() argument 101 if (*ptr != prog) in _mesa_reference_program() 102 _mesa_reference_program_(ctx, ptr, prog); in _mesa_reference_program() 108 struct gl_vertex_program *prog) in _mesa_reference_vertprog() argument 111 (struct gl_program *) prog); in _mesa_reference_vertprog() [all …]
|
D | program.c | 264 _mesa_init_program_struct( struct gl_context *ctx, struct gl_program *prog, in _mesa_init_program_struct() argument 268 if (prog) { in _mesa_init_program_struct() 270 memset(prog, 0, sizeof(*prog)); in _mesa_init_program_struct() 271 prog->Id = id; in _mesa_init_program_struct() 272 prog->Target = target; in _mesa_init_program_struct() 273 prog->Resident = GL_TRUE; in _mesa_init_program_struct() 274 prog->RefCount = 1; in _mesa_init_program_struct() 275 prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB; in _mesa_init_program_struct() 279 prog->SamplerUnits[i] = i; in _mesa_init_program_struct() 282 return prog; in _mesa_init_program_struct() [all …]
|
D | prog_opt_constant_fold.c | 47 src_reg_for_float(struct gl_program *prog, float val) in src_reg_for_float() argument 55 src.Index = _mesa_add_unnamed_constant(prog->Parameters, in src_reg_for_float() 62 src_reg_for_vec4(struct gl_program *prog, const float *val) in src_reg_for_vec4() argument 70 src.Index = _mesa_add_unnamed_constant(prog->Parameters, in src_reg_for_vec4() 90 get_value(struct gl_program *prog, struct prog_src_register *r, float *data) in get_value() argument 93 prog->Parameters->ParameterValues[r->Index]; in get_value() 131 _mesa_constant_fold(struct gl_program *prog) in _mesa_constant_fold() argument 136 for (i = 0; i < prog->NumInstructions; i++) { in _mesa_constant_fold() 137 struct prog_instruction *const inst = &prog->Instructions[i]; in _mesa_constant_fold() 146 get_value(prog, &inst->SrcReg[0], a); in _mesa_constant_fold() [all …]
|
/external/mesa3d/src/gallium/drivers/nv50/ |
D | nv50_program.c | 39 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() 56 prog->in_nr = info->numInputs; in nv50_vertprog_assign_slots() 61 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_INSTANCE_ID; in nv50_vertprog_assign_slots() 64 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_VERTEX_ID; in nv50_vertprog_assign_slots() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv50/ |
D | nv50_program.c | 39 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() 56 prog->in_nr = info->numInputs; in nv50_vertprog_assign_slots() 61 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_INSTANCE_ID; in nv50_vertprog_assign_slots() 64 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_VERTEX_ID; in nv50_vertprog_assign_slots() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_program.c | 46 struct gl_program *prog ) in brwBindProgram() argument 68 struct brw_vertex_program *prog = CALLOC_STRUCT(brw_vertex_program); in brwNewProgram() local 69 if (prog) { in brwNewProgram() 70 prog->id = brw->program_id++; in brwNewProgram() 72 return _mesa_init_vertex_program( ctx, &prog->program, in brwNewProgram() 80 struct brw_fragment_program *prog = CALLOC_STRUCT(brw_fragment_program); in brwNewProgram() local 81 if (prog) { in brwNewProgram() 82 prog->id = brw->program_id++; in brwNewProgram() 84 return _mesa_init_fragment_program( ctx, &prog->program, in brwNewProgram() 97 struct gl_program *prog ) in brwDeleteProgram() argument [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
D | brw_program.c | 46 struct gl_program *prog ) in brwBindProgram() argument 68 struct brw_vertex_program *prog = CALLOC_STRUCT(brw_vertex_program); in brwNewProgram() local 69 if (prog) { in brwNewProgram() 70 prog->id = brw->program_id++; in brwNewProgram() 72 return _mesa_init_vertex_program( ctx, &prog->program, in brwNewProgram() 80 struct brw_fragment_program *prog = CALLOC_STRUCT(brw_fragment_program); in brwNewProgram() local 81 if (prog) { in brwNewProgram() 82 prog->id = brw->program_id++; in brwNewProgram() 84 return _mesa_init_fragment_program( ctx, &prog->program, in brwNewProgram() 97 struct gl_program *prog ) in brwDeleteProgram() argument [all …]
|
/external/mesa3d/src/glsl/ |
D | linker.cpp | 176 linker_error(gl_shader_program *prog, const char *fmt, ...) in linker_error() argument 180 ralloc_strcat(&prog->InfoLog, "error: "); in linker_error() 182 ralloc_vasprintf_append(&prog->InfoLog, fmt, ap); in linker_error() 185 prog->LinkStatus = false; in linker_error() 190 linker_warning(gl_shader_program *prog, const char *fmt, ...) in linker_warning() argument 194 ralloc_strcat(&prog->InfoLog, "error: "); in linker_warning() 196 ralloc_vasprintf_append(&prog->InfoLog, fmt, ap); in linker_warning() 264 validate_vertex_shader_executable(struct gl_shader_program *prog, in validate_vertex_shader_executable() argument 293 if (prog->Version < 140) { in validate_vertex_shader_executable() 297 linker_error(prog, "vertex shader does not write to `gl_Position'\n"); in validate_vertex_shader_executable() [all …]
|
D | ir_set_program_inouts.cpp | 48 ir_set_program_inouts_visitor(struct gl_program *prog, in ir_set_program_inouts_visitor() argument 51 this->prog = prog; in ir_set_program_inouts_visitor() 69 struct gl_program *prog; member in ir_set_program_inouts_visitor 75 mark(struct gl_program *prog, ir_variable *var, int offset, int len, in mark() argument 89 prog->InputsRead |= bitfield; in mark() 91 gl_fragment_program *fprog = (gl_fragment_program *) prog; in mark() 98 prog->SystemValuesRead |= bitfield; in mark() 100 prog->OutputsWritten |= bitfield; in mark() 113 mark(this->prog, ir->var, 0, in visit() 117 mark(this->prog, ir->var, 0, ir->type->matrix_columns, in visit() [all …]
|
/external/chromium_org/third_party/mesa/src/src/glsl/ |
D | linker.cpp | 176 linker_error(gl_shader_program *prog, const char *fmt, ...) in linker_error() argument 180 ralloc_strcat(&prog->InfoLog, "error: "); in linker_error() 182 ralloc_vasprintf_append(&prog->InfoLog, fmt, ap); in linker_error() 185 prog->LinkStatus = false; in linker_error() 190 linker_warning(gl_shader_program *prog, const char *fmt, ...) in linker_warning() argument 194 ralloc_strcat(&prog->InfoLog, "error: "); in linker_warning() 196 ralloc_vasprintf_append(&prog->InfoLog, fmt, ap); in linker_warning() 264 validate_vertex_shader_executable(struct gl_shader_program *prog, in validate_vertex_shader_executable() argument 293 if (prog->Version < 140) { in validate_vertex_shader_executable() 297 linker_error(prog, "vertex shader does not write to `gl_Position'\n"); in validate_vertex_shader_executable() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nvc0/ |
D | nvc0_program.c | 526 nvc0_program_dump(struct nvc0_program *prog) in nvc0_program_dump() argument 530 for (pos = 0; pos < sizeof(prog->hdr) / sizeof(prog->hdr[0]); ++pos) in nvc0_program_dump() 532 pos * sizeof(prog->hdr[0]), prog->hdr[pos]); in nvc0_program_dump() 534 debug_printf("shader binary code (0x%x bytes):", prog->code_size); in nvc0_program_dump() 535 for (pos = 0; pos < prog->code_size / 4; ++pos) { in nvc0_program_dump() 538 debug_printf("%08x ", prog->code[pos]); in nvc0_program_dump() 545 nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset) in nvc0_program_translate() argument 554 info->type = prog->type; in nvc0_program_translate() 557 info->bin.source = (void *)prog->pipe.tokens; in nvc0_program_translate() 559 info->io.genUserClip = prog->vp.num_ucps; in nvc0_program_translate() [all …]
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
D | nvc0_program.c | 526 nvc0_program_dump(struct nvc0_program *prog) in nvc0_program_dump() argument 530 for (pos = 0; pos < sizeof(prog->hdr) / sizeof(prog->hdr[0]); ++pos) in nvc0_program_dump() 532 pos * sizeof(prog->hdr[0]), prog->hdr[pos]); in nvc0_program_dump() 534 debug_printf("shader binary code (0x%x bytes):", prog->code_size); in nvc0_program_dump() 535 for (pos = 0; pos < prog->code_size / 4; ++pos) { in nvc0_program_dump() 538 debug_printf("%08x ", prog->code[pos]); in nvc0_program_dump() 545 nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset) in nvc0_program_translate() argument 554 info->type = prog->type; in nvc0_program_translate() 557 info->bin.source = (void *)prog->pipe.tokens; in nvc0_program_translate() 559 info->io.genUserClip = prog->vp.num_ucps; in nvc0_program_translate() [all …]
|
/external/mksh/src/ |
D | check.pl | 178 ($prog = $0) =~ s#.*/##; 181 Usage: $prog [-Pv] [-C cat] [-e e=v] [-p prog] [-s fn] [-T dir] \ 248 die "$prog: no program specified (use -p)\n" if !defined $opt_p; 249 die "$prog: no test set specified (use -s)\n" if !defined $opt_s; 255 die "$prog: bad -t argument (should be number > 0): $opt_t\n" 264 die "$prog: categories can't be negated on the command line\n" 299 die "$prog: couldn't get current working directory\n" if $pwd eq ''; 300 die "$prog: couldn't cd to $pwd - $!\n" if !chdir($pwd); 302 die "$prog: couldn't cd to $temp_base - $!\n" if !chdir($temp_base); 303 die "$prog: couldn't get temporary directory base\n" unless -d '.'; [all …]
|
/external/mesa3d/src/gallium/state_trackers/clover/api/ |
D | program.cpp | 115 clRetainProgram(cl_program prog) { in clRetainProgram() argument 116 if (!prog) in clRetainProgram() 119 prog->retain(); in clRetainProgram() 124 clReleaseProgram(cl_program prog) { in clReleaseProgram() argument 125 if (!prog) in clReleaseProgram() 128 if (prog->release()) in clReleaseProgram() 129 delete prog; in clReleaseProgram() 135 clBuildProgram(cl_program prog, cl_uint count, const cl_device_id *devs, in clBuildProgram() argument 138 if (!prog) in clBuildProgram() 147 return !prog->ctx.has_device(dev); in clBuildProgram() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/clover/api/ |
D | program.cpp | 115 clRetainProgram(cl_program prog) { in clRetainProgram() argument 116 if (!prog) in clRetainProgram() 119 prog->retain(); in clRetainProgram() 124 clReleaseProgram(cl_program prog) { in clReleaseProgram() argument 125 if (!prog) in clReleaseProgram() 128 if (prog->release()) in clReleaseProgram() 129 delete prog; in clReleaseProgram() 135 clBuildProgram(cl_program prog, cl_uint count, const cl_device_id *devs, in clBuildProgram() argument 138 if (!prog) in clBuildProgram() 147 return !prog->ctx.has_device(dev); in clBuildProgram() [all …]
|
/external/chromium_org/third_party/re2/re2/testing/ |
D | dfa_test.cc | 26 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/regex-re2/re2/testing/ |
D | dfa_test.cc | 26 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 …]
|