Home
last modified time | relevance | path

Searched refs:num_ubos (Results 1 – 25 of 55) 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()
475 int num_ubos = 0; in ir3_nir_lower_ubo_loads() local
493 nir_instr_as_intrinsic(instr), &builder, state, &num_ubos, in ir3_nir_lower_ubo_loads()
507 nir->info.num_ubos = num_ubos; in ir3_nir_lower_ubo_loads()
596 if (b->shader->info.num_ubos == 0) in ir3_nir_lower_load_const_instr()
[all …]
Dir3_nir.c949 const_state->num_ubos = nir->info.num_ubos; in ir3_setup_const_state()
957 if (const_state->num_ubos > 0) { in ir3_setup_const_state()
959 constoff += align(const_state->num_ubos * ptrsz, 4) / 4; in ir3_setup_const_state()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_const.c192 int num_ubos = const_state->num_ubos; in fd6_emit_ubos() local
194 if (!num_ubos) in fd6_emit_ubos()
197 OUT_PKT7(ring, fd6_stage2opcode(v->type), 3 + (2 * num_ubos)); in fd6_emit_ubos()
202 CP_LOAD_STATE6_0_NUM_UNIT(num_ubos)); in fd6_emit_ubos()
206 for (int i = 0; i < num_ubos; i++) { in fd6_emit_ubos()
253 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()
627 linked->Program->nir->info.num_ubos = num_ubo_blocks; in gl_nir_link_uniform_blocks()
628 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.cpp284 total_uniform_blocks += sh->Program->info.num_ubos; in link_util_check_uniform_resources()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_compute_transforms.cpp98 b.shader->info.num_ubos = (args->base_vertex.dynamic_count ? 1 : 0); in get_indirect_draw_base_vertex_transform()
150 b.shader->info.num_ubos = 1; in get_fake_so_buffer_copy_back()
183 b.shader->info.num_ubos = 0; in get_fake_so_buffer_vertex_count()
210 b.shader->info.num_ubos = 0; in get_draw_auto()
Dd3d12_nir_passes.c586 unsigned binding = MAX2(nir->info.num_ubos, 1); in d3d12_lower_state_vars()
635 if (binding >= nir->info.num_ubos) in d3d12_lower_state_vars()
636 nir->info.num_ubos = binding + 1; in d3d12_lower_state_vars()
Dd3d12_compiler.cpp118 uint32_t num_ubos_before_lower_to_ubo = nir->info.num_ubos; in compile_nir()
122 nir->info.num_ubos > num_ubos_before_lower_to_ubo; in compile_nir()
186 if(nir->info.num_ubos) { in compile_nir()
188 unsigned num_ubo_bindings = nir->info.num_ubos - (shader->state_vars_used ? 1 : 0); in compile_nir()
/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.c145 shader->info.num_ubos++; in nir_lower_uniforms_to_ubo()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_private.h381 unsigned num_ubos; member
412 unsigned num_ubos; member
444 offset += set_layout->num_ubos; in panvk_pipeline_layout_ubo_start()
861 unsigned num_ubos; member
Dpanvk_descriptor_set.c153 ubo_idx += set_layout->num_ubos; in panvk_CreatePipelineLayout()
184 layout->num_ubos = ubo_idx; in panvk_CreatePipelineLayout()
Dpanvk_vX_descriptor_set.c215 set_layout->num_ubos = ubo_idx; in panvk_per_arch()
251 if (layout->num_ubos) { in panvk_per_arch()
253 pan_size(UNIFORM_BUFFER) * layout->num_ubos, 8, in panvk_per_arch()
Dpanvk_vX_shader.c382 layout->num_ubos + layout->num_dyn_ubos; in panvk_per_arch()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_nir_builtins.c147 b.shader->info.num_ubos = 1; in st_nir_make_clearcolor_shader()
Dst_draw_feedback.c245 assert(prog->info.num_ubos <= ARRAY_SIZE(ubo_transfer)); in st_feedback_draw_vbo()
503 for (unsigned i = 0; i < prog->info.num_ubos; i++) { in st_feedback_draw_vbo()
/third_party/mesa3d/src/compiler/
Dshader_info.h148 uint8_t num_ubos; member
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_disk_cache.c205 unsigned num_cbufs = ish->nir->info.num_ubos; in crocus_disk_cache_retrieve()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_disk_cache.c231 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()
/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/panfrost/lib/
Dpan_shader.c313 info->ubo_count = s->info.num_ubos; in GENX()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_compiler.c2225 if (!shader->info.num_ssbos && !shader->info.num_ubos) in unbreak_bos()
2261 if (shader->info.num_ubos) { in unbreak_bos()
2272 unsigned num_ubos = shader->info.num_ubos - !!shader->info.first_ubo_is_default_ubo; in unbreak_bos() local
2274 if (num_ubos && ubos_used) { in unbreak_bos()
2279 num_ubos -= first_ubo; in unbreak_bos()
2280 assert(num_ubos); in unbreak_bos()
2282 … glsl_array_type(glsl_struct_type(fields, 1, "struct", false), num_ubos, 0), in unbreak_bos()
2366 zs->ubos_used |= get_src_mask_ubo(shader->info.num_ubos, intrin->src[0]); in analyze_io()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_resources.c99 if (sel->info.base.num_ubos == 1 && sel->info.base.num_ssbos == 0) { in load_ubo()

123