| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| H A D | gl_nir_linker.c | 55 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_build_program_resource_list 58 if (uniform->hidden) 61 if (!link_util_add_program_resource(prog, resource_set, GL_UNIFORM, uniform, 62 uniform->active_shader_mask)) {
|
| H A D | gl_nir_link_uniforms.c | 61 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_setup_uniform_remap_tables 66 /* How many new entries for this uniform? */ 67 const unsigned entries = MAX2(1, uniform->array_elements); 68 unsigned num_slots = glsl_get_component_slots(uniform->type); 70 uniform->storage = &data[data_pos]; 74 unsigned element_loc = uniform->remap_location + j; 75 prog->UniformRemapTable[element_loc] = uniform; 85 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_setup_uniform_remap_tables 87 if (uniform->is_shader_storage) 91 if (uniform 243 get_next_index(struct nir_link_uniforms_state * state,const struct gl_uniform_storage * uniform,unsigned * next_index) argument 288 struct gl_uniform_storage *uniform = NULL; local in function:nir_link_uniform 481 struct gl_uniform_storage *uniform = NULL; local in function:gl_nir_link_uniforms [all...] |
| H A D | linker_util.h | 60 struct gl_uniform_storage *uniform);
|
| H A D | linker_util.cpp | 69 * uniform. 73 struct gl_uniform_storage *uniform) 75 const unsigned entries = MAX2(1, uniform->array_elements); 79 /* Found a block with enough slots to fit the uniform */ 72 link_util_find_empty_block(struct gl_shader_program * prog,struct gl_uniform_storage * uniform) argument
|
| H A D | link_uniforms.cpp | 254 * If the same uniform is added multiple times (i.e., once for each shader 341 /* Count the number of samplers regardless of whether the uniform is 343 * uniform for multiple shader targets, but in this case we want to 359 * scalar indices, count them against the limit of uniform 366 /* Accumulate the total number of uniform slots used by this shader. 374 /* If the uniform is already in the map, there's nothing more to do. 388 /* Each leaf uniform occupies one entry in the list of active 440 * laid out in buffer storage identically to uniform and shader storage 454 * Each uniform processed has some range of the \c gl_constant_value 456 * the uniform i 609 set_opaque_indices(const glsl_type * base_type,struct gl_uniform_storage * uniform,const char * name,unsigned & next_index,struct string_to_uint_map * record_next_index) argument 671 handle_samplers(const glsl_type * base_type,struct gl_uniform_storage * uniform,const char * name) argument 714 handle_images(const glsl_type * base_type,struct gl_uniform_storage * uniform,const char * name) argument 760 handle_subroutines(const glsl_type * base_type,struct gl_uniform_storage * uniform) argument [all...] |
| H A D | gl_nir_link_atomics.c | 66 struct active_atomic_counter_uniform *uniform = local in function:add_atomic_counter 68 uniform->loc = uniform_loc; 69 uniform->var = var; 86 * x3[2] = 1 uniform, 2 atomic counters 242 * to the intra-stage buffer list in uniform storage.
|
| /xsrc/external/mit/MesaLib/dist/src/broadcom/compiler/ |
| H A D | vir_opt_small_immediates.c | 27 * Turns references to small constant uniform values into small immediates 61 /* See if it's a uniform load. */ 65 int uniform = src_def->uniform; local in function:vir_opt_small_immediates 67 if (c->uniform_contents[uniform] != QUNIFORM_CONSTANT) 70 /* Check if the uniform is suitable as a small 73 uint32_t imm = c->uniform_data[uniform];
|
| H A D | vir_opt_constant_alu.c | 28 * and reduces them to a uniform load. 48 * a uniform load, we move the uniform to the original alu destination. By 49 * running copy propagation immediately after we can reuse the uniform as 89 /* Remove the original ALU instruction and replace it with a uniform 90 * load. If the original instruction loaded an implicit uniform we 95 mov->uniform = inst->uniform; 137 c->uniform_contents[def->uniform] == QUNIFORM_CONSTANT) { 138 values[i].ui = c->uniform_data[def->uniform]; [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/broadcom/compiler/ |
| H A D | vir_opt_small_immediates.c | 27 * Turns references to small constant uniform values into small immediates 61 /* See if it's a uniform load. */ 65 int uniform = src_def->uniform; local in function:vir_opt_small_immediates 67 if (c->uniform_contents[uniform] != QUNIFORM_CONSTANT) 70 /* Check if the uniform is suitable as a small 73 uint32_t imm = c->uniform_data[uniform];
|
| /xsrc/external/mit/xorg-server/dist/glamor/ |
| H A D | glamor_transform.h | 39 GLint uniform); 44 GLint uniform) 47 pixmap->drawable.depth, pixel, uniform); 66 GLint uniform); 86 #define GLAMOR_DECLARE_MATRIX "uniform vec4 v_matrix;\n" 42 glamor_set_color(PixmapPtr pixmap,CARD32 pixel,GLint uniform) argument
|
| H A D | glamor_transform.c | 110 * from the specified GC. Load the target color into the specified uniform 117 GLint uniform) 129 glUniform4fv(uniform, 1, color); 136 GLint uniform) 161 glamor_set_color(pixmap, pixel, uniform); 183 /* we're not setting the sampler uniform here as we always use 114 glamor_set_color_depth(ScreenPtr pScreen,int depth,CARD32 pixel,GLint uniform) argument 133 glamor_set_solid(PixmapPtr pixmap,GCPtr gc,Bool use_alu,GLint uniform) argument
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| H A D | gl_nir_link_uniforms.c | 40 /** List of dereferences of the uniform array. */ 85 * Update the sizes of linked shader uniform arrays to the maximum 96 * active uniform reported by the GL per uniform array. 146 /* If this is a built-in uniform (i.e., it's backed by some 210 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_setup_uniform_remap_tables 212 if (uniform->is_shader_storage || 213 glsl_get_base_type(uniform->type) == GLSL_TYPE_SUBROUTINE) 219 /* How many new entries for this uniform? */ 220 const unsigned entries = MAX2(1, uniform 239 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_setup_uniform_remap_tables 307 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_setup_uniform_remap_tables 344 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_setup_uniform_remap_tables 574 mark_stage_as_active(struct gl_uniform_storage * uniform,unsigned stage) argument 636 add_parameter(struct gl_uniform_storage * uniform,struct gl_context * ctx,struct gl_shader_program * prog,const struct glsl_type * type,struct nir_link_uniforms_state * state) argument 701 get_next_index(struct nir_link_uniforms_state * state,const struct gl_uniform_storage * uniform,unsigned * next_index,bool * initialised) argument 736 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) argument 935 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:find_and_update_named_uniform_storage 998 struct gl_uniform_storage *uniform = NULL; local in function:find_and_update_previous_uniform_storage 1048 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:find_and_update_previous_uniform_storage 1175 struct gl_uniform_storage *uniform = NULL; local in function:nir_link_uniform [all...] |
| H A D | linker_util.h | 75 struct gl_uniform_storage *uniform, 88 struct gl_uniform_storage *uniform);
|
| H A D | linker_util.cpp | 43 struct gl_uniform_storage *uniform, 49 /* If the uniform is not a shader storage buffer or is not an array return 52 if (!uniform->is_shader_storage || top_level_array_size_in_bytes == 0) 61 if (block_index != uniform->block_index || 62 uniform->offset >= after_top_level_array || 63 uniform->offset < second_element_offset) { 108 * uniform. 112 struct gl_uniform_storage *uniform) 114 const unsigned entries = MAX2(1, uniform->array_elements); 118 /* Found a block with enough slots to fit the uniform */ 42 link_util_should_add_buffer_variable(struct gl_shader_program * prog,struct gl_uniform_storage * uniform,int top_level_array_base_offset,int top_level_array_size_in_bytes,int second_element_offset,int block_index) argument 111 link_util_find_empty_block(struct gl_shader_program * prog,struct gl_uniform_storage * uniform) argument [all...] |
| H A D | link_uniforms.cpp | 469 * If the same uniform is added multiple times (i.e., once for each shader 556 /* Count the number of samplers regardless of whether the uniform is 558 * uniform for multiple shader targets, but in this case we want to 574 * scalar indices, count them against the limit of uniform 581 /* Accumulate the total number of uniform slots used by this shader. 589 /* If the uniform is already in the map, there's nothing more to do. 603 /* Each leaf uniform occupies one entry in the list of active 655 * laid out in buffer storage identically to uniform and shader storage 669 * Each uniform processed has some range of the \c gl_constant_value 671 * the uniform i 838 set_opaque_indices(const glsl_type * base_type,struct gl_uniform_storage * uniform,const char * name,unsigned & next_index,struct string_to_uint_map * record_next_index) argument 900 handle_samplers(const glsl_type * base_type,struct gl_uniform_storage * uniform,const char * name) argument 943 handle_images(const glsl_type * base_type,struct gl_uniform_storage * uniform,const char * name) argument 989 handle_subroutines(const glsl_type * base_type,struct gl_uniform_storage * uniform) argument [all...] |
| H A D | gl_nir_linker.c | 43 * "All members of a named uniform block declared with a shared or 45 * referenced in any shader in the program. The uniform block itself is 50 * the same way. If the variable is in a uniform block with one of those 143 * * members of a uniform block; 508 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local in function:nir_build_program_resource_list 510 if (uniform->hidden) { 512 if (!uniform->opaque[j].active || 513 glsl_get_base_type(uniform->type) != GLSL_TYPE_SUBROUTINE) 520 type, uniform, 0)) 527 if (!link_util_should_add_buffer_variable(prog, uniform, [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/ |
| H A D | ir3_nir_analyze_ubo_ranges.c | 113 nir_intrinsic_instr *uniform = local in function:lower_ubo_load_to_uniform 115 uniform->num_components = instr->num_components; 116 uniform->src[0] = nir_src_for_ssa(uniform_offset); 117 nir_ssa_dest_init(&uniform->instr, &uniform->dest, 118 uniform->num_components, instr->dest.ssa.bit_size, 120 nir_builder_instr_insert(b, &uniform->instr); 122 nir_src_for_ssa(&uniform->dest.ssa));
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/ |
| H A D | etnaviv_nir_lower_ubo_to_uniform.c | 66 nir_ssa_def *uniform = local in function:lower_ubo_to_uniform 72 nir_ssa_def_rewrite_uses(&intr->dest.ssa, uniform); 74 return uniform;
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/ |
| H A D | d3d12_lower_point_sprite.c | 32 nir_variable *uniform; /* (1/w, 1/h, pt_sz, max_sz) */ member in struct:lower_state 111 /* State uniform contains: (1/ViewportWidth, 1/ViewportHeight, PointSize, MaxPointSize) */ 112 nir_ssa_def *uniform = nir_load_var(b, state->uniform); local in function:get_scaled_point_size 120 /* Use static point size (from uniform) if the shader output was not set */ 121 point_size = nir_channel(b, uniform, 2); 125 *x = nir_fmul(b, point_size, nir_channel(b, uniform, 0)); 126 *y = nir_fmul(b, point_size, nir_channel(b, uniform, 1)); 247 /* Create uniform to retrieve inverse of viewport size and point size: 249 state.uniform [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| H A D | getprocaddress.c | 1039 /* Put the program in place. We're not allowed to assign to uniform 1049 /* Find the location index of the uniform variable we declared; 1054 fprintf(stderr, "%s: could not determine uniform location\n", 1062 * handle and the uniform location to the caller. 1797 * fragment to the uniform value passed in. 1800 "uniform int uniformColor;" 1806 const GLint uniform[1] = {1}; local in function:test_Uniform1iv 1814 * us back the validated program and uniform location. 1822 /* Set the value of the program uniform. Note that you must 1823 * use a compatible type. Our uniform abov 1860 const GLint uniform[1] = {1}; local in function:test_Uniform1i 1913 const GLfloat uniform[1] = {1.1}; local in function:test_Uniform1fv 1967 const GLfloat uniform[1] = {1.1}; local in function:test_Uniform1f 2020 const GLint uniform[2] = {1,2}; local in function:test_Uniform2iv 2074 const GLint uniform[2] = {1,2}; local in function:test_Uniform2i 2127 const GLfloat uniform[2] = {1.1,2.2}; local in function:test_Uniform2fv 2181 const GLfloat uniform[2] = {1.1,2.2}; local in function:test_Uniform2f 2234 const GLint uniform[3] = {1,2,3}; local in function:test_Uniform3iv 2288 const GLint uniform[3] = {1,2,3}; local in function:test_Uniform3i 2341 const GLfloat uniform[3] = {1.1,2.2,3.3}; local in function:test_Uniform3fv 2395 const GLfloat uniform[3] = {1.1,2.2,3.3}; local in function:test_Uniform3f 2447 const GLint uniform[4] = {1,2,3,4}; local in function:test_Uniform4iv 2500 const GLint uniform[4] = {1,2,3,4}; local in function:test_Uniform4i 2553 const GLfloat uniform[4] = {1.1,2.2,3.3,4.4}; local in function:test_Uniform4fv 2606 const GLfloat uniform[4] = {1.1,2.2,3.3,4.4}; local in function:test_Uniform4f [all...] |
| /xsrc/external/mit/MesaLib/dist/src/microsoft/clc/ |
| H A D | clc_nir.c | 294 nir_foreach_variable_with_modes(uniform, nir, nir_var_uniform) { 295 if (!glsl_type_is_sampler(uniform->type) || !uniform->data.sampler.is_inline_sampler) 297 if (uniform->data.sampler.addressing_mode == sampler->data.sampler.addressing_mode && 298 uniform->data.sampler.normalized_coordinates == sampler->data.sampler.normalized_coordinates && 299 uniform->data.sampler.filter_mode == sampler->data.sampler.filter_mode) 300 return uniform;
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/lima/ir/pp/ |
| H A D | disasm.c | 79 printf("^uniform"); 291 ppir_codegen_field_uniform *uniform = code; local in function:print_uniform 295 switch (uniform->source) { 303 printf(".u%u", uniform->source); 307 if (uniform->alignment) 308 printf(" %u", uniform->index); 310 printf(" %u.%c", uniform->index >> 2, "xyzw"[uniform->index & 3]); 312 if (uniform->offset_en) { 314 print_source_scalar(uniform [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/decode/ |
| H A D | pgmdump.c | 74 // varying, attribute, uniform, sampler 134 struct uniform { struct 238 struct uniform *uniforms[32]; 328 is_uniform_v2(struct uniform *uniform) argument 331 if (uniform->v2.unknown10 == 0) 337 dump_uniform(struct uniform *uniform) argument 339 char *name = is_uniform_v2(uniform) ? uniform [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| H A D | sfn_shader_base.cpp | 247 bool ShaderFromNirProcessor::process_uniforms(nir_variable *uniform) argument 250 m_uniform_type_map[uniform->data.location] = uniform->type; 252 if (uniform->type->contains_atomic()) { 253 int natomics = uniform->type->atomic_size() / ATOMIC_COUNTER_SIZE; 256 if (uniform->type->is_array()) 263 atom.buffer_id = uniform->data.binding; 266 atom.start = uniform->data.offset >> 2; 269 if (m_atomic_base_map.find(uniform->data.binding) == 271 m_atomic_base_map[uniform [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/panfrost/ |
| H A D | pan_cmdstream.c | 722 struct sysval_uniform *uniform) 727 uniform->f[0] = vp->scale[0]; 728 uniform->f[1] = vp->scale[1]; 729 uniform->f[2] = vp->scale[2]; 734 struct sysval_uniform *uniform) 739 uniform->f[0] = vp->translate[0]; 740 uniform->f[1] = vp->translate[1]; 741 uniform->f[2] = vp->translate[2]; 747 struct sysval_uniform *uniform) 759 uniform 721 panfrost_upload_viewport_scale_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 733 panfrost_upload_viewport_offset_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 744 panfrost_upload_txs_sysval(struct panfrost_batch * batch,enum pipe_shader_type st,unsigned int sysvalid,struct sysval_uniform * uniform) argument 778 panfrost_upload_image_size_sysval(struct panfrost_batch * batch,enum pipe_shader_type st,unsigned int sysvalid,struct sysval_uniform * uniform) argument 814 panfrost_upload_ssbo_sysval(struct panfrost_batch * batch,enum pipe_shader_type st,unsigned ssbo_id,struct sysval_uniform * uniform) argument 839 panfrost_upload_sampler_sysval(struct panfrost_batch * batch,enum pipe_shader_type st,unsigned samp_idx,struct sysval_uniform * uniform) argument 861 panfrost_upload_num_work_groups_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 872 panfrost_upload_local_group_size_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 883 panfrost_upload_work_dim_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 896 panfrost_upload_sample_positions_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 907 panfrost_upload_multisampled_sysval(struct panfrost_batch * batch,struct sysval_uniform * uniform) argument 916 panfrost_upload_rt_conversion_sysval(struct panfrost_batch * batch,unsigned size_and_rt,struct sysval_uniform * uniform) argument [all...] |