Home
last modified time | relevance | path

Searched refs:sgpr_idx (Results 1 – 7 of 7) sorted by relevance

/third_party/mesa3d/src/amd/vulkan/
Dradv_shader_args.c34 set_loc(struct radv_userdata_info *ud_info, uint8_t *sgpr_idx, uint8_t num_sgprs) in set_loc() argument
36 ud_info->sgpr_idx = *sgpr_idx; in set_loc()
38 *sgpr_idx += num_sgprs; in set_loc()
42 set_loc_shader(struct radv_shader_args *args, int idx, uint8_t *sgpr_idx, uint8_t num_sgprs) in set_loc_shader() argument
47 set_loc(ud_info, sgpr_idx, num_sgprs); in set_loc_shader()
51 set_loc_shader_ptr(struct radv_shader_args *args, int idx, uint8_t *sgpr_idx) in set_loc_shader_ptr() argument
55 set_loc_shader(args, idx, sgpr_idx, use_32bit_pointers ? 1 : 2); in set_loc_shader_ptr()
59 set_loc_desc(struct radv_shader_args *args, int idx, uint8_t *sgpr_idx) in set_loc_desc() argument
65 set_loc(ud_info, sgpr_idx, 1); in set_loc_desc()
524 args->shader_info->user_sgprs_locs.descriptor_sets[i].sgpr_idx = -1; in radv_declare_shader_args()
[all …]
Dradv_cmd_buffer.c793 if (loc->sgpr_idx == -1) in radv_emit_userdata_address()
798 radv_emit_shader_pointer(cmd_buffer->device, cmd_buffer->cs, base_reg + loc->sgpr_idx * 4, va, in radv_emit_userdata_address()
821 unsigned sh_offset = sh_base + loc->sgpr_idx * 4; in radv_emit_descriptor_pointers()
1015 if (loc->sgpr_idx == -1) in radv_emit_inline_push_consts()
1020 radeon_set_sh_reg_seq(cmd_buffer->cs, base_reg + loc->sgpr_idx * 4, loc->num_sgprs); in radv_emit_inline_push_consts()
2964 assert(loc->sgpr_idx != -1); in emit_prolog_inputs()
2966 radv_emit_shader_pointer(cmd_buffer->device, cmd_buffer->cs, base_reg + loc->sgpr_idx * 4, in emit_prolog_inputs()
3186 return loc->sgpr_idx != -1; in radv_shader_loads_push_constants()
3476 if (loc->sgpr_idx == -1) in radv_emit_streamout_buffers()
3481 radv_emit_shader_pointer(cmd_buffer->device, cmd_buffer->cs, base_reg + loc->sgpr_idx * 4, va, in radv_emit_streamout_buffers()
[all …]
Dradv_shader.h179 int8_t sgpr_idx; member
Dradv_pipeline.c5447 return loc->sgpr_idx != -1; in radv_shader_need_indirect_descriptor_sets()
5467 if (loc->sgpr_idx != -1) { in radv_pipeline_init_shader_stages_state()
5469 pipeline->graphics.vtx_base_sgpr += loc->sgpr_idx * 4; in radv_pipeline_init_shader_stages_state()
Dradv_nir_to_llvm.c117 if (user_sgprs_locs->shader_data[AC_UD_INDIRECT_DESCRIPTOR_SETS].sgpr_idx != -1) { in load_descriptor_sets()
/third_party/mesa3d/src/amd/compiler/
Daco_optimizer.cpp2730 uint32_t sgpr_idx = 0; in apply_sgprs() local
2738 sgpr_idx = i; in apply_sgprs()
2742 operand_mask &= ~(1u << sgpr_idx); in apply_sgprs()
2758 if (sgpr_idx == 0) in apply_sgprs()
2761 if (sgpr_idx == 0 || instr->isVOP3() || instr->isSDWA() || instr->isVOP3P() || in apply_sgprs()
2764 if (info.is_extract() && can_apply_extract(ctx, instr, sgpr_idx, info)) in apply_sgprs()
2765 apply_extract(ctx, instr, sgpr_idx, info); in apply_sgprs()
2768 instr->operands[sgpr_idx] = Operand(sgpr); in apply_sgprs()
2770 instr->operands[sgpr_idx] = instr->operands[0]; in apply_sgprs()
2777 instr->operands[sgpr_idx] = Operand(sgpr); in apply_sgprs()
[all …]
Daco_instruction_selection.cpp5362 if (user_sgprs_locs->shader_data[AC_UD_INDIRECT_DESCRIPTOR_SETS].sgpr_idx != -1) { in load_desc_ptr()
5536 unsigned num_inline_push_consts = loc->sgpr_idx != -1 ? loc->num_sgprs : 0; in visit_load_push_constant()