/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt_fetch_shade_pipeline_llvm.c | 456 int num_consts = get_num_consts_robust(draw, draw->pt.user.vs_constants_size, i); in llvm_middle_end_bind_parameters() local 458 llvm->jit_context.num_vs_constants[i] = num_consts; in llvm_middle_end_bind_parameters() 459 if (num_consts == 0) { in llvm_middle_end_bind_parameters() 473 int num_consts = get_num_consts_robust(draw, draw->pt.user.gs_constants_size, i); in llvm_middle_end_bind_parameters() local 475 llvm->gs_jit_context.num_constants[i] = num_consts; in llvm_middle_end_bind_parameters() 476 if (num_consts == 0) { in llvm_middle_end_bind_parameters() 490 int num_consts = get_num_consts_robust(draw, draw->pt.user.tcs_constants_size, i); in llvm_middle_end_bind_parameters() local 492 llvm->tcs_jit_context.num_constants[i] = num_consts; in llvm_middle_end_bind_parameters() 493 if (num_consts == 0) { in llvm_middle_end_bind_parameters() 507 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/panfrost/bifrost/ |
D | disassemble.c | 447 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/microsoft/clc/ |
D | clc_compiler.h | 75 size_t num_consts; member
|
D | clc_compiler.c | 1219 metadata->consts[metadata->num_consts].data = data; in clc_spirv_to_dxil() 1220 metadata->consts[metadata->num_consts].size = size; in clc_spirv_to_dxil() 1221 metadata->consts[metadata->num_consts].uav_id = var->data.binding; in clc_spirv_to_dxil() 1222 metadata->num_consts++; in clc_spirv_to_dxil() 1248 for (unsigned i = 0; i < dxil->metadata.num_consts; i++) in clc_free_dxil_object()
|
D | compute_test.cpp | 554 for (unsigned i = 0; i < dxil->metadata.num_consts; ++i) in run_shader_with_raw_args()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_compiler_nir.c | 878 emit_shader(struct etna_compile *c, unsigned *num_temps, unsigned *num_consts) in emit_shader() argument 983 *num_consts = c->const_count; in emit_shader() 1176 unsigned num_consts; in etna_compile_shader_nir() local 1177 ASSERTED bool ok = emit_shader(c, &v->num_temps, &num_consts); in etna_compile_shader_nir() 1199 copy_uniform_state_to_shader(v, c->consts, num_consts); in etna_compile_shader_nir()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_nir_soa.c | 1012 LLVMValueRef num_consts = lp_build_array_get(gallivm, bld->const_sizes_ptr, index); in emit_load_ubo() local 1014 num_consts = lp_build_broadcast_scalar(uint_bld, num_consts); in emit_load_ubo() 1016 num_consts = lp_build_shr_imm(uint_bld, num_consts, 1); in emit_load_ubo() 1018 num_consts = lp_build_shl_imm(uint_bld, num_consts, 1); in emit_load_ubo() 1020 num_consts = lp_build_shl_imm(uint_bld, num_consts, 2); in emit_load_ubo() 1025 this_offset, num_consts); in emit_load_ubo()
|
D | lp_bld_tgsi_soa.c | 814 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() 3465 LLVMValueRef num_consts = bld->consts_sizes[buf]; in load_emit() local 3476 num_consts = lp_build_broadcast_scalar(uint_bld, num_consts); in load_emit() 3484 indirect_index, num_consts); in load_emit()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
D | tu_cmd_buffer.c | 4435 uint32_t num_consts = MIN2(const_state->num_driver_params, in tu_emit_compute_driver_params() local 4450 assert(num_consts <= ARRAY_SIZE(driver_params)); in tu_emit_compute_driver_params() 4453 tu_cs_emit_pkt7(cs, tu6_stage2opcode(type), 3 + num_consts); in tu_emit_compute_driver_params() 4458 CP_LOAD_STATE6_0_NUM_UNIT(num_consts / 4)); in tu_emit_compute_driver_params() 4462 for (i = 0; i < num_consts; i++) in tu_emit_compute_driver_params() 4501 if (info->indirect && num_consts > IR3_DP_BASE_GROUP_X) { in tu_emit_compute_driver_params() 4507 CP_LOAD_STATE6_0_NUM_UNIT((num_consts - IR3_DP_BASE_GROUP_X) / 4)); in tu_emit_compute_driver_params() 4513 if (num_consts > IR3_DP_LOCAL_GROUP_SIZE_X) { in tu_emit_compute_driver_params() 4514 assert(num_consts == align(IR3_DP_SUBGROUP_ID_SHIFT, 4)); in tu_emit_compute_driver_params()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_tgsi_vgpu10.c | 4608 unsigned constbuf = 0, num_consts; in emit_vgpu10_declaration() local 4618 num_consts = MAX2(emit->num_shader_consts[constbuf], in emit_vgpu10_declaration() 4621 if (num_consts > VGPU10_MAX_CONSTANT_BUFFER_ELEMENT_COUNT) { in emit_vgpu10_declaration() 4624 num_consts, in emit_vgpu10_declaration() 4629 MIN2(num_consts, VGPU10_MAX_CONSTANT_BUFFER_ELEMENT_COUNT); in emit_vgpu10_declaration()
|