Home
last modified time | relevance | path

Searched refs:num_ubos (Results 1 – 25 of 62) sorted by relevance

123

/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_analyze_ubo_ranges.c258 track_ubo_use(nir_intrinsic_instr *instr, nir_builder *b, int *num_ubos) in track_ubo_use() argument
267 *num_ubos = MAX2(*num_ubos, block + 1); in track_ubo_use()
269 *num_ubos = b->shader->info.num_ubos; in track_ubo_use()
276 int *num_ubos, uint32_t alignment) in lower_ubo_load_to_uniform() argument
282 track_ubo_use(instr, b, num_ubos); in lower_ubo_load_to_uniform()
292 track_ubo_use(instr, b, num_ubos); in lower_ubo_load_to_uniform()
425 int num_ubos = 0; in ir3_nir_lower_ubo_loads() local
436 nir_instr_as_intrinsic(instr), &builder, state, &num_ubos, in ir3_nir_lower_ubo_loads()
450 nir->info.num_ubos = num_ubos; in ir3_nir_lower_ubo_loads()
536 if (b->shader->info.num_ubos == 0) in ir3_nir_lower_load_const_instr()
[all …]
Dir3_nir.c866 const_state->num_ubos = nir->info.num_ubos; in ir3_setup_const_state()
872 if (const_state->num_ubos > 0) { in ir3_setup_const_state()
874 constoff += align(const_state->num_ubos * ptrsz, 4) / 4; in ir3_setup_const_state()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_const.c212 int num_ubos = const_state->num_ubos; in fd6_emit_ubos() local
214 if (!num_ubos) in fd6_emit_ubos()
217 OUT_PKT7(ring, fd6_stage2opcode(v->type), 3 + (2 * num_ubos)); in fd6_emit_ubos()
222 CP_LOAD_STATE6_0_NUM_UNIT(num_ubos)); in fd6_emit_ubos()
226 for (int i = 0; i < num_ubos; i++) { in fd6_emit_ubos()
273 size += 2 * const_state->num_ubos; in user_consts_cmdstream_size()
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_link_uniform_blocks.c230 prog->_LinkedShaders[i]->Program->info.num_ubos; in nir_interstage_cross_validate_uniform_blocks()
251 sh_num_blocks = prog->_LinkedShaders[i]->Program->info.num_ubos; in nir_interstage_cross_validate_uniform_blocks()
628 linked->Program->nir->info.num_ubos = num_ubo_blocks; in gl_nir_link_uniform_blocks()
629 linked->Program->info.num_ubos = num_ubo_blocks; in gl_nir_link_uniform_blocks()
Dgl_nir_lower_buffers.c87 num_blocks = linked_shader->Program->info.num_ubos; in get_block_array_index()
133 num_blocks = linked_shader->Program->info.num_ubos; in get_block_index_offset()
Dlinker_util.cpp220 total_uniform_blocks += sh->Program->info.num_ubos; in link_util_check_uniform_resources()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_amul.c109 assert(idx < state->shader->info.num_ubos); in large_ubo()
243 NIR_VLA_FILL(bool, large_ubos, shader->info.num_ubos, 0); in nir_lower_amul()
Dnir_lower_uniforms_to_ubo.c146 shader->info.num_ubos++; in nir_lower_uniforms_to_ubo()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_descriptor_set.c154 set_layout->num_ubos = ubo_idx; in panvk_CreateDescriptorSetLayout()
287 ubo_idx += set_layout->num_ubos + (set_layout->num_dynoffsets != 0); in panvk_CreatePipelineLayout()
311 layout->num_ubos = ubo_idx; in panvk_CreatePipelineLayout()
Dpanvk_vX_cs.c363 unsigned num_ubos = (set_layout->num_dynoffsets != 0) + set_layout->num_ubos; in panvk_per_arch() local
364 memset(&ubos[offset], 0, num_ubos * sizeof(*ubos)); in panvk_per_arch()
366 memcpy(&ubos[offset], set->ubos, set_layout->num_ubos * sizeof(*ubos)); in panvk_per_arch()
370 &ubos[offset + set_layout->num_ubos]); in panvk_per_arch()
Dpanvk_vX_pipeline.c120 unsigned sysval_ubo = builder->layout->num_ubos; in panvk_pipeline_builder_compile_shaders()
348 pipeline->num_ubos = builder->layout->num_ubos; in panvk_pipeline_builder_init_shaders()
351 pipeline->num_ubos = MAX2(pipeline->num_ubos, pipeline->sysvals[i].ubo_idx + 1); in panvk_pipeline_builder_init_shaders()
Dpanvk_vX_descriptor_set.c67 if (layout->num_ubos) { in panvk_per_arch()
69 pan_size(UNIFORM_BUFFER) * layout->num_ubos, 8, in panvk_per_arch()
Dpanvk_private.h399 unsigned num_ubos; member
416 unsigned num_ubos; member
760 unsigned num_ubos; member
/third_party/mesa3d/src/panfrost/lib/
Dpan_shader.c299 info->ubo_count = MAX2(s->info.num_ubos + 1, inputs->sysval_ubo + 1); in GENX()
301 info->ubo_count = s->info.num_ubos; in GENX()
Dpan_indirect_dispatch.c164 b.shader->info.num_ubos++; in GENX()
/third_party/mesa3d/src/panfrost/bifrost/
Dbi_opt_push_ubo.c67 .nr_blocks = ctx->nir->info.num_ubos + 1, in bi_analyze_ranges()
/third_party/mesa3d/src/compiler/
Dshader_info.h139 uint8_t num_ubos; member
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_program.c777 if (prog->info.num_ubos) { in brw_assign_common_binding_table_offsets()
778 assert(prog->info.num_ubos <= BRW_MAX_UBO); in brw_assign_common_binding_table_offsets()
780 next_binding_table_offset += prog->info.num_ubos; in brw_assign_common_binding_table_offsets()
/third_party/mesa3d/src/gallium/drivers/zink/
Dnir_lower_dynamic_bo_access.c123 last_idx = first_idx + b->shader->info.num_ubos; in lower_dynamic_bo_access_instr()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_nir_passes.c475 unsigned binding = MAX2(nir->info.num_ubos, 1); in d3d12_lower_state_vars()
524 if (binding >= nir->info.num_ubos) in d3d12_lower_state_vars()
525 nir->info.num_ubos = binding + 1; in d3d12_lower_state_vars()
Dd3d12_compiler.cpp148 uint32_t num_ubos_before_lower_to_ubo = nir->info.num_ubos; in compile_nir()
152 nir->info.num_ubos > num_ubos_before_lower_to_ubo; in compile_nir()
193 if(nir->info.num_ubos) { in compile_nir()
195 unsigned num_ubo_bindings = nir->info.num_ubos - (shader->state_vars_used ? 1 : 0); in compile_nir()
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_disk_cache.c208 unsigned num_cbufs = ish->nir->info.num_ubos; in crocus_disk_cache_retrieve()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_draw_feedback.c247 assert(prog->info.num_ubos <= ARRAY_SIZE(ubo_transfer)); in st_feedback_draw_vbo()
505 for (unsigned i = 0; i < prog->info.num_ubos; i++) { in st_feedback_draw_vbo()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_disk_cache.c234 unsigned num_cbufs = ish->nir->info.num_ubos; in iris_disk_cache_retrieve()
/third_party/mesa3d/src/panfrost/midgard/
Dmir_promote_uniforms.c74 .nr_blocks = ctx->nir->info.num_ubos + 1, in mir_analyze_ranges()

123