Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/drivers/iris/
Diris_program.c79 enum brw_param_builtin *system_values, in iris_finalize_program() argument
87 shader->system_values = system_values; in iris_finalize_program()
97 ralloc_steal(shader, shader->system_values); in iris_finalize_program()
486 enum brw_param_builtin *system_values = in iris_setup_uniforms() local
558 system_values[ucp_idx[ucp] + i] = in iris_setup_uniforms()
571 system_values[patch_vert_idx] = in iris_setup_uniforms()
594 uint32_t *img_sv = &system_values[img_idx[img]]; in iris_setup_uniforms()
628 system_values[variable_group_size_idx + i] = in iris_setup_uniforms()
641 system_values[work_dim_idx] = BRW_PARAM_BUILTIN_WORK_DIM; in iris_setup_uniforms()
689 system_values = reralloc(mem_ctx, system_values, enum brw_param_builtin, in iris_setup_uniforms()
[all …]
Diris_disk_cache.c117 blob_write_bytes(&blob, shader->system_values, in iris_disk_cache_store()
183 uint32_t *system_values = NULL; in iris_disk_cache_retrieve() local
192 system_values = in iris_disk_cache_retrieve()
194 blob_copy_bytes(&blob, system_values, in iris_disk_cache_retrieve()
239 iris_finalize_program(shader, prog_data, so_decls, system_values, in iris_disk_cache_retrieve()
Diris_context.h518 enum brw_param_builtin *system_values; member
998 enum brw_param_builtin *system_values,
Diris_state.c3463 uint32_t sysval = shader->system_values[i]; in upload_sysvals()
/third_party/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.c453 enum brw_param_builtin *system_values = in crocus_setup_uniforms() local
523 system_values[ucp_idx[ucp] + i] = in crocus_setup_uniforms()
535 system_values[patch_vert_idx] = in crocus_setup_uniforms()
557 uint32_t *img_sv = &system_values[img_idx[img]]; in crocus_setup_uniforms()
590 system_values[variable_group_size_idx + i] = in crocus_setup_uniforms()
637 system_values = reralloc(mem_ctx, system_values, enum brw_param_builtin, in crocus_setup_uniforms()
665 ralloc_free(system_values); in crocus_setup_uniforms()
666 system_values = NULL; in crocus_setup_uniforms()
689 *out_system_values = system_values; in crocus_setup_uniforms()
1192 enum brw_param_builtin *system_values; in crocus_compile_vs() local
[all …]
Dcrocus_program_cache.c192 enum brw_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_context.h381 enum brw_param_builtin *system_values; member
Dcrocus_state.c3550 uint32_t sysval = shader->system_values[i]; in upload_sysvals()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.c960 const struct lp_bld_tgsi_system_values *system_values, in generate_vs() argument
985 params.system_values = system_values; in generate_vs()
1950 struct lp_bld_tgsi_system_values system_values; in draw_llvm_generate() local
1952 memset(&system_values, 0, sizeof(system_values)); in draw_llvm_generate()
2002 system_values.instance_id = LLVMGetParam(variant_func, 7); in draw_llvm_generate()
2004 system_values.base_instance = LLVMGetParam(variant_func, 9); in draw_llvm_generate()
2006 system_values.draw_id = LLVMGetParam(variant_func, 11); in draw_llvm_generate()
2007 system_values.view_index = LLVMGetParam(variant_func, 12); in draw_llvm_generate()
2016 lp_build_name(system_values.instance_id, "instance_id"); in draw_llvm_generate()
2018 lp_build_name(system_values.base_instance, "start_instance"); in draw_llvm_generate()
[all …]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_cs.c325 struct lp_bld_tgsi_system_values system_values; in generate_compute() local
327 memset(&system_values, 0, sizeof(system_values)); in generate_compute()
358system_values.thread_id = LLVMGetUndef(LLVMArrayType(LLVMVectorType(int32_type, cs_type.length), 3… in generate_compute()
360system_values.thread_id = LLVMBuildInsertValue(builder, system_values.thread_id, tid_vals[i], i, "… in generate_compute()
363 system_values.block_id = LLVMGetUndef(LLVMVectorType(int32_type, 3)); in generate_compute()
365system_values.block_id = LLVMBuildInsertElement(builder, system_values.block_id, gtids[i], lp_buil… in generate_compute()
368 system_values.grid_size = LLVMGetUndef(LLVMVectorType(int32_type, 3)); in generate_compute()
370system_values.grid_size = LLVMBuildInsertElement(builder, system_values.grid_size, gstids[i], lp_b… in generate_compute()
372 system_values.work_dim = work_dim_arg; in generate_compute()
392 system_values.subgroup_id = subgroup_id; in generate_compute()
[all …]
Dlp_state_fs.c662 struct lp_bld_tgsi_system_values system_values; in generate_fs_loop() local
664 memset(&system_values, 0, sizeof(system_values)); in generate_fs_loop()
667 system_values.front_facing = in generate_fs_loop()
670 system_values.front_facing = in generate_fs_loop()
671 LLVMBuildSExt(gallivm->builder, system_values.front_facing, in generate_fs_loop()
673 system_values.view_index = in generate_fs_loop()
975 system_values.sample_mask_in = LLVMBuildLoad(builder, post_depth_sample_mask_in, ""); in generate_fs_loop()
978 system_values.sample_mask_in = sample_mask_in; in generate_fs_loop()
992 system_values.sample_id = sample_loop_state.counter; in generate_fs_loop()
993 system_values.sample_mask_in = LLVMBuildAnd(builder, system_values.sample_mask_in, in generate_fs_loop()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir_soa.c1736 result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_sysval_intrin()
1739 result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.base_instance); in emit_sysval_intrin()
1742 result[0] = bld->system_values.basevertex; in emit_sysval_intrin()
1745 result[0] = bld->system_values.firstvertex; in emit_sysval_intrin()
1748 result[0] = bld->system_values.vertex_id; in emit_sysval_intrin()
1751 result[0] = bld->system_values.prim_id; in emit_sysval_intrin()
1756 …tmp[i] = LLVMBuildExtractElement(gallivm->builder, bld->system_values.block_id, lp_build_const_int… in emit_sysval_intrin()
1765 result[i] = LLVMBuildExtractValue(gallivm->builder, bld->system_values.thread_id, i, ""); in emit_sysval_intrin()
1769 …r(&bld_base->uint_bld, LLVMBuildExtractElement(gallivm->builder, bld->system_values.block_size, lp… in emit_sysval_intrin()
1770 …r(&bld_base->uint_bld, LLVMBuildExtractElement(gallivm->builder, bld->system_values.block_size, lp… in emit_sysval_intrin()
[all …]
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()
1489 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_fetch_system_value()
1494 res = bld->system_values.vertex_id; in emit_fetch_system_value()
1499 res = bld->system_values.vertex_id_nobase; in emit_fetch_system_value()
1504 res = bld->system_values.basevertex; in emit_fetch_system_value()
1509 res = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.base_instance); in emit_fetch_system_value()
1514 res = bld->system_values.prim_id; in emit_fetch_system_value()
1520 res = bld->system_values.invocation_id; in emit_fetch_system_value()
[all …]
Dlp_bld_tgsi.h273 const struct lp_bld_tgsi_system_values *system_values; member
575 struct lp_bld_tgsi_system_values system_values; member
Dlp_bld_nir.h274 struct lp_bld_tgsi_system_values system_values; member
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_meta.c443 gl_system_value system_values[] = { in dzn_meta_blits_get_vs() local
448 NIR_PASS_V(nir, dxil_nir_lower_system_values_to_zero, system_values, in dzn_meta_blits_get_vs()
449 ARRAY_SIZE(system_values)); in dzn_meta_blits_get_vs()
/third_party/mesa3d/src/microsoft/spirv_to_dxil/
Ddxil_spirv_nir.c612 gl_system_value system_values[] = {SYSTEM_VALUE_FIRST_VERTEX, in dxil_spirv_nir_passes() local
615 NIR_PASS_V(nir, dxil_nir_lower_system_values_to_zero, system_values, in dxil_spirv_nir_passes()
616 ARRAY_SIZE(system_values)); in dxil_spirv_nir_passes()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir.c1407 gl_system_value* system_values, in dxil_nir_lower_system_values_to_zero() argument
1410 zero_system_values_state state = { system_values, count }; in dxil_nir_lower_system_values_to_zero()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler_test.cpp1906 TEST_F(ComputeTest, system_values) in TEST_F() argument