Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/swr/
Dswr_shader.cpp624 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/
Ddraw_llvm.c607 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/
Dvrend_shader.c142 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/
Dnir_lower_constant_initializers.c84 progress |= lower_const_initializer(&builder, &shader->system_values); in nir_lower_constant_initializers()
Dnir_lower_system_values.c181 exec_list_make_empty(&shader->system_values); in nir_lower_system_values()
Dnir_sweep.c166 steal_list(nir, nir_variable, &nir->system_values); in nir_sweep()
Dnir_remove_dead_variables.c190 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.c1217 exec_list_validate(&shader->system_values); in nir_validate_shader()
1218 nir_foreach_variable(var, &shader->system_values) { in nir_validate_shader()
Dnir_serialize.c1128 write_var_list(&ctx, &nir->system_values); in nir_serialize()
1183 read_var_list(&ctx, &ctx.nir->system_values); in nir_deserialize()
Dnir.c57 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()
Dnir_print.c1230 nir_foreach_variable(var, &shader->system_values) { in nir_print_shader_annotated()
Dnir.h1925 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.c1483 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/
Dsi_shader_internal.h92 LLVMValueRef system_values[RADEON_LLVM_MAX_SYSTEM_VALUES]; member
Dsi_shader_tgsi_setup.c610 LLVMValueRef cval = ctx->system_values[reg->Register.Index]; in fetch_system_value()
Dsi_shader.c2218 ctx->system_values[index] = value; in si_load_system_value()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp250 nir_foreach_variable_safe(var, &nir->system_values) { in brw_nir_lower_patch_vertices_in_to_uniform()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c338 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()