Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_cs.c506 struct lp_bld_tgsi_system_values system_values; in generate_compute() local
508 memset(&system_values, 0, sizeof(system_values)); in generate_compute()
526system_values.work_dim = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_WORK_DIM… in generate_compute()
527system_values.thread_id[0] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_THRE… in generate_compute()
528system_values.thread_id[1] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_THRE… in generate_compute()
529system_values.thread_id[2] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_THRE… in generate_compute()
530system_values.block_id[0] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_BLOCK… in generate_compute()
531system_values.block_id[1] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_BLOCK… in generate_compute()
532system_values.block_id[2] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_BLOCK… in generate_compute()
533system_values.grid_size[0] = LLVMBuildExtractValue(builder, call_context, LP_NIR_CALL_CONTEXT_GRID… in generate_compute()
[all …]
Dlp_state_fs.c718 struct lp_bld_tgsi_system_values system_values; in generate_fs_loop() local
720 memset(&system_values, 0, sizeof(system_values)); in generate_fs_loop()
723 system_values.front_facing = in generate_fs_loop()
726 system_values.front_facing = in generate_fs_loop()
727 LLVMBuildSExt(gallivm->builder, system_values.front_facing, in generate_fs_loop()
729 system_values.view_index = in generate_fs_loop()
1036system_values.sample_mask_in = LLVMBuildLoad2(builder, int_vec_type, post_depth_sample_mask_in, ""… in generate_fs_loop()
1038 system_values.sample_mask_in = sample_mask_in; in generate_fs_loop()
1053 system_values.sample_id = sample_loop_state.counter; in generate_fs_loop()
1054 system_values.sample_mask_in = LLVMBuildAnd(builder, system_values.sample_mask_in, in generate_fs_loop()
[all …]
/external/mesa3d/src/gallium/drivers/crocus/
Dcrocus_disk_cache.c116 blob_write_bytes(&blob, shader->system_values, in crocus_disk_cache_store()
168 uint32_t *system_values = NULL; in crocus_disk_cache_retrieve() local
177 system_values = in crocus_disk_cache_retrieve()
179 blob_copy_bytes(&blob, system_values, in crocus_disk_cache_retrieve()
219 prog_data, prog_data_size, so_decls, system_values, in crocus_disk_cache_retrieve()
Dcrocus_program_cache.c192 enum elk_param_builtin *system_values, in crocus_upload_shader() argument
221 shader->system_values = system_values; in crocus_upload_shader()
230 ralloc_steal(shader, shader->system_values); in crocus_upload_shader()
Dcrocus_program.c438 enum elk_param_builtin *system_values = in crocus_setup_uniforms() local
512 system_values[ucp_idx[ucp] + i] = in crocus_setup_uniforms()
524 system_values[patch_vert_idx] = in crocus_setup_uniforms()
537 system_values[tess_outer_default_idx + i] = in crocus_setup_uniforms()
552 system_values[tess_inner_default_idx + i] = in crocus_setup_uniforms()
576 uint32_t *img_sv = &system_values[img_idx[img]]; in crocus_setup_uniforms()
609 system_values[variable_group_size_idx + i] = in crocus_setup_uniforms()
656 system_values = reralloc(mem_ctx, system_values, enum elk_param_builtin, in crocus_setup_uniforms()
681 ralloc_free(system_values); in crocus_setup_uniforms()
682 system_values = NULL; in crocus_setup_uniforms()
[all …]
Dcrocus_context.h381 enum elk_param_builtin *system_values; member
Dcrocus_state.c3548 uint32_t sysval = shader->system_values[i]; in upload_sysvals()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c580 const struct lp_bld_tgsi_system_values *system_values, in generate_vs() argument
602 params.system_values = system_values; in generate_vs()
1600 struct lp_bld_tgsi_system_values system_values; in draw_llvm_generate() local
1602 memset(&system_values, 0, sizeof(system_values)); in draw_llvm_generate()
1655 system_values.instance_id = LLVMGetParam(variant_func, 8); in draw_llvm_generate()
1657 system_values.base_instance = LLVMGetParam(variant_func, 10); in draw_llvm_generate()
1659 system_values.draw_id = LLVMGetParam(variant_func, 12); in draw_llvm_generate()
1660 system_values.view_index = LLVMGetParam(variant_func, 13); in draw_llvm_generate()
1670 lp_build_name(system_values.instance_id, "instance_id"); in draw_llvm_generate()
1672 lp_build_name(system_values.base_instance, "start_instance"); in draw_llvm_generate()
[all …]
/external/mesa3d/src/gallium/drivers/iris/
Diris_disk_cache.c140 blob_write_bytes(&blob, shader->system_values, in iris_disk_cache_store()
214 uint32_t *system_values = NULL; in iris_disk_cache_retrieve() local
227 system_values = in iris_disk_cache_retrieve()
229 blob_copy_bytes(&blob, system_values, in iris_disk_cache_retrieve()
297 iris_finalize_program(shader, so_decls, system_values, in iris_disk_cache_retrieve()
Diris_program.c491 uint32_t *system_values, in iris_finalize_program() argument
501 shader->system_values = system_values; in iris_finalize_program()
508 ralloc_steal(shader, shader->system_values); in iris_finalize_program()
941 unsigned *system_values = in iris_setup_uniforms() local
1025 system_values[ucp_idx[ucp] + i] = in iris_setup_uniforms()
1038 system_values[patch_vert_idx] = in iris_setup_uniforms()
1052 system_values[tess_outer_default_idx + i] = in iris_setup_uniforms()
1067 system_values[tess_inner_default_idx + i] = in iris_setup_uniforms()
1091 uint32_t *img_sv = &system_values[img_idx[img]]; in iris_setup_uniforms()
1125 system_values[variable_group_size_idx + i] = in iris_setup_uniforms()
[all …]
Diris_context.h684 uint32_t *system_values; member
1399 uint32_t *system_values,
Diris_state.c4037 uint32_t sysval = shader->system_values[i]; in upload_sysvals()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir_soa.c1915 tmp = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.block_size[1]); in get_local_invocation_index()
1916 tmp2 = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.block_size[0]); in get_local_invocation_index()
1918 tmp = lp_build_mul(&bld_base->uint_bld, tmp, bld->system_values.thread_id[2]); in get_local_invocation_index()
1920 tmp2 = lp_build_mul(&bld_base->uint_bld, tmp2, bld->system_values.thread_id[1]); in get_local_invocation_index()
1922 tmp = lp_build_add(&bld_base->uint_bld, tmp, bld->system_values.thread_id[0]); in get_local_invocation_index()
1935 result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_sysval_intrin()
1938 result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.base_instance); in emit_sysval_intrin()
1941 result[0] = bld->system_values.basevertex; in emit_sysval_intrin()
1944 result[0] = bld->system_values.firstvertex; in emit_sysval_intrin()
1947 result[0] = bld->system_values.vertex_id; in emit_sysval_intrin()
[all …]
Dlp_bld_tgsi_soa.c1142 res = bld->system_values.prim_id; in emit_fetch_gs_input()
1230 res = bld->system_values.prim_id; in emit_fetch_tcs_input()
1333 res = bld->system_values.prim_id; in emit_fetch_tes_input()
1497 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_fetch_system_value()
1502 res = bld->system_values.vertex_id; in emit_fetch_system_value()
1507 res = bld->system_values.vertex_id_nobase; in emit_fetch_system_value()
1512 res = bld->system_values.basevertex; in emit_fetch_system_value()
1517 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.base_instance); in emit_fetch_system_value()
1522 res = bld->system_values.prim_id; in emit_fetch_system_value()
1528 res = bld->system_values.invocation_id; in emit_fetch_system_value()
[all …]
Dlp_bld_tgsi.h268 const struct lp_bld_tgsi_system_values *system_values; member
591 struct lp_bld_tgsi_system_values system_values; member
Dlp_bld_nir.h310 struct lp_bld_tgsi_system_values system_values; member
/external/virglrenderer/src/
Dvrend_shader.c216 struct vrend_shader_io system_values[32]; member
1862 if (ctx->num_system_values > ARRAY_SIZE(ctx->system_values)) { in iter_declaration()
1863 … vrend_printf( "Number of system values exceeded, max is %lu\n", ARRAY_SIZE(ctx->system_values)); in iter_declaration()
1867 ctx->system_values[i].name = decl->Semantic.Name; in iter_declaration()
1868 ctx->system_values[i].sid = decl->Semantic.Index; in iter_declaration()
1869 ctx->system_values[i].glsl_predefined_no_emit = true; in iter_declaration()
1870 ctx->system_values[i].glsl_no_index = true; in iter_declaration()
1871 ctx->system_values[i].override_no_wm = true; in iter_declaration()
1872 ctx->system_values[i].first = decl->Range.First; in iter_declaration()
1899 ctx->system_values[i].override_no_wm = false; in iter_declaration()
[all …]
/external/mesa3d/src/intel/compiler/elk/
Delk_fs_nir.cpp62 elk_fs_reg *system_values; member
213 reg = &ntb.system_values[SYSTEM_VALUE_INVOCATION_ID]; in emit_system_values_block()
222 reg = &ntb.system_values[SYSTEM_VALUE_SAMPLE_POS]; in emit_system_values_block()
229 reg = &ntb.system_values[SYSTEM_VALUE_SAMPLE_ID]; in emit_system_values_block()
237 reg = &ntb.system_values[SYSTEM_VALUE_SAMPLE_MASK_IN]; in emit_system_values_block()
244 reg = &ntb.system_values[SYSTEM_VALUE_WORKGROUP_ID]; in emit_system_values_block()
251 reg = &ntb.system_values[SYSTEM_VALUE_HELPER_INVOCATION]; in emit_system_values_block()
322 ntb.system_values = ralloc_array(ntb.mem_ctx, elk_fs_reg, SYSTEM_VALUE_MAX); in fs_nir_emit_system_values()
324 ntb.system_values[i] = elk_fs_reg(); in fs_nir_emit_system_values()
332 elk_fs_reg &reg = ntb.system_values[SYSTEM_VALUE_SUBGROUP_INVOCATION]; in fs_nir_emit_system_values()
[all …]
/external/mesa3d/src/microsoft/vulkan/
Ddzn_meta.c432 gl_system_value system_values[] = { in dzn_meta_blits_get_vs() local
437 NIR_PASS_V(nir, dxil_nir_lower_system_values_to_zero, system_values, in dzn_meta_blits_get_vs()
438 ARRAY_SIZE(system_values)); in dzn_meta_blits_get_vs()
/external/mesa3d/src/intel/compiler/
Dbrw_fs_nir.cpp60 brw_reg *system_values; member
264 reg = &ntb.system_values[SYSTEM_VALUE_INVOCATION_ID]; in emit_system_values_block()
273 reg = &ntb.system_values[SYSTEM_VALUE_SAMPLE_POS]; in emit_system_values_block()
280 reg = &ntb.system_values[SYSTEM_VALUE_SAMPLE_ID]; in emit_system_values_block()
287 reg = &ntb.system_values[SYSTEM_VALUE_SAMPLE_MASK_IN]; in emit_system_values_block()
296 reg = &ntb.system_values[SYSTEM_VALUE_WORKGROUP_ID]; in emit_system_values_block()
303 reg = &ntb.system_values[SYSTEM_VALUE_HELPER_INVOCATION]; in emit_system_values_block()
356 reg = &ntb.system_values[SYSTEM_VALUE_FRAG_SHADING_RATE]; in emit_system_values_block()
374 ntb.system_values = ralloc_array(ntb.mem_ctx, brw_reg, SYSTEM_VALUE_MAX); in fs_nir_emit_system_values()
376 ntb.system_values[i] = brw_reg(); in fs_nir_emit_system_values()
[all …]
/external/mesa3d/src/microsoft/spirv_to_dxil/
Ddxil_spirv_nir.c943 gl_system_value system_values[] = {SYSTEM_VALUE_FIRST_VERTEX, in dxil_spirv_nir_passes() local
946 NIR_PASS_V(nir, dxil_nir_lower_system_values_to_zero, system_values, in dxil_spirv_nir_passes()
947 ARRAY_SIZE(system_values)); in dxil_spirv_nir_passes()
/external/mesa3d/src/microsoft/compiler/
Ddxil_nir.c1230 gl_system_value* system_values, in dxil_nir_lower_system_values_to_zero() argument
1233 zero_system_values_state state = { system_values, count }; in dxil_nir_lower_system_values_to_zero()
/external/mesa3d/src/microsoft/clc/
Dclc_compiler_test.cpp1947 TEST_F(ComputeTest, system_values) in TEST_F() argument