Home
last modified time | relevance | path

Searched refs:UniformStorage (Results 1 – 21 of 21) sorted by relevance

/third_party/mesa3d/src/compiler/glsl/tests/
Dset_uniform_initializer_tests.cpp121 prog->data->UniformStorage = rzalloc_array(prog, struct gl_uniform_storage, in establish_uniform_storage()
125 prog->data->UniformStorage[index_to_set].name = (char *) name; in establish_uniform_storage()
126 prog->data->UniformStorage[index_to_set].type = type; in establish_uniform_storage()
127 prog->data->UniformStorage[index_to_set].array_elements = array_size; in establish_uniform_storage()
129 prog->data->UniformStorage[index_to_set].opaque[sh].index = ~0; in establish_uniform_storage()
130 prog->data->UniformStorage[index_to_set].opaque[sh].active = false; in establish_uniform_storage()
132 prog->data->UniformStorage[index_to_set].num_driver_storage = 0; in establish_uniform_storage()
133 prog->data->UniformStorage[index_to_set].driver_storage = NULL; in establish_uniform_storage()
134 prog->data->UniformStorage[index_to_set].storage = in establish_uniform_storage()
137 fill_storage_array_with_sentinels(prog->data->UniformStorage[index_to_set].storage, in establish_uniform_storage()
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dlink_uniforms.cpp1433 if (prog->data->UniformStorage[i].type->is_subroutine() || in link_setup_uniform_remap_tables()
1434 prog->data->UniformStorage[i].is_shader_storage) in link_setup_uniform_remap_tables()
1437 if (prog->data->UniformStorage[i].remap_location != in link_setup_uniform_remap_tables()
1441 MAX2(1, prog->data->UniformStorage[i].array_elements); in link_setup_uniform_remap_tables()
1446 prog->data->UniformStorage[i].remap_location + j; in link_setup_uniform_remap_tables()
1450 &prog->data->UniformStorage[i]; in link_setup_uniform_remap_tables()
1458 if (prog->data->UniformStorage[i].type->is_subroutine() || in link_setup_uniform_remap_tables()
1459 prog->data->UniformStorage[i].is_shader_storage) in link_setup_uniform_remap_tables()
1463 if (prog->data->UniformStorage[i].builtin) in link_setup_uniform_remap_tables()
1467 if (prog->data->UniformStorage[i].remap_location != UNMAPPED_UNIFORM_LOC) in link_setup_uniform_remap_tables()
[all …]
Dserialize.cpp420 if (!prog->data->UniformStorage[idx].builtin && in has_uniform_storage()
421 !prog->data->UniformStorage[idx].is_shader_storage && in has_uniform_storage()
422 prog->data->UniformStorage[idx].block_index == -1) in has_uniform_storage()
436 encode_type_to_blob(metadata, prog->data->UniformStorage[i].type); in write_uniforms()
437 blob_write_uint32(metadata, prog->data->UniformStorage[i].array_elements); in write_uniforms()
438 if (prog->data->UniformStorage[i].name) { in write_uniforms()
439 blob_write_string(metadata, prog->data->UniformStorage[i].name); in write_uniforms()
443 blob_write_uint32(metadata, prog->data->UniformStorage[i].builtin); in write_uniforms()
444 blob_write_uint32(metadata, prog->data->UniformStorage[i].remap_location); in write_uniforms()
445 blob_write_uint32(metadata, prog->data->UniformStorage[i].block_index); in write_uniforms()
[all …]
Dgl_nir_link_uniforms.c210 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; in nir_setup_uniform_remap_tables()
216 if (prog->data->UniformStorage[i].remap_location == UNMAPPED_UNIFORM_LOC) in nir_setup_uniform_remap_tables()
239 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; in nir_setup_uniform_remap_tables()
260 if (prog->data->UniformStorage[i].block_index == -1) in nir_setup_uniform_remap_tables()
264 link_util_find_empty_block(prog, &prog->data->UniformStorage[i]); in nir_setup_uniform_remap_tables()
307 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; in nir_setup_uniform_remap_tables()
312 if (prog->data->UniformStorage[i].remap_location == UNMAPPED_UNIFORM_LOC) in nir_setup_uniform_remap_tables()
317 MAX2(1, prog->data->UniformStorage[i].array_elements); in nir_setup_uniform_remap_tables()
327 if (!prog->data->UniformStorage[i].opaque[j].active) in nir_setup_uniform_remap_tables()
333 prog->data->UniformStorage[i].remap_location + k; in nir_setup_uniform_remap_tables()
[all …]
Dgl_nir_linker.c508 struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i]; in nir_build_program_resource_list()
534 if (prog->data->UniformStorage[i].offset >= second_element_offset) { in nir_build_program_resource_list()
536 prog->data->UniformStorage[i].offset; in nir_build_program_resource_list()
539 prog->data->UniformStorage[i].top_level_array_size * in nir_build_program_resource_list()
540 prog->data->UniformStorage[i].top_level_array_stride; in nir_build_program_resource_list()
547 prog->data->UniformStorage[i].top_level_array_stride : -1; in nir_build_program_resource_list()
Dlink_atomics.cpp123 &prog->data->UniformStorage[*uniform_loc]; in process_atomic_variable()
240 &prog->data->UniformStorage[ab.uniforms[j].uniform_loc]; in link_assign_atomic_counter_resources()
286 prog->data->UniformStorage[atomic_buffer->Uniforms[u]].opaque[j].index = in link_assign_atomic_counter_resources()
288 prog->data->UniformStorage[atomic_buffer->Uniforms[u]].opaque[j].active = in link_assign_atomic_counter_resources()
Dgl_nir_link_atomics.c104 &prog->data->UniformStorage[*uniform_loc]; in process_atomic_variable()
230 &prog->data->UniformStorage[ab->uniforms[j].loc]; in gl_nir_link_assign_atomic_counter_resources()
289 prog->data->UniformStorage[uniform_loc].opaque + stage; in gl_nir_link_assign_atomic_counter_resources()
Dgl_nir_lower_samplers_as_deref.c169 state->shader_program->data->UniformStorage[location].opaque[stage].active); in lower_deref()
171 binding = state->shader_program->data->UniformStorage[location].opaque[stage].index; in lower_deref()
Dgl_nir_link_uniform_initializers.c57 data->prog->sh.data->UniformStorage + data->location++; in set_opaque_binding()
217 data->prog->sh.data->UniformStorage + data->location++; in set_uniform_initializer()
Dlinker.cpp4172 if (shProg->data->UniformStorage[i].hidden) in build_program_resource_list()
4176 shProg->data->UniformStorage[i].is_shader_storage; in build_program_resource_list()
4179 &shProg->data->UniformStorage[i], in build_program_resource_list()
4200 if (shProg->data->UniformStorage[i].offset >= second_element_offset) { in build_program_resource_list()
4202 shProg->data->UniformStorage[i].offset; in build_program_resource_list()
4205 shProg->data->UniformStorage[i].top_level_array_size * in build_program_resource_list()
4206 shProg->data->UniformStorage[i].top_level_array_stride; in build_program_resource_list()
4213 shProg->data->UniformStorage[i].top_level_array_stride : -1; in build_program_resource_list()
4216 buffer_block_index = shProg->data->UniformStorage[i].block_index; in build_program_resource_list()
4219 uint8_t stageref = shProg->data->UniformStorage[i].active_shader_mask; in build_program_resource_list()
[all …]
Dgl_nir_lower_atomics.c110 shader_program->data->UniformStorage[uniform_loc].opaque[shader->info.stage].index; in lower_deref_instr()
Dstandalone_scaffolding.cpp161 shProg->data->UniformStorage = NULL; in _mesa_clear_shader_program_data()
Dlink_uniform_initializers.cpp41 return &prog->data->UniformStorage[id]; in get_storage()
/third_party/mesa3d/src/mesa/main/
Dshaderobj.c226 oldData->UniformStorage); in _mesa_reference_shader_program_data()
229 _mesa_uniform_detach_all_driver_storage(&oldData->UniformStorage[i]); in _mesa_reference_shader_program_data()
Dshaderapi.c774 if (!shProg->data->UniformStorage[i].is_shader_storage) in get_programiv()
786 if (shProg->data->UniformStorage[i].is_shader_storage) in get_programiv()
799 strlen_or_zero(shProg->data->UniformStorage[i].name); in get_programiv()
805 ((shProg->data->UniformStorage[i].array_elements != 0) ? 3 : 0); in get_programiv()
Dshader_query.cpp1324 &shProg->data->UniformStorage[idx]); in get_buffer_property()
Dmtypes.h2969 struct gl_uniform_storage *UniformStorage; member
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp171 &prog->sh.data->UniformStorage[var->data.location + u]; in brw_nir_setup_glsl_uniform()
353 &prog->sh.data->UniformStorage[var->data.location]; in brw_nir_lower_gl_images()
/third_party/mesa3d/docs/relnotes/
D10.1.1.rst134 UniformStorage
/third_party/mesa3d/src/mesa/program/
Dir_to_mesa.cpp1645 assert(shader_program->data->UniformStorage[location].opaque[shader].active); in get_sampler_uniform_value()
1646 return shader_program->data->UniformStorage[location].opaque[shader].index + in get_sampler_uniform_value()
2492 &shader_program->data->UniformStorage[location]; in _mesa_associate_uniform_storage()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi.cpp4313 *base += this->shader_program->data->UniformStorage[location].opaque[shader].index; in get_deref_offsets()
4314 *index += this->shader_program->data->UniformStorage[location].opaque[shader].index; in get_deref_offsets()
7046 gl_uniform_storage *uni_storage = &prog->sh.data->UniformStorage[ainfo->location]; in st_translate_program()