Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_tess.c56 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 …]
Ddraw_llvm.h481 uint32_t prim_id, uint32_t patch_vertices_in,
488 uint32_t prim_id, uint32_t num_tess_coord,
Ddraw_llvm.c2878 system_values.prim_id = LLVMBuildLoad(builder, prim_id_ptr, "prim_id"); in draw_gs_llvm_generate()
3356 LLVMValueRef input_array, output_array, prim_id, patch_vertices_in; in draw_tcs_llvm_generate() local
3412 prim_id = LLVMGetParam(variant_func, 3); in draw_tcs_llvm_generate()
3419 lp_build_name(prim_id, "prim_id"); in draw_tcs_llvm_generate()
3457 args[3] = prim_id; in draw_tcs_llvm_generate()
3500 prim_id = LLVMGetParam(variant_coro, 3); in draw_tcs_llvm_generate()
3523 system_values.prim_id = lp_build_broadcast_scalar(&bldvec, prim_id); in draw_tcs_llvm_generate()
3923 LLVMValueRef tess_inner, tess_outer, prim_id, patch_vertices_in; in draw_tes_llvm_generate() local
3974 prim_id = LLVMGetParam(variant_func, 3); in draw_tes_llvm_generate()
3986 lp_build_name(prim_id, "prim_id"); in draw_tes_llvm_generate()
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw.c986 unsigned prim_id, in brw_draw_single_prim() argument
1017 if (prim_id > 0) { /* For i == 0 we just did this before the loop */ in brw_draw_single_prim()
1033 if (prim_id > 0) { in brw_draw_single_prim()
1071 if (prim_id > 0 && vs_prog_data->uses_drawid) in brw_draw_single_prim()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_gs.c611 LLVMValueRef prim_id, rotate; in si_llvm_build_gs_prolog() local
623 prim_id = LLVMGetParam(func, num_sgprs + 2); in si_llvm_build_gs_prolog()
624 rotate = LLVMBuildTrunc(builder, prim_id, ctx->ac.i1, ""); in si_llvm_build_gs_prolog()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_gs_variant.cpp219 nir_ssa_def *prim_id = nir_load_primitive_id(b); in d3d12_begin_emit_primitives_gs() local
221 prim_id, in d3d12_begin_emit_primitives_gs()
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_ngg.c362 nir_ssa_def *prim_id = nir_build_load_primitive_id(b); in emit_ngg_nogs_prim_export() local
366 nir_build_store_shared(b, prim_id, addr, .write_mask = 1u, .align_mul = 4u); in emit_ngg_nogs_prim_export()
377 nir_ssa_def *prim_id = NULL; in emit_store_ngg_nogs_es_primitive_id() local
389 prim_id = nir_build_load_shared(b, 1, 32, addr, .align_mul = 4u); in emit_store_ngg_nogs_es_primitive_id()
392 prim_id = nir_build_load_primitive_id(b); in emit_store_ngg_nogs_es_primitive_id()
400 nir_build_store_output(b, prim_id, nir_imm_zero(b, 1, 32), in emit_store_ngg_nogs_es_primitive_id()
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DShaderTGSI.c214 struct ureg_src prim_id; member
526 sx->prim_id = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_PRIMID, 0); in dcl_gs_input()
670 reg = sx->prim_id; in translate_relative_operand()
756 reg = ureg_dst(sx->prim_id); in translate_operand()
1044 reg = sx->prim_id; in translate_src_operand()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi.h172 LLVMValueRef prim_id; member
Dlp_bld_tgsi_soa.c1135 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()
Dlp_bld_nir_soa.c1546 result[0] = bld->system_values.prim_id; in emit_sysval_intrin()
/third_party/mesa3d/src/gallium/drivers/swr/
Dswr_shader.cpp1589 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()
/third_party/mesa3d/docs/relnotes/
D19.2.0.rst146 - radv: Use correct vgpr_comp_cnt for VS if both prim_id and
D19.3.0.rst475 - radv: Use correct vgpr_comp_cnt for VS if both prim_id and