| /xsrc/external/mit/MesaLib.old/dist/src/compiler/glsl/ |
| gl_nir_linker.c | 55 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 58 if (uniform->hidden) 61 if (!link_util_add_program_resource(prog, resource_set, GL_UNIFORM, uniform, 62 uniform->active_shader_mask)) {
|
| gl_nir_link_uniforms.c | 61 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 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 87 if (uniform->is_shader_storage) 91 if (uniform->builtin 288 struct gl_uniform_storage *uniform = NULL; local 481 struct gl_uniform_storage *uniform = NULL; local [all...] |
| linker_util.h | 60 struct gl_uniform_storage *uniform);
|
| 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 */
|
| 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 422 * Section 7.6.2.2 "Standard Uniform Block Layout" of the OpenGL 4.3 spec 440 * laid out in buffer storage identically to uniform and shader storage 454 * Each uniform processed has some range of the \c gl_constant_valu [all...] |
| gl_nir_link_atomics.c | 66 struct active_atomic_counter_uniform *uniform = local 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/ |
| 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 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];
|
| 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/ |
| 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 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/ |
| 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"
|
| 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
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/glsl/ |
| 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 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->array_elements) 239 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 307 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 344 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 935 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 998 struct gl_uniform_storage *uniform = NULL; local 1048 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 1175 struct gl_uniform_storage *uniform = NULL; local [all...] |
| linker_util.h | 75 struct gl_uniform_storage *uniform, 88 struct gl_uniform_storage *uniform);
|
| 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 */ [all...] |
| 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 637 * Section 7.6.2.2 "Standard Uniform Block Layout" of the OpenGL 4.3 spec 655 * laid out in buffer storage identically to uniform and shader storage 669 * Each uniform processed has some range of the \c gl_constant_valu [all...] |
| gl_nir_linker.c | 40 /* Section 2.11.6 (Uniform Variables) of the OpenGL ES 3.0.3 spec 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 62 /* Uniform initializers could get used by another stage */ 143 * * members of a uniform block; 508 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; local 510 if (uniform->hidden) { 512 if (!uniform->opaque[j].active || 513 glsl_get_base_type(uniform->type) != GLSL_TYPE_SUBROUTINE [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/ |
| ir3_nir_analyze_ubo_ranges.c | 113 nir_intrinsic_instr *uniform = local 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/ |
| etnaviv_nir_lower_ubo_to_uniform.c | 66 nir_ssa_def *uniform = local 72 nir_ssa_def_rewrite_uses(&intr->dest.ssa, uniform); 74 return uniform;
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/ |
| 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 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 = nir_variable_create(shader [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| 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 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 above is an intege 1860 const GLint uniform[1] = {1}; local 1913 const GLfloat uniform[1] = {1.1}; local 1967 const GLfloat uniform[1] = {1.1}; local 2020 const GLint uniform[2] = {1,2}; local 2074 const GLint uniform[2] = {1,2}; local 2127 const GLfloat uniform[2] = {1.1,2.2}; local 2181 const GLfloat uniform[2] = {1.1,2.2}; local 2234 const GLint uniform[3] = {1,2,3}; local 2288 const GLint uniform[3] = {1,2,3}; local 2341 const GLfloat uniform[3] = {1.1,2.2,3.3}; local 2395 const GLfloat uniform[3] = {1.1,2.2,3.3}; local 2447 const GLint uniform[4] = {1,2,3,4}; local 2500 const GLint uniform[4] = {1,2,3,4}; local 2553 const GLfloat uniform[4] = {1.1,2.2,3.3,4.4}; local 2606 const GLfloat uniform[4] = {1.1,2.2,3.3,4.4}; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/microsoft/clc/ |
| 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/ |
| disasm.c | 79 printf("^uniform"); 291 ppir_codegen_field_uniform *uniform = code; local 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->offset_reg, NULL, false, false) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/decode/ |
| pgmdump.c | 74 // varying, attribute, uniform, sampler 134 struct uniform { struct 238 struct uniform *uniforms[32]; 328 is_uniform_v2(struct uniform *uniform) 331 if (uniform->v2.unknown10 == 0) 337 dump_uniform(struct uniform *uniform) 339 char *name = is_uniform_v2(uniform) ? uniform->v2.name : uniform->v1.name [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/ |
| sfn_shader_base.cpp | 247 bool ShaderFromNirProcessor::process_uniforms(nir_variable *uniform) 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->data.binding] = m_next_hwatomic_loc [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/panfrost/ |
| 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->i[0] [all...] |