/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_nir_lower_tess_io.cpp | 76 r600_tcs_base_address(nir_builder *b, nir_ssa_def *param_base, nir_ssa_def *rel_patch_id) in r600_tcs_base_address() argument 79 rel_patch_id, in r600_tcs_base_address() 229 auto rel_patch_id = r600_load_rel_patch_id(b); in r600_lower_tess_io_impl() local 244 emil_lsd_in_addr(b, load_in_param_base, rel_patch_id, op) : in r600_lower_tess_io_impl() 245 emil_lsd_out_addr(b, load_in_param_base, rel_patch_id, op, nir_var_shader_in, 0); in r600_lower_tess_io_impl() 250 …nir_ssa_def *addr = emil_lsd_out_addr(b, load_out_param_base, rel_patch_id, op, nir_var_shader_out… in r600_lower_tess_io_impl() 256 …nir_ssa_def *addr = emil_lsd_out_addr(b, load_out_param_base, rel_patch_id, op, nir_var_shader_out… in r600_lower_tess_io_impl() 262 r600_tcs_base_address(b, load_out_param_base, rel_patch_id): in r600_lower_tess_io_impl() 265 rel_patch_id, NULL, NULL); in r600_lower_tess_io_impl() 272 nir_ssa_def *addr = r600_tcs_base_address(b, load_out_param_base, rel_patch_id); in r600_lower_tess_io_impl() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_llvm_tess.c | 115 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_in_current_patch_offset() local 117 return LLVMBuildMul(ctx->ac.builder, patch_stride, rel_patch_id, ""); in get_tcs_in_current_patch_offset() 124 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_out_current_patch_offset() local 126 return ac_build_imad(&ctx->ac, patch_stride, rel_patch_id, patch0_offset); in get_tcs_out_current_patch_offset() 133 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_out_current_patch_data_offset() local 135 return ac_build_imad(&ctx->ac, patch_stride, rel_patch_id, patch0_patch_data_offset); in get_tcs_out_current_patch_data_offset() 215 LLVMValueRef rel_patch_id, LLVMValueRef vertex_index, in get_tcs_tes_buffer_address() argument 227 base_addr = ac_build_imad(&ctx->ac, rel_patch_id, vertices_per_patch, vertex_index); in get_tcs_tes_buffer_address() 230 base_addr = rel_patch_id; in get_tcs_tes_buffer_address() 677 static void si_write_tess_factors(struct si_shader_context *ctx, LLVMValueRef rel_patch_id, in si_write_tess_factors() argument [all …]
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_nir_to_llvm.c | 207 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_in_current_patch_offset() local 209 return LLVMBuildMul(ctx->ac.builder, patch_stride, rel_patch_id, ""); in get_tcs_in_current_patch_offset() 217 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_out_current_patch_offset() local 219 return ac_build_imad(&ctx->ac, patch_stride, rel_patch_id, in get_tcs_out_current_patch_offset() 229 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_out_current_patch_data_offset() local 231 return ac_build_imad(&ctx->ac, patch_stride, rel_patch_id, in get_tcs_out_current_patch_data_offset() 434 LLVMValueRef rel_patch_id = get_rel_patch_id(ctx); in get_tcs_tes_buffer_address() local 439 base_addr = ac_build_imad(&ctx->ac, rel_patch_id, in get_tcs_tes_buffer_address() 442 base_addr = rel_patch_id; in get_tcs_tes_buffer_address() 3315 LLVMValueRef rel_patch_id = ac_unpack_param(&ctx->ac, tcs_rel_ids, 0, 8); in write_tess_factors() local [all …]
|
/external/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 4156 Temp rel_patch_id = get_tess_rel_patch_id(ctx); in get_tcs_per_vertex_input_lds_offset() local 4157 …Temp tcs_in_current_patch_offset = bld.v_mul24_imm(bld.def(v1), rel_patch_id, tcs_in_patch_stride); in get_tcs_per_vertex_input_lds_offset() 4177 Temp rel_patch_id = get_tess_rel_patch_id(ctx); in get_tcs_output_lds_offset() local 4178 Temp patch_off = bld.v_mul24_imm(bld.def(v1), rel_patch_id, output_patch_stride); in get_tcs_output_lds_offset() 4205 Temp rel_patch_id = get_tess_rel_patch_id(ctx); in get_tcs_per_vertex_output_vmem_offset() local 4206 Temp patch_off = bld.v_mul24_imm(bld.def(v1), rel_patch_id, vertices_per_patch * 16u); in get_tcs_per_vertex_output_vmem_offset() 4231 Temp rel_patch_id = get_tess_rel_patch_id(ctx); in get_tcs_per_patch_output_vmem_offset() local 4232 Temp patch_off = bld.v_mul24_imm(bld.def(v1), rel_patch_id, 16u); in get_tcs_per_patch_output_vmem_offset() 10641 Temp rel_patch_id = get_tess_rel_patch_id(ctx); in write_tcs_tess_factors() local 10643 Temp byte_offset = bld.v_mul24_imm(bld.def(v1), rel_patch_id, stride * 4u); in write_tcs_tess_factors() [all …]
|