/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() 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 …]
|
D | ir3_nir.c | 949 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/ |
D | fd6_const.c | 192 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/ |
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() 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()
|
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 | 284 total_uniform_blocks += sh->Program->info.num_ubos; in link_util_check_uniform_resources()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_compute_transforms.cpp | 98 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()
|
D | d3d12_nir_passes.c | 586 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()
|
D | d3d12_compiler.cpp | 118 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/ |
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 | 145 shader->info.num_ubos++; in nir_lower_uniforms_to_ubo()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_private.h | 381 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
|
D | panvk_descriptor_set.c | 153 ubo_idx += set_layout->num_ubos; in panvk_CreatePipelineLayout() 184 layout->num_ubos = ubo_idx; in panvk_CreatePipelineLayout()
|
D | panvk_vX_descriptor_set.c | 215 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()
|
D | panvk_vX_shader.c | 382 layout->num_ubos + layout->num_dyn_ubos; in panvk_per_arch()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_nir_builtins.c | 147 b.shader->info.num_ubos = 1; in st_nir_make_clearcolor_shader()
|
D | st_draw_feedback.c | 245 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/ |
D | shader_info.h | 148 uint8_t num_ubos; member
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_disk_cache.c | 205 unsigned num_cbufs = ish->nir->info.num_ubos; in crocus_disk_cache_retrieve()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_disk_cache.c | 231 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()
|
/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/panfrost/lib/ |
D | pan_shader.c | 313 info->ubo_count = s->info.num_ubos; in GENX()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_compiler.c | 2225 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/ |
D | si_shader_llvm_resources.c | 99 if (sel->info.base.num_ubos == 1 && sel->info.base.num_ssbos == 0) { in load_ubo()
|