Home
last modified time | relevance | path

Searched refs:num_consts (Results 1 – 14 of 14) sorted by relevance

/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_shade_pipeline_llvm.c448 int num_consts = get_num_consts_robust(draw, draw->pt.user.vs_constants_size, i); in llvm_middle_end_bind_parameters() local
450 llvm->jit_context.num_vs_constants[i] = num_consts; in llvm_middle_end_bind_parameters()
451 if (num_consts == 0) { in llvm_middle_end_bind_parameters()
465 int num_consts = get_num_consts_robust(draw, draw->pt.user.gs_constants_size, i); in llvm_middle_end_bind_parameters() local
467 llvm->gs_jit_context.num_constants[i] = num_consts; in llvm_middle_end_bind_parameters()
468 if (num_consts == 0) { in llvm_middle_end_bind_parameters()
482 int num_consts = get_num_consts_robust(draw, draw->pt.user.tcs_constants_size, i); in llvm_middle_end_bind_parameters() local
484 llvm->tcs_jit_context.num_constants[i] = num_consts; in llvm_middle_end_bind_parameters()
485 if (num_consts == 0) { in llvm_middle_end_bind_parameters()
499 int num_consts = get_num_consts_robust(draw, draw->pt.user.tes_constants_size, i); in llvm_middle_end_bind_parameters() local
[all …]
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_signature.c720 unsigned num_consts = 0; in process_patch_const_signature() local
730 mod->patch_consts[num_consts].sysvalue = patch_sysvalue_name(var); in process_patch_const_signature()
733 struct dxil_psv_signature_element *psv_elm = &mod->psv_patch_consts[num_consts]; in process_patch_const_signature()
735 if (!fill_io_signature(mod, num_consts, &semantic, in process_patch_const_signature()
736 &mod->patch_consts[num_consts], psv_elm)) in process_patch_const_signature()
740 for (unsigned i = 0; i < mod->patch_consts[num_consts].num_elements; ++i) { in process_patch_const_signature()
741 struct dxil_signature_element *elm = &mod->patch_consts[num_consts].elements[i]; in process_patch_const_signature()
750 ++num_consts; in process_patch_const_signature()
755 mod->num_sig_patch_consts = num_consts; in process_patch_const_signature()
/third_party/mesa3d/src/panfrost/bifrost/
Ddisassemble.c447 unsigned num_consts = 0; in dump_clause() local
505 num_consts = 1; in dump_clause()
527 num_consts = 1; in dump_clause()
550 num_consts = 1; in dump_clause()
607 if (num_consts < const_idx + 2) in dump_clause()
608 num_consts = const_idx + 2; in dump_clause()
679 for (unsigned i = 0; i < num_consts; i++) { in dump_clause()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir_soa.c1068 LLVMValueRef num_consts = lp_build_array_get(gallivm, bld->const_sizes_ptr, index); in emit_load_ubo() local
1081num_consts = LLVMBuildShl(gallivm->builder, num_consts, lp_build_const_int32(gallivm, 2), ""); in emit_load_ubo()
1084num_consts = LLVMBuildShl(gallivm->builder, num_consts, lp_build_const_int32(gallivm, 1), ""); in emit_load_ubo()
1087num_consts = LLVMBuildLShr(gallivm->builder, num_consts, lp_build_const_int32(gallivm, 1), ""); in emit_load_ubo()
1101 lp_build_if(&ifthen, gallivm, lp_offset_in_range(bld_base, chan_offset, num_consts)); in emit_load_ubo()
1112 num_consts = lp_build_broadcast_scalar(uint_bld, num_consts); in emit_load_ubo()
1114 num_consts = lp_build_shr_imm(uint_bld, num_consts, 1); in emit_load_ubo()
1116 num_consts = lp_build_shl_imm(uint_bld, num_consts, 1); in emit_load_ubo()
1118 num_consts = lp_build_shl_imm(uint_bld, num_consts, 2); in emit_load_ubo()
1123 this_offset, num_consts); in emit_load_ubo()
Dlp_bld_tgsi_soa.c814 LLVMValueRef num_consts; in emit_fetch_constant() local
828 num_consts = bld->consts_sizes[dimension]; in emit_fetch_constant()
847 num_consts = lp_build_broadcast_scalar(uint_bld, num_consts); in emit_fetch_constant()
851 indirect_index, num_consts); in emit_fetch_constant()
3472 LLVMValueRef num_consts = bld->consts_sizes[buf]; in load_emit() local
3483 num_consts = lp_build_broadcast_scalar(uint_bld, num_consts); in load_emit()
3491 indirect_index, num_consts); in load_emit()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler.h75 size_t num_consts; member
Dclc_compiler.c1173 metadata->consts[metadata->num_consts].data = data; in clc_spirv_to_dxil()
1174 metadata->consts[metadata->num_consts].size = size; in clc_spirv_to_dxil()
1175 metadata->consts[metadata->num_consts].uav_id = var->data.binding; in clc_spirv_to_dxil()
1176 metadata->num_consts++; in clc_spirv_to_dxil()
1202 for (unsigned i = 0; i < dxil->metadata.num_consts; i++) in clc_free_dxil_object()
Dcompute_test.cpp596 for (unsigned i = 0; i < dxil->metadata.num_consts; ++i) in run_shader_with_raw_args()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_compiler.c352 s->num_consts = MAX2(s->num_consts, index + 1); in reg_count_callback()
424 s.num_omod_ops, s.num_temp_regs, s.num_consts, s.num_inline_literals); in print_stats()
Dradeon_compiler.h149 unsigned num_consts; member
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir.c881 emit_shader(struct etna_compile *c, unsigned *num_temps, unsigned *num_consts) in emit_shader() argument
986 *num_consts = c->const_count; in emit_shader()
1185 unsigned num_consts; in etna_compile_shader() local
1186 ASSERTED bool ok = emit_shader(c, &v->num_temps, &num_consts); in etna_compile_shader()
1208 copy_uniform_state_to_shader(v, c->consts, num_consts); in etna_compile_shader()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_cmd_buffer.c4944 uint32_t num_consts = MIN2(const_state->num_driver_params, in tu_emit_compute_driver_params() local
4959 assert(num_consts <= ARRAY_SIZE(driver_params)); in tu_emit_compute_driver_params()
4962 tu_cs_emit_pkt7(cs, tu6_stage2opcode(type), 3 + num_consts); in tu_emit_compute_driver_params()
4967 CP_LOAD_STATE6_0_NUM_UNIT(num_consts / 4)); in tu_emit_compute_driver_params()
4971 for (i = 0; i < num_consts; i++) in tu_emit_compute_driver_params()
5010 if (info->indirect && num_consts > IR3_DP_BASE_GROUP_X) { in tu_emit_compute_driver_params()
5016 CP_LOAD_STATE6_0_NUM_UNIT((num_consts - IR3_DP_BASE_GROUP_X) / 4)); in tu_emit_compute_driver_params()
5022 if (num_consts > IR3_DP_LOCAL_GROUP_SIZE_X) { in tu_emit_compute_driver_params()
5023 assert(num_consts == align(IR3_DP_SUBGROUP_ID_SHIFT, 4)); in tu_emit_compute_driver_params()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_vgpu10.c4894 unsigned constbuf = 0, num_consts; in emit_vgpu10_declaration() local
4904 num_consts = MAX2(emit->num_shader_consts[constbuf], in emit_vgpu10_declaration()
4907 if (num_consts > VGPU10_MAX_CONSTANT_BUFFER_ELEMENT_COUNT) { in emit_vgpu10_declaration()
4910 num_consts, in emit_vgpu10_declaration()
4916 MIN2(num_consts, VGPU10_MAX_CONSTANT_BUFFER_ELEMENT_COUNT); in emit_vgpu10_declaration()
/third_party/mesa3d/src/amd/vulkan/
Dradv_cmd_buffer.c3569 unsigned num_consts = 0; in radv_emit_all_inline_push_consts() local
3571 consts[num_consts++] = values[idx]; in radv_emit_all_inline_push_consts()