Home
last modified time | relevance | path

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

12345678910>>...26

/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_program.c43 struct nv50_program *prog = (struct nv50_program *)info->driverPriv; in nv50_vertprog_assign_slots() local
48 prog->in[i].id = i; in nv50_vertprog_assign_slots()
49 prog->in[i].sn = info->in[i].sn; in nv50_vertprog_assign_slots()
50 prog->in[i].si = info->in[i].si; in nv50_vertprog_assign_slots()
51 prog->in[i].hw = n; in nv50_vertprog_assign_slots()
52 prog->in[i].mask = info->in[i].mask; in nv50_vertprog_assign_slots()
54 prog->vp.attrs[(4 * i) / 32] |= info->in[i].mask << ((4 * i) % 32); in nv50_vertprog_assign_slots()
61 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_PRIMITIVE_ID; in nv50_vertprog_assign_slots()
63 prog->in_nr = info->numInputs; in nv50_vertprog_assign_slots()
68 prog->vp.attrs[2] |= NV50_3D_VP_GP_BUILTIN_ATTR_EN_INSTANCE_ID; in nv50_vertprog_assign_slots()
[all …]
/third_party/mesa3d/src/mesa/state_tracker/
Dst_shader_cache.c56 copy_blob_to_driver_cache_blob(struct blob *blob, struct gl_program *prog) in copy_blob_to_driver_cache_blob() argument
58 prog->driver_cache_blob = ralloc_size(NULL, blob->size); in copy_blob_to_driver_cache_blob()
59 memcpy(prog->driver_cache_blob, blob->data, blob->size); in copy_blob_to_driver_cache_blob()
60 prog->driver_cache_blob_size = blob->size; in copy_blob_to_driver_cache_blob()
64 write_nir_to_cache(struct blob *blob, struct gl_program *prog) in write_nir_to_cache() argument
66 st_serialize_nir(prog); in write_nir_to_cache()
68 blob_write_intptr(blob, prog->serialized_nir_size); in write_nir_to_cache()
69 blob_write_bytes(blob, prog->serialized_nir, prog->serialized_nir_size); in write_nir_to_cache()
71 copy_blob_to_driver_cache_blob(blob, prog); in write_nir_to_cache()
75 st_serialise_nir_program(struct gl_context *ctx, struct gl_program *prog) in st_serialise_nir_program() argument
[all …]
Dst_program.c77 struct gl_program *prog, in set_affected_state_flags() argument
86 if (prog->Parameters->NumParameters) in set_affected_state_flags()
89 if (prog->info.num_textures) in set_affected_state_flags()
92 if (prog->info.num_images) in set_affected_state_flags()
95 if (prog->info.num_ubos) in set_affected_state_flags()
98 if (prog->info.num_ssbos) in set_affected_state_flags()
101 if (prog->info.num_abos) in set_affected_state_flags()
109 st_set_prog_affected_state_flags(struct gl_program *prog) in st_set_prog_affected_state_flags() argument
113 switch (prog->info.stage) { in st_set_prog_affected_state_flags()
115 states = &prog->affected_states; in st_set_prog_affected_state_flags()
[all …]
Dst_atom_storagebuf.c43 st_bind_ssbos(struct st_context *st, struct gl_program *prog, in st_bind_ssbos() argument
48 if (!prog || !st->pipe->set_shader_buffers) in st_bind_ssbos()
51 for (i = 0; i < prog->info.num_ssbos; i++) { in st_bind_ssbos()
57 prog->sh.ShaderStorageBlocks[i]->Binding]; in st_bind_ssbos()
78 prog->info.num_ssbos, buffers, in st_bind_ssbos()
79 prog->sh.ShaderStorageBlocksWriteAccess); in st_bind_ssbos()
82 int num_ssbos = prog->info.num_ssbos; in st_bind_ssbos()
97 struct gl_program *prog = in st_bind_vs_ssbos() local
100 st_bind_ssbos(st, prog, PIPE_SHADER_VERTEX); in st_bind_vs_ssbos()
105 struct gl_program *prog = in st_bind_fs_ssbos() local
[all …]
Dst_glsl_to_nir.cpp128 st_nir_lookup_parameter_index(struct gl_program *prog, nir_variable *var) in st_nir_lookup_parameter_index() argument
130 struct gl_program_parameter_list *params = prog->Parameters; in st_nir_lookup_parameter_index()
163 if (!prog->sh.data->spirv) { in st_nir_lookup_parameter_index()
179 struct gl_program *prog, in st_nir_assign_uniform_locations() argument
209 loc = _mesa_add_sized_state_reference(prog->Parameters, in st_nir_assign_uniform_locations()
211 loc = prog->Parameters->Parameters[loc].ValueOffset; in st_nir_assign_uniform_locations()
213 loc = _mesa_add_state_reference(prog->Parameters, stateTokens); in st_nir_assign_uniform_locations()
216 loc = st_nir_lookup_parameter_index(prog, uniform); in st_nir_assign_uniform_locations()
223 loc = prog->Parameters->Parameters[loc].ValueOffset; in st_nir_assign_uniform_locations()
332 st_nir_preprocess(struct st_context *st, struct gl_program *prog, in st_nir_preprocess() argument
[all …]
Dst_atom_constbuf.c70 st_upload_constants(struct st_context *st, struct gl_program *prog, gl_shader_stage stage) in st_upload_constants() argument
73 if (!prog) { in st_upload_constants()
78 struct gl_program_parameter_list *params = prog->Parameters; in st_upload_constants()
107 st_make_bound_samplers_resident(st, prog); in st_upload_constants()
108 st_make_bound_images_resident(st, prog); in st_upload_constants()
154 unsigned num_inlinable_uniforms = prog->info.num_inlinable_uniforms; in st_upload_constants()
161 unsigned dw_offset = prog->info.inlinable_uniform_dw_offsets[i]; in st_upload_constants()
168 values[i] = constbuf[prog->info.inlinable_uniform_dw_offsets[i]].u; in st_upload_constants()
172 prog->info.num_inlinable_uniforms, in st_upload_constants()
189 unsigned num_inlinable_uniforms = prog->info.num_inlinable_uniforms; in st_upload_constants()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dserialize.cpp43 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.string = ralloc_strdup(prog, blob_read_string (metadata)); in read_subroutines()
96 subs[j].types = rzalloc_array(prog, const struct glsl_type *, in read_subroutines()
123 write_buffer_blocks(struct blob *metadata, struct gl_shader_program *prog) in write_buffer_blocks() argument
125 blob_write_uint32(metadata, prog->data->NumUniformBlocks); in write_buffer_blocks()
126 blob_write_uint32(metadata, prog->data->NumShaderStorageBlocks); in write_buffer_blocks()
[all …]
Dlinker.cpp269 gl_shader_program *prog; member in __anon52c9b1f30111::array_resize_visitor
273 gl_shader_program *prog, in array_resize_visitor() argument
277 this->prog = prog; in array_resize_visitor()
300 linker_error(this->prog, "size of array %s declared as %u, " in visit()
311 linker_error(this->prog, "%s shader accesses element %i of " in visit()
457 linker_error(gl_shader_program *prog, const char *fmt, ...) in linker_error() argument
461 ralloc_strcat(&prog->data->InfoLog, "error: "); in linker_error()
463 ralloc_vasprintf_append(&prog->data->InfoLog, fmt, ap); in linker_error()
466 prog->data->LinkStatus = LINKING_FAILURE; in linker_error()
471 linker_warning(gl_shader_program *prog, const char *fmt, ...) in linker_warning() argument
[all …]
Dlinker_util.cpp106 link_util_should_add_buffer_variable(struct gl_shader_program *prog, in link_util_should_add_buffer_variable() argument
135 link_util_add_program_resource(struct gl_shader_program *prog, in link_util_add_program_resource() argument
145 prog->data->ProgramResourceList = in link_util_add_program_resource()
146 reralloc(prog->data, in link_util_add_program_resource()
147 prog->data->ProgramResourceList, in link_util_add_program_resource()
149 prog->data->NumProgramResourceList + 1); in link_util_add_program_resource()
151 if (!prog->data->ProgramResourceList) { in link_util_add_program_resource()
152 linker_error(prog, "Out of memory during linking.\n"); in link_util_add_program_resource()
157 &prog->data->ProgramResourceList[prog->data->NumProgramResourceList]; in link_util_add_program_resource()
163 prog->data->NumProgramResourceList++; in link_util_add_program_resource()
[all …]
Dshader_cache.cpp73 compile_shaders(struct gl_context *ctx, struct gl_shader_program *prog) { in compile_shaders() argument
74 for (unsigned i = 0; i < prog->NumShaders; i++) { in compile_shaders()
75 _mesa_glsl_compile_shader(ctx, prog->Shaders[i], false, false, true); in compile_shaders()
88 struct gl_shader_program *prog) in shader_cache_write_program_metadata() argument
100 static const char zero[sizeof(prog->data->sha1)] = {0}; in shader_cache_write_program_metadata()
101 if (memcmp(prog->data->sha1, zero, sizeof(prog->data->sha1)) == 0) in shader_cache_write_program_metadata()
109 struct gl_linked_shader *sh = prog->_LinkedShaders[i]; in shader_cache_write_program_metadata()
115 serialize_glsl_program(&metadata, ctx, prog); in shader_cache_write_program_metadata()
120 (cache_key *) malloc(prog->NumShaders * sizeof(cache_key)); in shader_cache_write_program_metadata()
121 cache_item_metadata.num_keys = prog->NumShaders; in shader_cache_write_program_metadata()
[all …]
Dgl_nir_linker.c442 struct gl_shader_program *prog, struct set *resource_set, in add_vars_with_modes() argument
472 if (prog->data->spirv) { in add_vars_with_modes()
474 rzalloc(prog, struct gl_shader_variable); in add_vars_with_modes()
486 if (!link_util_add_program_resource(prog, resource_set, in add_vars_with_modes()
507 if (!add_shader_variable(consts, prog, resource_set, in add_vars_with_modes()
523 struct gl_shader_program *prog, in add_interface_variables() argument
527 struct gl_linked_shader *sh = prog->_LinkedShaders[stage]; in add_interface_variables()
536 return add_vars_with_modes(consts, prog, resource_set, in add_interface_variables()
541 return add_vars_with_modes(consts, prog, resource_set, in add_interface_variables()
572 init_program_resource_list(struct gl_shader_program *prog) in init_program_resource_list() argument
[all …]
Dgl_nir_link_uniforms.c101 update_array_sizes(struct gl_shader_program *prog, nir_variable *var, in update_array_sizes() argument
131 struct gl_linked_shader *sh = prog->_LinkedShaders[stage]; in update_array_sizes()
180 struct gl_shader_program *prog) in nir_setup_uniform_remap_tables() argument
182 unsigned total_entries = prog->NumExplicitUniformLocations; in nir_setup_uniform_remap_tables()
187 assert(!prog->data->spirv || in nir_setup_uniform_remap_tables()
188 (prog->data->spirv && !prog->UniformRemapTable)); in nir_setup_uniform_remap_tables()
189 if (!prog->UniformRemapTable) { in nir_setup_uniform_remap_tables()
190 prog->UniformRemapTable = rzalloc_array(prog, in nir_setup_uniform_remap_tables()
192 prog->NumUniformRemapTable); in nir_setup_uniform_remap_tables()
196 rzalloc_array(prog->data, in nir_setup_uniform_remap_tables()
[all …]
Dlink_varyings.cpp70 struct gl_shader_program *prog, in cross_validate_types_and_qualifiers() argument
100 linker_error(prog, in cross_validate_types_and_qualifiers()
129 linker_error(prog, in cross_validate_types_and_qualifiers()
151 prog->data->Version < (prog->IsES ? 310 : 430) && in cross_validate_types_and_qualifiers()
153 linker_error(prog, in cross_validate_types_and_qualifiers()
165 linker_error(prog, in cross_validate_types_and_qualifiers()
177 linker_error(prog, in cross_validate_types_and_qualifiers()
206 prog->data->Version < (prog->IsES ? 300 : 420)) { in cross_validate_types_and_qualifiers()
207 linker_error(prog, in cross_validate_types_and_qualifiers()
236 if (prog->IsES) { in cross_validate_types_and_qualifiers()
[all …]
Dlink_interface_blocks.cpp44 interstage_member_mismatch(struct gl_shader_program *prog, in interstage_member_mismatch() argument
72 if (prog->IsES || prog->data->Version < 440) in interstage_member_mismatch()
91 if (!prog->IsES || prog->data->Version < 310) in interstage_member_mismatch()
95 if (!prog->IsES) in interstage_member_mismatch()
112 struct gl_shader_program *prog, in intrastage_match() argument
122 (prog->IsES ? in intrastage_match()
134 (!prog->IsES || in intrastage_match()
135 interstage_member_mismatch(prog, a->get_interface_type(), in intrastage_match()
163 !validate_intrastage_arrays(prog, b, a, match_precision)) in intrastage_match()
178 interstage_match(struct gl_shader_program *prog, ir_variable *producer, in interstage_match() argument
[all …]
/third_party/mesa3d/src/mesa/program/
Darbprogparse.c69 struct gl_program prog; in _mesa_parse_arb_fragment_program() local
75 memset(&prog, 0, sizeof(prog)); in _mesa_parse_arb_fragment_program()
77 state.prog = &prog; in _mesa_parse_arb_fragment_program()
91 program->String = prog.String; in _mesa_parse_arb_fragment_program()
92 program->arb.NumInstructions = prog.arb.NumInstructions; in _mesa_parse_arb_fragment_program()
93 program->arb.NumTemporaries = prog.arb.NumTemporaries; in _mesa_parse_arb_fragment_program()
94 program->arb.NumParameters = prog.arb.NumParameters; in _mesa_parse_arb_fragment_program()
95 program->arb.NumAttributes = prog.arb.NumAttributes; in _mesa_parse_arb_fragment_program()
96 program->arb.NumAddressRegs = prog.arb.NumAddressRegs; in _mesa_parse_arb_fragment_program()
97 program->arb.NumNativeInstructions = prog.arb.NumNativeInstructions; in _mesa_parse_arb_fragment_program()
[all …]
Dlink_program.cpp43 _mesa_glsl_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) in _mesa_glsl_link_shader() argument
48 _mesa_clear_shader_program_data(ctx, prog); in _mesa_glsl_link_shader()
50 prog->data = _mesa_create_shader_program_data(); in _mesa_glsl_link_shader()
52 prog->data->LinkStatus = LINKING_SUCCESS; in _mesa_glsl_link_shader()
54 for (i = 0; i < prog->NumShaders; i++) { in _mesa_glsl_link_shader()
55 if (!prog->Shaders[i]->CompileStatus) { in _mesa_glsl_link_shader()
56 linker_error(prog, "linking with uncompiled/unspecialized shader"); in _mesa_glsl_link_shader()
60 spirv = (prog->Shaders[i]->spirv_data != NULL); in _mesa_glsl_link_shader()
61 } else if (spirv && !prog->Shaders[i]->spirv_data) { in _mesa_glsl_link_shader()
68 linker_error(prog, in _mesa_glsl_link_shader()
[all …]
Dprogram.c187 _mesa_init_gl_program(struct gl_program *prog, gl_shader_stage stage, in _mesa_init_gl_program() argument
190 if (!prog) in _mesa_init_gl_program()
193 memset(prog, 0, sizeof(*prog)); in _mesa_init_gl_program()
194 prog->Id = id; in _mesa_init_gl_program()
195 prog->Target = _mesa_shader_stage_to_program(stage); in _mesa_init_gl_program()
196 prog->RefCount = 1; in _mesa_init_gl_program()
197 prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB; in _mesa_init_gl_program()
198 prog->info.stage = stage; in _mesa_init_gl_program()
199 prog->info.use_legacy_math_rules = is_arb_asm; in _mesa_init_gl_program()
215 prog->SamplerUnits[i] = i; in _mesa_init_gl_program()
[all …]
Dprog_print.c367 GLboolean relAddr, const struct gl_program *prog) in reg_string() argument
383 sprintf(str, "%s", arb_input_attrib_string(index, prog->Target)); in reg_string()
386 sprintf(str, "%s", arb_output_attrib_string(index, prog->Target)); in reg_string()
403 = prog->Parameters->Parameters + index; in reg_string()
519 const struct gl_program *prog) in fprint_dst_reg() argument
523 dstReg->Index, mode, dstReg->RelAddr, prog), in fprint_dst_reg()
539 const struct gl_program *prog) in fprint_src_reg() argument
543 srcReg->Index, mode, srcReg->RelAddr, prog), in fprint_src_reg()
561 const struct gl_program *prog) in _mesa_fprint_alu_instruction() argument
573 fprint_dst_reg(f, &inst->DstReg, mode, prog); in _mesa_fprint_alu_instruction()
[all …]
/third_party/mesa3d/src/mesa/main/
Darbprogram.c182 struct gl_program *prog = _mesa_lookup_program(ctx, ids[i]); in _mesa_DeleteProgramsARB() local
183 if (prog == &_mesa_DummyProgram) { in _mesa_DeleteProgramsARB()
186 else if (prog) { in _mesa_DeleteProgramsARB()
188 switch (prog->Target) { in _mesa_DeleteProgramsARB()
193 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
200 _mesa_BindProgramARB(prog->Target, 0); in _mesa_DeleteProgramsARB()
209 _mesa_reference_program(ctx, &prog, NULL); in _mesa_DeleteProgramsARB()
259 struct gl_program *prog = NULL; in _mesa_IsProgramARB() local
266 prog = _mesa_lookup_program(ctx, id); in _mesa_IsProgramARB()
267 if (prog && (prog != &_mesa_DummyProgram)) in _mesa_IsProgramARB()
[all …]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_program.c552 nvc0_program_dump(struct nvc0_program *prog) in nvc0_program_dump() argument
556 if (prog->type != PIPE_SHADER_COMPUTE) { in nvc0_program_dump()
557 _debug_printf("dumping HDR for type %i\n", prog->type); in nvc0_program_dump()
558 for (pos = 0; pos < ARRAY_SIZE(prog->hdr); ++pos) in nvc0_program_dump()
560 pos * sizeof(prog->hdr[0]), prog->hdr[pos]); in nvc0_program_dump()
562 _debug_printf("shader binary code (0x%x bytes):", prog->code_size); in nvc0_program_dump()
563 for (pos = 0; pos < prog->code_size / 4; ++pos) { in nvc0_program_dump()
566 _debug_printf("%08x ", prog->code[pos]); in nvc0_program_dump()
573 nvc0_program_translate(struct nvc0_program *prog, uint16_t chipset, in nvc0_program_translate() argument
590 info->type = prog->type; in nvc0_program_translate()
[all …]
/third_party/mksh/
Dcheck.pl184 ($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 …]
/third_party/mesa3d/src/gallium/frontends/clover/api/
Dprogram.cpp46 build_notifier(cl_program prog, in build_notifier() argument
48 prog_(prog), notifer(notifer), data_(data) { } in build_notifier()
62 validate_build_common(const program &prog, cl_uint num_devs, in validate_build_common() argument
69 if (prog.kernel_ref_count()) in validate_build_common()
73 return !count(dev, prog.devices()); in validate_build_common()
272 auto &prog = obj(d_prog); in clBuildProgram() local
274 (d_devs ? objs(d_devs, num_devs) : ref_vector<device>(prog.devices())); in clBuildProgram()
277 validate_build_common(prog, num_devs, d_devs, pfn_notify, user_data); in clBuildProgram()
281 if (prog.il_type() != program::il_type::none) { in clBuildProgram()
282 prog.compile(devs, opts); in clBuildProgram()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_program.c93 struct zink_shader *zs, struct zink_gfx_program *prog, in get_shader_module_for_stage() argument
109 …if (zs->can_inline && (screen->is_cpu || prog->inlined_variant_count[pstage] < ZINK_MAX_INLINED_VA… in get_shader_module_for_stage()
118 …LIST_FOR_EACH_ENTRY_SAFE(iter, next, &prog->shader_cache[pstage][!!nonseamless_size][!!inline_size… in get_shader_module_for_stage()
136 mod = zink_shader_compile(screen, zs, prog->nir[stage], key); in get_shader_module_for_stage()
163 zm->default_variant = !inline_size && list_is_empty(&prog->shader_cache[pstage][0][0]); in get_shader_module_for_stage()
165 prog->inlined_variant_count[pstage]++; in get_shader_module_for_stage()
167 list_add(&zm->list, &prog->shader_cache[pstage][!!nonseamless_size][!!inline_size]); in get_shader_module_for_stage()
191 struct zink_gfx_program *prog, uint32_t mask, in update_gfx_shader_modules() argument
196 bool first = !prog->modules[PIPE_SHADER_VERTEX]; in update_gfx_shader_modules()
197 uint32_t variant_hash = prog->last_variant_hash; in update_gfx_shader_modules()
[all …]
/third_party/node/deps/openssl/openssl/apps/lib/
Dopt.c46 static char prog[40]; variable
81 if (n > sizeof(prog) - 1) in opt_progname()
82 n = sizeof(prog) - 1; in opt_progname()
83 for (q = prog, i = 0; i < n; i++, p++) in opt_progname()
86 return prog; in opt_progname()
111 if (prog != p) in opt_progname()
112 strncpy(prog, p, sizeof(prog) - 1); in opt_progname()
113 prog[sizeof(prog) - 1] = '\0'; in opt_progname()
114 if (q != NULL && q - p < sizeof(prog)) in opt_progname()
115 prog[q - p] = '\0'; in opt_progname()
[all …]
/third_party/openssl/apps/lib/
Dopt.c46 static char prog[40]; variable
81 if (n > sizeof(prog) - 1) in opt_progname()
82 n = sizeof(prog) - 1; in opt_progname()
83 for (q = prog, i = 0; i < n; i++, p++) in opt_progname()
86 return prog; in opt_progname()
111 if (prog != p) in opt_progname()
112 strncpy(prog, p, sizeof(prog) - 1); in opt_progname()
113 prog[sizeof(prog) - 1] = '\0'; in opt_progname()
114 if (q != NULL && q - p < sizeof(prog)) in opt_progname()
115 prog[q - p] = '\0'; in opt_progname()
[all …]

12345678910>>...26