/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_nir_analyze_ubo_ranges.c | 258 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 …]
|
D | ir3_nir.c | 866 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/ |
D | fd6_const.c | 212 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/ |
D | gl_nir_link_uniform_blocks.c | 230 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()
|
D | gl_nir_lower_buffers.c | 87 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()
|
D | linker_util.cpp | 220 total_uniform_blocks += sh->Program->info.num_ubos; in link_util_check_uniform_resources()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_amul.c | 109 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()
|
D | nir_lower_uniforms_to_ubo.c | 146 shader->info.num_ubos++; in nir_lower_uniforms_to_ubo()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_descriptor_set.c | 154 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()
|
D | panvk_vX_cs.c | 363 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()
|
D | panvk_vX_pipeline.c | 120 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()
|
D | panvk_vX_descriptor_set.c | 67 if (layout->num_ubos) { in panvk_per_arch() 69 pan_size(UNIFORM_BUFFER) * layout->num_ubos, 8, in panvk_per_arch()
|
D | panvk_private.h | 399 unsigned num_ubos; member 416 unsigned num_ubos; member 760 unsigned num_ubos; member
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_shader.c | 299 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()
|
D | pan_indirect_dispatch.c | 164 b.shader->info.num_ubos++; in GENX()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bi_opt_push_ubo.c | 67 .nr_blocks = ctx->nir->info.num_ubos + 1, in bi_analyze_ranges()
|
/third_party/mesa3d/src/compiler/ |
D | shader_info.h | 139 uint8_t num_ubos; member
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_program.c | 777 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/ |
D | nir_lower_dynamic_bo_access.c | 123 last_idx = first_idx + b->shader->info.num_ubos; in lower_dynamic_bo_access_instr()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_nir_passes.c | 475 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()
|
D | d3d12_compiler.cpp | 148 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/ |
D | crocus_disk_cache.c | 208 unsigned num_cbufs = ish->nir->info.num_ubos; in crocus_disk_cache_retrieve()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_draw_feedback.c | 247 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/ |
D | iris_disk_cache.c | 234 unsigned num_cbufs = ish->nir->info.num_ubos; in iris_disk_cache_retrieve()
|
/third_party/mesa3d/src/panfrost/midgard/ |
D | mir_promote_uniforms.c | 74 .nr_blocks = ctx->nir->info.num_ubos + 1, in mir_analyze_ranges()
|