/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_tess.c | 56 unsigned prim_id, in llvm_fetch_tcs_input() argument 68 int vertex_idx = prim_id * num_vertices + i; in llvm_fetch_tcs_input() 73 i, prim_id, 0); in llvm_fetch_tcs_input() 108 unsigned prim_id, in llvm_store_tcs_output() argument 124 i, prim_id, 0); in llvm_store_tcs_output() 146 llvm_tcs_run(struct draw_tess_ctrl_shader *shader, uint32_t prim_id) in llvm_tcs_run() argument 148 …_variant->jit_func(shader->jit_context, shader->tcs_input->data, shader->tcs_output->data, prim_id, in llvm_tcs_run() 220 unsigned prim_id, in llvm_fetch_tes_input() argument 232 int vertex_idx = prim_id * num_vertices + i; in llvm_fetch_tes_input() 238 i, prim_id, 0); in llvm_fetch_tes_input() [all …]
|
D | draw_llvm.h | 456 uint32_t prim_id, uint32_t patch_vertices_in); 462 uint32_t prim_id, uint32_t num_tess_coord,
|
D | draw_llvm.c | 2837 system_values.prim_id = LLVMBuildLoad(builder, prim_id_ptr, "prim_id"); in draw_gs_llvm_generate() 3309 LLVMValueRef input_array, output_array, prim_id, patch_vertices_in; in draw_tcs_llvm_generate() local 3364 prim_id = LLVMGetParam(variant_func, 3); in draw_tcs_llvm_generate() 3370 lp_build_name(prim_id, "prim_id"); in draw_tcs_llvm_generate() 3407 args[3] = prim_id; in draw_tcs_llvm_generate() 3449 prim_id = LLVMGetParam(variant_coro, 3); in draw_tcs_llvm_generate() 3471 system_values.prim_id = lp_build_broadcast_scalar(&bldvec, prim_id); in draw_tcs_llvm_generate() 3868 LLVMValueRef tess_inner, tess_outer, prim_id, patch_vertices_in; in draw_tes_llvm_generate() local 3918 prim_id = LLVMGetParam(variant_func, 3); in draw_tes_llvm_generate() 3929 lp_build_name(prim_id, "prim_id"); in draw_tes_llvm_generate() [all …]
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_compute_prim_discard.c | 403 LLVMValueRef prim_id = global_thread_id; /* PrimID within an instance */ in si_build_prim_discard_compute_shader() local 417 ac_build_fast_udiv_u31_d_not_one(&ctx->ac, prim_id, num_prims_udiv_multiplier, post_shift); in si_build_prim_discard_compute_shader() 419 prim_id = LLVMBuildSub(builder, prim_id, in si_build_prim_discard_compute_shader() 430 index[i] = ac_build_imad(&ctx->ac, prim_id, LLVMConstInt(ctx->ac.i32, 3, 0), in si_build_prim_discard_compute_shader() 436 index[i] = LLVMBuildAdd(builder, prim_id, LLVMConstInt(ctx->ac.i32, i, 0), ""); in si_build_prim_discard_compute_shader() 446 index[0] = LLVMBuildAdd(builder, prim_id, LLVMConstInt(ctx->ac.i32, 1, 0), ""); in si_build_prim_discard_compute_shader() 447 index[1] = LLVMBuildAdd(builder, prim_id, LLVMConstInt(ctx->ac.i32, 2, 0), ""); in si_build_prim_discard_compute_shader() 451 index[1] = LLVMBuildAdd(builder, prim_id, LLVMConstInt(ctx->ac.i32, 1, 0), ""); in si_build_prim_discard_compute_shader() 452 index[2] = LLVMBuildAdd(builder, prim_id, LLVMConstInt(ctx->ac.i32, 2, 0), ""); in si_build_prim_discard_compute_shader() 569 is_first_wave = LLVMBuildICmp(builder, LLVMIntEQ, prim_id, ctx->ac.i32_0, ""); in si_build_prim_discard_compute_shader()
|
D | si_shader_llvm_gs.c | 634 LLVMValueRef prim_id, rotate; in si_llvm_build_gs_prolog() local 646 prim_id = LLVMGetParam(func, num_sgprs + 2); in si_llvm_build_gs_prolog() 647 rotate = LLVMBuildTrunc(builder, prim_id, ctx->ac.i1, ""); in si_llvm_build_gs_prolog()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_draw.c | 988 unsigned prim_id, in brw_draw_single_prim() argument 1019 if (prim_id > 0) { /* For i == 0 we just did this before the loop */ in brw_draw_single_prim() 1035 if (prim_id > 0) { in brw_draw_single_prim() 1073 if (prim_id > 0 && vs_prog_data->uses_drawid) in brw_draw_single_prim()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_tgsi.h | 172 LLVMValueRef prim_id; member
|
D | lp_bld_tgsi_soa.c | 1135 res = bld->system_values.prim_id; in emit_fetch_gs_input() 1223 res = bld->system_values.prim_id; in emit_fetch_tcs_input() 1326 res = bld->system_values.prim_id; in emit_fetch_tes_input() 1514 res = bld->system_values.prim_id; in emit_fetch_system_value()
|
D | lp_bld_nir_soa.c | 1480 result[0] = bld->system_values.prim_id; in emit_sysval_intrin()
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_shader.cpp | 1589 system_values.prim_id = wrap(LOAD(pGsCtx, {0, SWR_GS_CONTEXT_PrimitiveID})); in CompileGS() 1835 …system_values.prim_id = wrap(VBROADCAST(LOAD(pTesCtx, {0, SWR_DS_CONTEXT_PrimitiveID}), "Primitive… in CompileTES() 2119 system_values.prim_id = in CompileTCS() 2126 lp_build_print_value(gallivm, "TCS::prim_id = ", system_values.prim_id); in CompileTCS()
|
/external/mesa3d/docs/relnotes/ |
D | 19.2.0.rst | 146 - radv: Use correct vgpr_comp_cnt for VS if both prim_id and
|
D | 19.3.0.rst | 475 - radv: Use correct vgpr_comp_cnt for VS if both prim_id and
|
/external/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 11268 Temp prim_id = get_arg(ctx, ctx->args->ac.gs_prim_id); in ngg_nogs_export_primitives() local 11272 store_lds(ctx, 4, prim_id, 0x1u, addr, 0u, 4u); in ngg_nogs_export_primitives() 11289 Temp prim_id; in ngg_nogs_export_vertices() local 11300 prim_id = load_lds(ctx, 4, bld.tmp(v1), addr, 0u, 4u); in ngg_nogs_export_vertices() 11303 prim_id = get_arg(ctx, ctx->args->ac.tes_patch_id); in ngg_nogs_export_vertices() 11309 ctx->outputs.temps[VARYING_SLOT_PRIMITIVE_ID * 4u] = prim_id; in ngg_nogs_export_vertices()
|