Home
last modified time | relevance | path

Searched refs:system_values (Results 1 – 21 of 21) sorted by relevance

/external/mesa3d/src/gallium/drivers/swr/
Dswr_shader.cpp237 struct lp_bld_tgsi_system_values system_values; in CompileVS() local
238 memset(&system_values, 0, sizeof(system_values)); in CompileVS()
239 system_values.instance_id = wrap(LOAD(pVsCtx, {0, SWR_VS_CONTEXT_InstanceID})); in CompileVS()
240 system_values.vertex_id = wrap(LOAD(pVsCtx, {0, SWR_VS_CONTEXT_VertexID})); in CompileVS()
248 &system_values, in CompileVS()
609 struct lp_bld_tgsi_system_values system_values; in CompileFS() local
610 memset(&system_values, 0, sizeof(system_values)); in CompileFS()
626 &system_values, in CompileFS()
/external/mesa3d/src/gallium/drivers/ilo/shader/
Dtoy_tgsi.h91 } system_values[8]; member
125 if (tgsi->system_values[slot].index == index) in toy_tgsi_find_system_value()
Dilo_shader_vs.c202 switch (tgsi->system_values[slot].semantic_name) { in vs_lower_opcode_tgsi_sv()
214 (tgsi->system_values[slot].semantic_name == in vs_lower_opcode_tgsi_sv()
1011 switch (tgsi->system_values[i].semantic_name) { in vs_setup_shader_in()
1022 tgsi->system_values[i].semantic_name; in vs_setup_shader_in()
1024 tgsi->system_values[i].semantic_index; in vs_setup_shader_in()
Dtoy_tgsi.c2162 if (decl->Range.Last >= ARRAY_SIZE(tgsi->system_values)) { in decl_add_sv()
2170 tgsi->system_values[slot].index = index; in decl_add_sv()
2172 tgsi->system_values[slot].semantic_name = decl->Semantic.Name; in decl_add_sv()
2173 tgsi->system_values[slot].semantic_index = decl->Semantic.Index; in decl_add_sv()
2176 tgsi->system_values[slot].semantic_name = TGSI_SEMANTIC_GENERIC; in decl_add_sv()
2177 tgsi->system_values[slot].semantic_index = index; in decl_add_sv()
Dilo_shader_fs.c467 switch (tgsi->system_values[slot].semantic_name) { in fs_lower_opcode_tgsi_sv()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c603 const struct lp_bld_tgsi_system_values *system_values, in generate_vs() argument
621 system_values, in generate_vs()
1569 struct lp_bld_tgsi_system_values system_values; in draw_llvm_generate() local
1571 memset(&system_values, 0, sizeof(system_values)); in draw_llvm_generate()
1618 system_values.instance_id = LLVMGetParam(variant_func, 7); in draw_llvm_generate()
1630 lp_build_name(system_values.instance_id, "instance_id"); in draw_llvm_generate()
1741 current_instance = LLVMBuildUDiv(builder, system_values.instance_id, in draw_llvm_generate()
1776 lp_build_printf(gallivm, " instance_id = %u\n", system_values.instance_id); in draw_llvm_generate()
1890 system_values.basevertex = lp_build_broadcast_scalar(&blduivec, in draw_llvm_generate()
1892 system_values.vertex_id = true_index_array; in draw_llvm_generate()
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_lower_constant_initializers.c84 progress |= lower_const_initializer(&builder, &shader->system_values); in nir_lower_constant_initializers()
Dnir_lower_system_values.c164 exec_list_make_empty(&shader->system_values); in nir_lower_system_values()
Dnir_sweep.c174 steal_list(nir, nir_variable, &nir->system_values); in nir_sweep()
Dnir_remove_dead_variables.c180 progress = remove_dead_vars(&shader->system_values, live) || progress; in nir_remove_dead_variables()
Dnir_clone.c748 clone_var_list(&state, &ns->system_values, &s->system_values); in nir_shader_clone()
Dnir_validate.c1177 exec_list_validate(&shader->system_values); in nir_validate_shader()
1178 nir_foreach_variable(var, &shader->system_values) { in nir_validate_shader()
Dnir.c52 exec_list_make_empty(&shader->system_values); in nir_shader_create()
150 exec_list_push_tail(&shader->system_values, &var->node); in nir_shader_add_variable()
Dnir_print.c1186 nir_foreach_variable(var, &shader->system_values) { in nir_print_shader_annotated()
Dnir.h1847 struct exec_list system_values; member
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_tgsi.h226 const struct lp_bld_tgsi_system_values *system_values,
487 struct lp_bld_tgsi_system_values system_values; member
Dlp_bld_tgsi_soa.c1526 res = bld->system_values.prim_id; in emit_fetch_gs_input()
1664 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_fetch_system_value()
1669 res = bld->system_values.vertex_id; in emit_fetch_system_value()
1674 res = bld->system_values.vertex_id_nobase; in emit_fetch_system_value()
1679 res = bld->system_values.basevertex; in emit_fetch_system_value()
1684 res = bld->system_values.prim_id; in emit_fetch_system_value()
1689 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.invocation_id); in emit_fetch_system_value()
3894 const struct lp_bld_tgsi_system_values *system_values, in lp_build_tgsi_soa() argument
4056 bld.system_values = *system_values; in lp_build_tgsi_soa()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_internal.h92 LLVMValueRef system_values[RADEON_LLVM_MAX_SYSTEM_VALUES]; member
Dsi_shader_tgsi_setup.c773 LLVMValueRef cval = ctx->system_values[reg->Register.Index]; in fetch_system_value()
Dsi_shader.c1853 radeon_bld->system_values[index] = value; in declare_system_value()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c337 struct lp_bld_tgsi_system_values system_values; in generate_fs_loop() local
339 memset(&system_values, 0, sizeof(system_values)); in generate_fs_loop()
477 consts_ptr, num_consts_ptr, &system_values, in generate_fs_loop()