/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_shader.cpp | 624 struct lp_bld_tgsi_system_values system_values; in CompileGS() local 625 memset(&system_values, 0, sizeof(system_values)); in CompileGS() 626 system_values.prim_id = wrap(LOAD(pGsCtx, {0, SWR_GS_CONTEXT_PrimitiveID})); in CompileGS() 627 system_values.instance_id = wrap(LOAD(pGsCtx, {0, SWR_GS_CONTEXT_InstanceID})); in CompileGS() 681 &system_values, in CompileGS() 807 struct lp_bld_tgsi_system_values system_values; in CompileVS() local 808 memset(&system_values, 0, sizeof(system_values)); in CompileVS() 809 system_values.instance_id = wrap(LOAD(pVsCtx, {0, SWR_VS_CONTEXT_InstanceID})); in CompileVS() 812 system_values.vertex_id = wrap(LOAD(pVsCtx, {0, SWR_VS_CONTEXT_VertexID16})); in CompileVS() 814 system_values.vertex_id = wrap(LOAD(pVsCtx, {0, SWR_VS_CONTEXT_VertexID})); in CompileVS() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 607 const struct lp_bld_tgsi_system_values *system_values, in generate_vs() argument 625 system_values, in generate_vs() 1573 struct lp_bld_tgsi_system_values system_values; in draw_llvm_generate() local 1575 memset(&system_values, 0, sizeof(system_values)); in draw_llvm_generate() 1622 system_values.instance_id = LLVMGetParam(variant_func, 7); in draw_llvm_generate() 1634 lp_build_name(system_values.instance_id, "instance_id"); in draw_llvm_generate() 1745 current_instance = LLVMBuildUDiv(builder, system_values.instance_id, in draw_llvm_generate() 1780 lp_build_printf(gallivm, " instance_id = %u\n", system_values.instance_id); in draw_llvm_generate() 1894 system_values.basevertex = lp_build_broadcast_scalar(&blduivec, in draw_llvm_generate() 1896 system_values.vertex_id = true_index_array; in draw_llvm_generate() [all …]
|
/external/virglrenderer/src/ |
D | vrend_shader.c | 142 struct vrend_shader_io system_values[32]; member 1219 if (ctx->num_system_values > ARRAY_SIZE(ctx->system_values)) { in iter_declaration() 1220 … fprintf(stderr, "Number of system values exceeded, max is %lu\n", ARRAY_SIZE(ctx->system_values)); in iter_declaration() 1224 ctx->system_values[i].name = decl->Semantic.Name; in iter_declaration() 1225 ctx->system_values[i].sid = decl->Semantic.Index; in iter_declaration() 1226 ctx->system_values[i].glsl_predefined_no_emit = true; in iter_declaration() 1227 ctx->system_values[i].glsl_no_index = true; in iter_declaration() 1228 ctx->system_values[i].override_no_wm = true; in iter_declaration() 1229 ctx->system_values[i].first = decl->Range.First; in iter_declaration() 1256 ctx->system_values[i].override_no_wm = false; in iter_declaration() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_lower_constant_initializers.c | 84 progress |= lower_const_initializer(&builder, &shader->system_values); in nir_lower_constant_initializers()
|
D | nir_lower_system_values.c | 181 exec_list_make_empty(&shader->system_values); in nir_lower_system_values()
|
D | nir_sweep.c | 166 steal_list(nir, nir_variable, &nir->system_values); in nir_sweep()
|
D | nir_remove_dead_variables.c | 190 progress = remove_dead_vars(&shader->system_values, live) || progress; in nir_remove_dead_variables()
|
D | nir_clone.c | 748 clone_var_list(&state, &ns->system_values, &s->system_values); in nir_shader_clone()
|
D | nir_validate.c | 1217 exec_list_validate(&shader->system_values); in nir_validate_shader() 1218 nir_foreach_variable(var, &shader->system_values) { in nir_validate_shader()
|
D | nir_serialize.c | 1128 write_var_list(&ctx, &nir->system_values); in nir_serialize() 1183 read_var_list(&ctx, &ctx.nir->system_values); in nir_deserialize()
|
D | nir.c | 57 exec_list_make_empty(&shader->system_values); in nir_shader_create() 153 exec_list_push_tail(&shader->system_values, &var->node); in nir_shader_add_variable()
|
D | nir_print.c | 1230 nir_foreach_variable(var, &shader->system_values) { in nir_print_shader_annotated()
|
D | nir.h | 1925 struct exec_list system_values; member
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_tgsi.h | 226 const struct lp_bld_tgsi_system_values *system_values, 487 struct lp_bld_tgsi_system_values system_values; member
|
D | lp_bld_tgsi_soa.c | 1483 res = bld->system_values.prim_id; in emit_fetch_gs_input() 1621 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_fetch_system_value() 1626 res = bld->system_values.vertex_id; in emit_fetch_system_value() 1631 res = bld->system_values.vertex_id_nobase; in emit_fetch_system_value() 1636 res = bld->system_values.basevertex; in emit_fetch_system_value() 1641 res = bld->system_values.prim_id; in emit_fetch_system_value() 1646 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.invocation_id); in emit_fetch_system_value() 3778 const struct lp_bld_tgsi_system_values *system_values, in lp_build_tgsi_soa() argument 3943 bld.system_values = *system_values; in lp_build_tgsi_soa()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_internal.h | 92 LLVMValueRef system_values[RADEON_LLVM_MAX_SYSTEM_VALUES]; member
|
D | si_shader_tgsi_setup.c | 610 LLVMValueRef cval = ctx->system_values[reg->Register.Index]; in fetch_system_value()
|
D | si_shader.c | 2218 ctx->system_values[index] = value; in si_load_system_value()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_nir_uniforms.cpp | 250 nir_foreach_variable_safe(var, &nir->system_values) { in brw_nir_lower_patch_vertices_in_to_uniform()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_fs.c | 338 struct lp_bld_tgsi_system_values system_values; in generate_fs_loop() local 340 memset(&system_values, 0, sizeof(system_values)); in generate_fs_loop() 479 consts_ptr, num_consts_ptr, &system_values, in generate_fs_loop()
|