Home
last modified time | relevance | path

Searched refs:prog (Results 1 - 25 of 543) sorted by relevance

12345678910>>...22

/third_party/mesa3d/src/mesa/state_tracker/
H A 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) st_serialise_nir_program() argument
106 st_store_nir_in_disk_cache(struct st_context *st, struct gl_program *prog) st_store_nir_in_disk_cache() argument
141 st_deserialise_nir_program(struct gl_context *ctx, struct gl_shader_program *shProg, struct gl_program *prog) st_deserialise_nir_program() argument
203 st_load_nir_from_disk_cache(struct gl_context *ctx, struct gl_shader_program *prog) st_load_nir_from_disk_cache() argument
237 st_serialise_nir_program_binary(struct gl_context *ctx, struct gl_shader_program *shProg, struct gl_program *prog) st_serialise_nir_program_binary() argument
[all...]
H A Dst_program.c77 struct gl_program *prog, in set_affected_state_flags()
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 in st_set_prog_affected_state_flags()
76 set_affected_state_flags(uint64_t *states, struct gl_program *prog, uint64_t new_constants, uint64_t new_sampler_views, uint64_t new_samplers, uint64_t new_images, uint64_t new_ubos, uint64_t new_ssbos, uint64_t new_atomics) set_affected_state_flags() argument
374 st_prog_to_nir_postprocess(struct st_context *st, nir_shader *nir, struct gl_program *prog) st_prog_to_nir_postprocess() argument
411 st_translate_prog_to_nir(struct st_context *st, struct gl_program *prog, gl_shader_stage stage) st_translate_prog_to_nir() argument
432 st_prepare_vertex_program(struct gl_program *prog) st_prepare_vertex_program() argument
451 st_translate_stream_output_info(struct gl_program *prog) st_translate_stream_output_info() argument
577 st_translate_vertex_program(struct st_context *st, struct gl_program *prog) st_translate_vertex_program() argument
612 get_nir_shader(struct st_context *st, struct gl_program *prog) get_nir_shader() argument
676 st_create_common_variant(struct st_context *st, struct gl_program *prog, const struct st_common_variant_key *key) st_create_common_variant() argument
777 st_get_common_variant(struct st_context *st, struct gl_program *prog, const struct st_common_variant_key *key) st_get_common_variant() argument
1224 st_can_add_pointsize_to_program(struct st_context *st, struct gl_program *prog) st_can_add_pointsize_to_program() argument
1256 st_precompile_shader_variant(struct st_context *st, struct gl_program *prog) st_precompile_shader_variant() argument
1304 st_serialize_nir(struct gl_program *prog) st_serialize_nir() argument
1318 st_finalize_program(struct st_context *st, struct gl_program *prog) st_finalize_program() argument
[all...]
H A 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
113 struct gl_program *prog = st_bind_gs_ssbos() local
121 struct gl_program *prog = st_bind_tcs_ssbos() local
129 struct gl_program *prog = st_bind_tes_ssbos() local
137 struct gl_program *prog = st_bind_cs_ssbos() local
[all...]
H A Dst_atom_atomicbuf.c69 st_bind_atomics(struct st_context *st, struct gl_program *prog, in st_bind_atomics() argument
75 if (!prog || !st->pipe->set_shader_buffers || st->has_hw_atomics) in st_bind_atomics()
81 unsigned buffer_base = prog->info.num_ssbos; in st_bind_atomics()
83 for (i = 0; i < prog->sh.data->NumAtomicBuffers; i++) { in st_bind_atomics()
85 &prog->sh.data->AtomicBuffers[i]; in st_bind_atomics()
101 struct gl_program *prog = in st_bind_vs_atomics() local
104 st_bind_atomics(st, prog, MESA_SHADER_VERTEX); in st_bind_vs_atomics()
110 struct gl_program *prog = in st_bind_fs_atomics() local
113 st_bind_atomics(st, prog, MESA_SHADER_FRAGMENT); in st_bind_fs_atomics()
119 struct gl_program *prog in st_bind_gs_atomics() local
128 struct gl_program *prog = st_bind_tcs_atomics() local
137 struct gl_program *prog = st_bind_tes_atomics() local
150 struct gl_program *prog = st_bind_cs_atomics() local
[all...]
H A 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 in st_upload_constants()
262 st_bind_ubos(struct st_context *st, struct gl_program *prog, enum pipe_shader_type shader_type) st_bind_ubos() argument
303 struct gl_program *prog = st_bind_vs_ubos() local
312 struct gl_program *prog = st_bind_fs_ubos() local
321 struct gl_program *prog = st_bind_gs_ubos() local
330 struct gl_program *prog = st_bind_tcs_ubos() local
339 struct gl_program *prog = st_bind_tes_ubos() local
348 struct gl_program *prog = st_bind_cs_ubos() local
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
H A 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 in nv50_vertprog_assign_slots()
148 struct nv50_program *prog = (struct nv50_program *)info->driverPriv; nv50_fragprog_assign_slots() local
328 nv50_program_translate(struct nv50_program *prog, uint16_t chipset, struct util_debug_callback *debug) nv50_program_translate() argument
472 nv50_program_upload_code(struct nv50_context *nv50, struct nv50_program *prog) nv50_program_upload_code() argument
[all...]
/third_party/mesa3d/src/mesa/program/
H A 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 in _mesa_parse_arb_fragment_program()
163 struct gl_program prog; _mesa_parse_arb_vertex_program() local
[all...]
H A 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...]
H A 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 in _mesa_init_gl_program()
225 struct gl_program *prog; _mesa_new_program() local
244 _mesa_delete_program(struct gl_context *ctx, struct gl_program *prog) _mesa_delete_program() argument
302 _mesa_reference_program_(struct gl_context *ctx, struct gl_program **ptr, struct gl_program *prog) _mesa_reference_program_() argument
347 _mesa_get_min_invocations_per_fragment(struct gl_context *ctx, const struct gl_program *prog) _mesa_get_min_invocations_per_fragment() argument
381 gl_external_samplers(const struct gl_program *prog) gl_external_samplers() argument
410 _mesa_add_separate_state_parameters(struct gl_program *prog, struct gl_program_parameter_list *state_params) _mesa_add_separate_state_parameters() argument
[all...]
H A Dprog_print.c363 * \param prog pointer to containing program
367 GLboolean relAddr, const struct gl_program *prog) in reg_string()
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()
523 dstReg->Index, mode, dstReg->RelAddr, prog), in fprint_dst_reg()
539 const struct gl_program *prog) in fprint_src_reg()
543 srcReg->Index, mode, srcReg->RelAddr, prog), in fprint_src_reg()
561 const struct gl_program *prog) in _mesa_fprint_alu_instruction()
366 reg_string(gl_register_file f, GLint index, gl_prog_print_mode mode, GLboolean relAddr, const struct gl_program *prog) reg_string() argument
516 fprint_dst_reg(FILE * f, const struct prog_dst_register *dstReg, gl_prog_print_mode mode, const struct gl_program *prog) fprint_dst_reg() argument
536 fprint_src_reg(FILE *f, const struct prog_src_register *srcReg, gl_prog_print_mode mode, const struct gl_program *prog) fprint_src_reg() argument
557 _mesa_fprint_alu_instruction(FILE *f, const struct prog_instruction *inst, const char *opcode_string, GLuint numRegs, gl_prog_print_mode mode, const struct gl_program *prog) _mesa_fprint_alu_instruction() argument
605 _mesa_fprint_instruction_opt(FILE *f, const struct prog_instruction *inst, GLint indent, gl_prog_print_mode mode, const struct gl_program *prog) _mesa_fprint_instruction_opt() argument
762 _mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent, gl_prog_print_mode mode, const struct gl_program *prog) _mesa_print_instruction_opt() argument
784 _mesa_fprint_program_opt(FILE *f, const struct gl_program *prog, gl_prog_print_mode mode, GLboolean lineNumbers) _mesa_fprint_program_opt() argument
821 _mesa_print_program(const struct gl_program *prog) _mesa_print_program() argument
856 _mesa_fprint_program_parameters(FILE *f, struct gl_context *ctx, const struct gl_program *prog) _mesa_fprint_program_parameters() argument
900 _mesa_print_program_parameters(struct gl_context *ctx, const struct gl_program *prog) _mesa_print_program_parameters() argument
1008 _mesa_append_uniforms_to_file(const struct gl_program *prog) _mesa_append_uniforms_to_file() argument
[all...]
/third_party/mesa3d/src/compiler/glsl/
H A Dlinker.cpp269 gl_shader_program *prog; member in __anon7179::find_assignment_visitor::array_resize_visitor
273 gl_shader_program *prog, in array_resize_visitor()
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 in linker_error()
272 array_resize_visitor(unsigned num_vertices, gl_shader_program *prog, gl_shader_stage stage) array_resize_visitor() argument
471 linker_warning(gl_shader_program *prog, const char *fmt, ...) linker_warning() argument
517 analyze_clip_cull_usage(struct gl_shader_program *prog, struct gl_linked_shader *shader, const struct gl_constants *consts, struct shader_info *info) analyze_clip_cull_usage() argument
619 validate_vertex_shader_executable(struct gl_shader_program *prog, struct gl_linked_shader *shader, const struct gl_constants *consts) validate_vertex_shader_executable() argument
672 validate_tess_eval_shader_executable(struct gl_shader_program *prog, struct gl_linked_shader *shader, const struct gl_constants *consts) validate_tess_eval_shader_executable() argument
689 validate_fragment_shader_executable(struct gl_shader_program *prog, struct gl_linked_shader *shader) validate_fragment_shader_executable() argument
715 validate_geometry_shader_executable(struct gl_shader_program *prog, struct gl_linked_shader *shader, const struct gl_constants *consts) validate_geometry_shader_executable() argument
734 validate_geometry_shader_emissions(const struct gl_constants *consts, struct gl_shader_program *prog) validate_geometry_shader_emissions() argument
785 validate_intrastage_arrays(struct gl_shader_program *prog, ir_variable *const var, ir_variable *const existing, bool match_precision) validate_intrastage_arrays() argument
839 cross_validate_globals(const struct gl_constants *consts, struct gl_shader_program *prog, struct exec_list *ir, glsl_symbol_table *variables, bool uniforms_only) cross_validate_globals() argument
1120 cross_validate_uniforms(const struct gl_constants *consts, struct gl_shader_program *prog) cross_validate_uniforms() argument
1138 interstage_cross_validate_uniform_blocks(struct gl_shader_program *prog, bool validate_ssbo) interstage_cross_validate_uniform_blocks() argument
1240 validate_invariant_builtins(struct gl_shader_program *prog, const gl_linked_shader *vert, const gl_linked_shader *frag) validate_invariant_builtins() argument
1659 validate_xfb_buffer_stride(const struct gl_constants *consts, unsigned idx, struct gl_shader_program *prog) validate_xfb_buffer_stride() argument
1686 link_xfb_stride_layout_qualifiers(const struct gl_constants *consts, struct gl_shader_program *prog, struct gl_shader **shader_list, unsigned num_shaders) link_xfb_stride_layout_qualifiers() argument
1724 link_bindless_layout_qualifiers(struct gl_shader_program *prog, struct gl_shader **shader_list, unsigned num_shaders) link_bindless_layout_qualifiers() argument
1766 link_layer_viewport_relative_qualifier(struct gl_shader_program *prog, struct gl_program *gl_prog, struct gl_shader **shader_list, unsigned num_shaders) link_layer_viewport_relative_qualifier() argument
1801 link_tcs_out_layout_qualifiers(struct gl_shader_program *prog, struct gl_program *gl_prog, struct gl_shader **shader_list, unsigned num_shaders) link_tcs_out_layout_qualifiers() argument
1858 link_tes_in_layout_qualifiers(struct gl_shader_program *prog, struct gl_program *gl_prog, struct gl_shader **shader_list, unsigned num_shaders) link_tes_in_layout_qualifiers() argument
1966 link_fs_inout_layout_qualifiers(struct gl_shader_program *prog, struct gl_linked_shader *linked_shader, struct gl_shader **shader_list, unsigned num_shaders) link_fs_inout_layout_qualifiers() argument
2047 link_gs_inout_layout_qualifiers(struct gl_shader_program *prog, struct gl_program *gl_prog, struct gl_shader **shader_list, unsigned num_shaders) link_gs_inout_layout_qualifiers() argument
2160 link_cs_input_layout_qualifiers(struct gl_shader_program *prog, struct gl_program *gl_prog, struct gl_shader **shader_list, unsigned num_shaders) link_cs_input_layout_qualifiers() argument
2314 link_intrastage_shaders(void *mem_ctx, struct gl_context *ctx, struct gl_shader_program *prog, struct gl_shader **shader_list, unsigned num_shaders, bool allow_missing_main) link_intrastage_shaders() argument
2579 resize_tes_inputs(const struct gl_constants *consts, struct gl_shader_program *prog) resize_tes_inputs() argument
2673 assign_attribute_or_color_locations(void *mem_ctx, gl_shader_program *prog, const struct gl_constants *constants, unsigned target_index, bool do_assignment) assign_attribute_or_color_locations() argument
3122 store_fragdepth_layout(struct gl_shader_program *prog) store_fragdepth_layout() argument
3176 reserve_explicit_locations(struct gl_shader_program *prog, string_to_uint_map *map, ir_variable *var) reserve_explicit_locations() argument
3241 reserve_subroutine_explicit_locations(struct gl_shader_program *prog, struct gl_program *p, ir_variable *var) reserve_subroutine_explicit_locations() argument
3299 check_explicit_uniform_locations(const struct gl_extensions *exts, struct gl_shader_program *prog) check_explicit_uniform_locations() argument
3355 link_assign_subroutine_types(struct gl_shader_program *prog) link_assign_subroutine_types() argument
3419 verify_subroutine_associated_funcs(struct gl_shader_program *prog) verify_subroutine_associated_funcs() argument
3481 disable_varying_optimizations_for_sso(struct gl_shader_program *prog) disable_varying_optimizations_for_sso() argument
3521 link_varyings(const struct gl_constants *consts, struct gl_shader_program *prog, void *mem_ctx) link_varyings() argument
3562 link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) link_shaders() argument
[all...]
H A 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 in write_buffer_blocks()
161 read_buffer_block(struct blob_reader *metadata, struct gl_uniform_block *b, struct gl_shader_program *prog) read_buffer_block() argument
191 read_buffer_blocks(struct blob_reader *metadata, struct gl_shader_program *prog) read_buffer_blocks() argument
242 write_atomic_buffers(struct blob *metadata, struct gl_shader_program *prog) write_atomic_buffers() argument
268 read_atomic_buffers(struct blob_reader *metadata, struct gl_shader_program *prog) read_atomic_buffers() argument
317 struct gl_program *prog = shProg->last_vert_prog; write_xfb() local
384 struct gl_program *prog = shProg->_LinkedShaders[xfb_stage]->Program; read_xfb() local
421 has_uniform_storage(struct gl_shader_program *prog, unsigned idx) has_uniform_storage() argument
432 write_uniforms(struct blob *metadata, struct gl_shader_program *prog) write_uniforms() argument
495 read_uniforms(struct blob_reader *metadata, struct gl_shader_program *prog) read_uniforms() argument
621 write_uniform_remap_tables(struct blob *metadata, struct gl_shader_program *prog) write_uniform_remap_tables() argument
640 read_uniform_remap_table(struct blob_reader *metadata, struct gl_shader_program *prog, unsigned *num_entries, gl_uniform_storage *uniform_storage) read_uniform_remap_table() argument
676 read_uniform_remap_tables(struct blob_reader *metadata, struct gl_shader_program *prog) read_uniform_remap_tables() argument
751 write_hash_tables(struct blob *metadata, struct gl_shader_program *prog) write_hash_tables() argument
759 read_hash_tables(struct blob_reader *metadata, struct gl_shader_program *prog) read_hash_tables() argument
801 write_program_resource_data(struct blob *metadata, struct gl_shader_program *prog, struct gl_program_resource *res) write_program_resource_data() argument
914 read_program_resource_data(struct blob_reader *metadata, struct gl_shader_program *prog, struct gl_program_resource *res) read_program_resource_data() argument
991 write_program_resource_list(struct blob *metadata, struct gl_shader_program *prog) write_program_resource_list() argument
1007 read_program_resource_list(struct blob_reader *metadata, struct gl_shader_program *prog) read_program_resource_list() argument
1220 create_linked_shader_and_program(struct gl_context *ctx, gl_shader_stage stage, struct gl_shader_program *prog, struct blob_reader *metadata) create_linked_shader_and_program() argument
1253 serialize_glsl_program(struct blob *blob, struct gl_context *ctx, struct gl_shader_program *prog) serialize_glsl_program() argument
1306 deserialize_glsl_program(struct blob_reader *blob, struct gl_context *ctx, struct gl_shader_program *prog) deserialize_glsl_program() argument
[all...]
H A 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()
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 in shader_cache_write_program_metadata()
87 shader_cache_write_program_metadata(struct gl_context *ctx, struct gl_shader_program *prog) shader_cache_write_program_metadata() argument
146 shader_cache_read_program_metadata(struct gl_context *ctx, struct gl_shader_program *prog) shader_cache_read_program_metadata() argument
[all...]
H A 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 in link_util_add_program_resource()
175 link_util_find_empty_block(struct gl_shader_program *prog, struct gl_uniform_storage *uniform) link_util_find_empty_block() argument
203 link_util_update_empty_uniform_locations(struct gl_shader_program *prog) link_util_update_empty_uniform_locations() argument
225 link_util_check_subroutine_resources(struct gl_shader_program *prog) link_util_check_subroutine_resources() argument
243 link_util_check_uniform_resources(const struct gl_constants *consts, struct gl_shader_program *prog) link_util_check_uniform_resources() argument
320 link_util_calculate_subroutine_compat(struct gl_shader_program *prog) link_util_calculate_subroutine_compat() argument
[all...]
H A Dgl_nir_linker.c442 struct gl_shader_program *prog, struct set *resource_set, in add_vars_with_modes()
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()
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
441 add_vars_with_modes(const struct gl_constants *consts, struct gl_shader_program *prog, struct set *resource_set, nir_shader *nir, nir_variable_mode modes, unsigned stage, GLenum programInterface) add_vars_with_modes() argument
522 add_interface_variables(const struct gl_constants *consts, struct gl_shader_program *prog, struct set *resource_set, unsigned stage, GLenum programInterface) add_interface_variables() argument
587 nir_build_program_resource_list(const struct gl_constants *consts, struct gl_shader_program *prog, bool rebuild_resourse_list) nir_build_program_resource_list() argument
755 gl_nir_link_spirv(const struct gl_constants *consts, struct gl_shader_program *prog, const struct gl_nir_linker_options *options) gl_nir_link_spirv() argument
805 check_image_resources(const struct gl_constants *consts, const struct gl_extensions *exts, struct gl_shader_program *prog) check_image_resources() argument
863 validate_sampler_array_indexing(const struct gl_constants *consts, struct gl_shader_program *prog) validate_sampler_array_indexing() argument
919 gl_nir_link_glsl(const struct gl_constants *consts, const struct gl_extensions *exts, gl_api api, struct gl_shader_program *prog) gl_nir_link_glsl() argument
[all...]
H A 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()
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()
179 nir_setup_uniform_remap_tables(const struct gl_constants *consts, struct gl_shader_program *prog) nir_setup_uniform_remap_tables() argument
663 add_parameter(struct gl_uniform_storage *uniform, const struct gl_constants *consts, struct gl_shader_program *prog, const struct glsl_type *type, struct nir_link_uniforms_state *state) add_parameter() argument
763 update_uniforms_shader_info(struct gl_shader_program *prog, struct nir_link_uniforms_state *state, struct gl_uniform_storage *uniform, const struct glsl_type *type, unsigned stage) update_uniforms_shader_info() argument
899 find_and_update_named_uniform_storage(const struct gl_constants *consts, struct gl_shader_program *prog, struct nir_link_uniforms_state *state, nir_variable *var, char **name, size_t name_length, const struct glsl_type *type, unsigned stage, bool *first_element) find_and_update_named_uniform_storage() argument
1012 find_and_update_previous_uniform_storage(const struct gl_constants *consts, struct gl_shader_program *prog, struct nir_link_uniforms_state *state, nir_variable *var, char *name, const struct glsl_type *type, unsigned stage) find_and_update_previous_uniform_storage() argument
1199 nir_link_uniform(const struct gl_constants *consts, struct gl_shader_program *prog, struct gl_program *stage_program, gl_shader_stage stage, const struct glsl_type *type, unsigned index_in_parent, int location, struct nir_link_uniforms_state *state, char **name, size_t name_length, bool row_major) nir_link_uniform() argument
1532 gl_nir_link_uniforms(const struct gl_constants *consts, struct gl_shader_program *prog, bool fill_parameters) gl_nir_link_uniforms() argument
[all...]
H A Dlink_varyings.cpp70 struct gl_shader_program *prog, in cross_validate_types_and_qualifiers()
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 in cross_validate_types_and_qualifiers()
69 cross_validate_types_and_qualifiers(const struct gl_constants *consts, struct gl_shader_program *prog, const ir_variable *input, const ir_variable *output, gl_shader_stage consumer_stage, gl_shader_stage producer_stage) cross_validate_types_and_qualifiers() argument
275 cross_validate_front_and_back_color(const struct gl_constants *consts, struct gl_shader_program *prog, const ir_variable *input, const ir_variable *front_color, const ir_variable *back_color, gl_shader_stage consumer_stage, gl_shader_stage producer_stage) cross_validate_front_and_back_color() argument
329 check_location_aliasing(struct explicit_location_info explicit_locations[][4], ir_variable *var, unsigned location, unsigned component, unsigned location_limit, const glsl_type *type, unsigned interpolation, bool centroid, bool sample, bool patch, gl_shader_program *prog, gl_shader_stage stage) check_location_aliasing() argument
489 validate_explicit_variable_location(const struct gl_constants *consts, struct explicit_location_info explicit_locations[][4], ir_variable *var, gl_shader_program *prog, gl_linked_shader *sh) validate_explicit_variable_location() argument
563 validate_first_and_last_interface_explicit_locations(const struct gl_constants *consts, struct gl_shader_program *prog, gl_shader_stage first_stage, gl_shader_stage last_stage) validate_first_and_last_interface_explicit_locations() argument
643 static_input_output_matching(struct gl_shader_program *prog) static_input_output_matching() argument
652 cross_validate_outputs_to_inputs(const struct gl_constants *consts, struct gl_shader_program *prog, gl_linked_shader *producer, gl_linked_shader *consumer) cross_validate_outputs_to_inputs() argument
[all...]
H A 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()
122 (prog->IsES ? in intrastage_match()
134 (!prog->IsES || in intrastage_match()
135 interstage_member_mismatch(prog, in intrastage_match()
110 intrastage_match(ir_variable *a, ir_variable *b, struct gl_shader_program *prog, bool match_precision) intrastage_match() argument
178 interstage_match(struct gl_shader_program *prog, ir_variable *producer, ir_variable *consumer, bool extra_array_level) interstage_match() argument
308 validate_intrastage_interface_blocks(struct gl_shader_program *prog, const gl_shader **shader_list, unsigned num_shaders) validate_intrastage_interface_blocks() argument
379 validate_interstage_inout_blocks(struct gl_shader_program *prog, const gl_linked_shader *producer, const gl_linked_shader *consumer) validate_interstage_inout_blocks() argument
519 validate_interstage_uniform_blocks(struct gl_shader_program *prog, gl_linked_shader **stages) validate_interstage_uniform_blocks() argument
[all...]
H A 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 __anon7174::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->DualSlotInputs |= bitfield; in mark()
124 prog->info.fs.uses_sample_qualifier |= var->data.sample; in mark()
127 BITSET_SET(prog in mark()
424 do_set_program_inouts(exec_list *instructions, struct gl_program *prog, gl_shader_stage shader_stage) do_set_program_inouts() argument
[all...]
/third_party/mesa3d/src/mesa/main/
H A 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 in _mesa_IsProgramARB()
292 get_local_param_pointer(struct gl_context *ctx, const char *func, struct gl_program* prog, GLenum target, GLuint index, unsigned count, GLfloat **param) get_local_param_pointer() argument
360 set_program_string(struct gl_program *prog, GLenum target, GLenum format, GLsizei len, const GLvoid *string) set_program_string() argument
488 struct gl_program* prog = lookup_or_create_program(program, target, "glNamedProgramStringEXT"); _mesa_NamedProgramStringEXT() local
640 struct gl_program* prog = get_current_program(ctx, target, "glProgramLocalParameterARB"); _mesa_ProgramLocalParameter4fARB() local
660 struct gl_program* prog = lookup_or_create_program(program, target, _mesa_NamedProgramLocalParameter4fEXT() local
699 program_local_parameters4fv(struct gl_program* prog, GLuint index, GLsizei count, const GLfloat *params, const char* caller) program_local_parameters4fv() argument
721 struct gl_program* prog = get_current_program(ctx, target, _mesa_ProgramLocalParameters4fvEXT() local
735 struct gl_program* prog = _mesa_NamedProgramLocalParameters4fvEXT() local
793 struct gl_program* prog = get_current_program(ctx, target, "glGetProgramLocalParameterfvARB"); _mesa_GetProgramLocalParameterfvARB() local
811 struct gl_program* prog = lookup_or_create_program(program, target, _mesa_GetNamedProgramLocalParameterfvEXT() local
830 struct gl_program* prog = get_current_program(ctx, target, "glGetProgramLocalParameterdvARB"); _mesa_GetProgramLocalParameterdvARB() local
848 struct gl_program* prog = lookup_or_create_program(program, target, _mesa_GetNamedProgramLocalParameterdvEXT() local
862 get_program_iv(struct gl_program *prog, GLenum target, GLenum pname, GLint *params) get_program_iv() argument
1036 struct gl_program* prog = get_current_program(ctx, target, _mesa_GetProgramivARB() local
1048 struct gl_program* prog; _mesa_GetNamedProgramivEXT() local
1065 const struct gl_program *prog; _mesa_GetProgramStringARB() local
1099 struct gl_program* prog = lookup_or_create_program(program, target, _mesa_GetNamedProgramStringEXT() local
[all...]
H A Dglspirv.c120 _mesa_spirv_link_shaders(struct gl_context *ctx, struct gl_shader_program *prog) in _mesa_spirv_link_shaders() argument
122 prog->data->LinkStatus = LINKING_SUCCESS; in _mesa_spirv_link_shaders()
123 prog->data->Validated = false; in _mesa_spirv_link_shaders()
125 for (unsigned i = 0; i < prog->NumShaders; i++) { in _mesa_spirv_link_shaders()
126 struct gl_shader *shader = prog->Shaders[i]; in _mesa_spirv_link_shaders()
137 if (prog->_LinkedShaders[shader_type]) { in _mesa_spirv_link_shaders()
138 ralloc_strcat(&prog->data->InfoLog, in _mesa_spirv_link_shaders()
141 prog->data->LinkStatus = LINKING_FAILURE; in _mesa_spirv_link_shaders()
152 ctx->Driver.NewProgram(ctx, shader_type, prog->Name, false); in _mesa_spirv_link_shaders()
154 prog in _mesa_spirv_link_shaders()
217 _mesa_spirv_to_nir(struct gl_context *ctx, const struct gl_shader_program *prog, gl_shader_stage stage, const nir_shader_compiler_options *options) _mesa_spirv_to_nir() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
H A 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_ argument
773 nvc0_program_alloc_code(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_alloc_code() argument
825 nvc0_program_upload_code(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_upload_code() argument
873 nvc0_program_upload(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_upload() argument
988 nvc0_program_destroy(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_destroy() argument
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/api/
H A 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 in clBuildProgram()
306 auto &prog = obj(d_prog); clCompileProgram() local
436 auto prog = create<program>(ctx, all_devs); clLinkProgram() local
481 auto &prog = obj(d_prog); clGetProgramInfo() local
561 auto &prog = obj(d_prog); clGetProgramBuildInfo() local
[all...]
/third_party/skia/third_party/externals/libpng/contrib/tools/
H A 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, arg in main()
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/bin/
H A Dnode-gyp.js16 const prog = gyp()
18 prog.parseArgv(process.argv)
19 prog.devDir = prog.opts.devdir
22 if (prog.devDir) {
23 prog.devDir = prog.devDir.replace(/^~/, homeDir)
25 prog.devDir = envPaths('node-gyp', { suffix: '' }).cache
33 if (prog.todo.length === 0) {
35 log.stdout('v%s', prog
[all...]

Completed in 21 milliseconds

12345678910>>...22