/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_disk_cache.c | 117 blob_write_bytes(&blob, shader->system_values, in iris_disk_cache_store() 182 uint32_t *system_values = NULL; in iris_disk_cache_retrieve() local 191 system_values = in iris_disk_cache_retrieve() 193 blob_copy_bytes(&blob, system_values, in iris_disk_cache_retrieve() 249 prog_data, so_decls, system_values, in iris_disk_cache_retrieve()
|
D | iris_program.c | 394 enum brw_param_builtin *system_values = in iris_setup_uniforms() local 466 system_values[ucp_idx[ucp] + i] = in iris_setup_uniforms() 479 system_values[patch_vert_idx] = in iris_setup_uniforms() 502 uint32_t *img_sv = &system_values[img_idx[img]]; in iris_setup_uniforms() 536 system_values[variable_group_size_idx + i] = in iris_setup_uniforms() 549 system_values[work_dim_idx] = BRW_PARAM_BUILTIN_WORK_DIM; in iris_setup_uniforms() 601 system_values = reralloc(mem_ctx, system_values, enum brw_param_builtin, in iris_setup_uniforms() 629 ralloc_free(system_values); in iris_setup_uniforms() 630 system_values = NULL; in iris_setup_uniforms() 643 *out_system_values = system_values; in iris_setup_uniforms() [all …]
|
D | iris_program_cache.c | 201 enum brw_param_builtin *system_values, in iris_upload_shader() argument 255 shader->system_values = system_values; in iris_upload_shader() 266 ralloc_steal(shader, shader->system_values); in iris_upload_shader()
|
D | iris_context.h | 444 enum brw_param_builtin *system_values; member
|
D | iris_state.c | 3286 uint32_t sysval = shader->system_values[i]; in upload_sysvals()
|
/external/mesa3d/src/gallium/drivers/swr/ |
D | swr_shader.cpp | 958 bld->system_values.invocation_id = wrap((LOAD(unwrap(iface->loop_var)))); in swr_tcs_llvm_emit_prologue() 961 … lp_build_print_value(gallivm, "Prologue LOOP Iteration BEGIN:", bld->system_values.invocation_id); in swr_tcs_llvm_emit_prologue() 1278 … lp_build_print_value(gallivm, "[TCS OUT][VTX] invocation_id: ", bld->system_values.invocation_id); in swr_tcs_llvm_store_output() 1287 VEXTRACT(unwrap(bld->system_values.invocation_id), C(0)), in swr_tcs_llvm_store_output() 1336 bld->system_values.invocation_id = wrap((LOAD(unwrap(iface->loop_var)))); in swr_tcs_llvm_emit_barrier() 1340 … lp_build_print_value(gallivm, "Barrier LOOP: InvocationId: \n", bld->system_values.invocation_id); in swr_tcs_llvm_emit_barrier() 1587 struct lp_bld_tgsi_system_values system_values; in CompileGS() local 1588 memset(&system_values, 0, sizeof(system_values)); in CompileGS() 1589 system_values.prim_id = wrap(LOAD(pGsCtx, {0, SWR_GS_CONTEXT_PrimitiveID})); in CompileGS() 1590 system_values.invocation_id = wrap(LOAD(pGsCtx, {0, SWR_GS_CONTEXT_InstanceID})); in CompileGS() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm.c | 937 const struct lp_bld_tgsi_system_values *system_values, in generate_vs() argument 962 params.system_values = system_values; in generate_vs() 1942 struct lp_bld_tgsi_system_values system_values; in draw_llvm_generate() local 1944 memset(&system_values, 0, sizeof(system_values)); in draw_llvm_generate() 1993 system_values.instance_id = LLVMGetParam(variant_func, 7); in draw_llvm_generate() 1995 system_values.base_instance = LLVMGetParam(variant_func, 9); in draw_llvm_generate() 1997 system_values.draw_id = LLVMGetParam(variant_func, 11); in draw_llvm_generate() 2006 lp_build_name(system_values.instance_id, "instance_id"); in draw_llvm_generate() 2008 lp_build_name(system_values.base_instance, "start_instance"); in draw_llvm_generate() 2010 lp_build_name(system_values.draw_id, "draw_id"); in draw_llvm_generate() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_cs.c | 307 struct lp_bld_tgsi_system_values system_values; in generate_compute() local 309 memset(&system_values, 0, sizeof(system_values)); in generate_compute() 334 …system_values.thread_id = LLVMGetUndef(LLVMArrayType(LLVMVectorType(int32_type, cs_type.length), 3… in generate_compute() 336 …system_values.thread_id = LLVMBuildInsertValue(builder, system_values.thread_id, tid_vals[i], i, "… in generate_compute() 339 system_values.block_id = LLVMGetUndef(LLVMVectorType(int32_type, 3)); in generate_compute() 341 …system_values.block_id = LLVMBuildInsertElement(builder, system_values.block_id, gtids[i], lp_buil… in generate_compute() 344 system_values.grid_size = LLVMGetUndef(LLVMVectorType(int32_type, 3)); in generate_compute() 346 …system_values.grid_size = LLVMBuildInsertElement(builder, system_values.grid_size, gstids[i], lp_b… in generate_compute() 348 system_values.work_dim = work_dim_arg; in generate_compute() 351 system_values.block_size = LLVMGetUndef(LLVMVectorType(int32_type, 3)); in generate_compute() [all …]
|
D | lp_state_fs.c | 610 struct lp_bld_tgsi_system_values system_values; in generate_fs_loop() local 612 memset(&system_values, 0, sizeof(system_values)); in generate_fs_loop() 615 …system_values.front_facing = LLVMBuildTrunc(gallivm->builder, facing, LLVMInt1TypeInContext(galliv… in generate_fs_loop() 616 …system_values.front_facing = LLVMBuildSExt(gallivm->builder, system_values.front_facing, LLVMInt32… in generate_fs_loop() 902 system_values.sample_mask_in = LLVMBuildLoad(builder, post_depth_sample_mask_in, ""); in generate_fs_loop() 905 system_values.sample_mask_in = sample_mask_in; in generate_fs_loop() 919 system_values.sample_id = sample_loop_state.counter; in generate_fs_loop() 920 system_values.sample_mask_in = LLVMBuildAnd(builder, system_values.sample_mask_in, in generate_fs_loop() 924 system_values.sample_id = lp_build_const_int32(gallivm, 0); in generate_fs_loop() 927 system_values.sample_pos = sample_pos_array; in generate_fs_loop() [all …]
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_nir_soa.c | 1468 result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.instance_id); in emit_sysval_intrin() 1471 result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.base_instance); in emit_sysval_intrin() 1474 result[0] = bld->system_values.basevertex; in emit_sysval_intrin() 1477 result[0] = bld->system_values.vertex_id; in emit_sysval_intrin() 1480 result[0] = bld->system_values.prim_id; in emit_sysval_intrin() 1485 …tmp[i] = LLVMBuildExtractElement(gallivm->builder, bld->system_values.block_id, lp_build_const_int… in emit_sysval_intrin() 1494 result[i] = LLVMBuildExtractValue(gallivm->builder, bld->system_values.thread_id, i, ""); in emit_sysval_intrin() 1499 …tmp[i] = LLVMBuildExtractElement(gallivm->builder, bld->system_values.grid_size, lp_build_const_in… in emit_sysval_intrin() 1508 result[0] = bld->system_values.invocation_id; in emit_sysval_intrin() 1510 … result[0] = lp_build_broadcast_scalar(&bld_base->uint_bld, bld->system_values.invocation_id); in emit_sysval_intrin() [all …]
|
D | lp_bld_tgsi_soa.c | 1135 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 …]
|
D | lp_bld_tgsi.h | 271 const struct lp_bld_tgsi_system_values *system_values; member 572 struct lp_bld_tgsi_system_values system_values; member
|
D | lp_bld_nir.h | 237 struct lp_bld_tgsi_system_values system_values; member
|
/external/virglrenderer/src/ |
D | vrend_shader.c | 193 struct vrend_shader_io system_values[32]; member 1543 if (ctx->num_system_values > ARRAY_SIZE(ctx->system_values)) { in iter_declaration() 1544 … vrend_printf( "Number of system values exceeded, max is %lu\n", ARRAY_SIZE(ctx->system_values)); in iter_declaration() 1548 ctx->system_values[i].name = decl->Semantic.Name; in iter_declaration() 1549 ctx->system_values[i].sid = decl->Semantic.Index; in iter_declaration() 1550 ctx->system_values[i].glsl_predefined_no_emit = true; in iter_declaration() 1551 ctx->system_values[i].glsl_no_index = true; in iter_declaration() 1552 ctx->system_values[i].override_no_wm = true; in iter_declaration() 1553 ctx->system_values[i].first = decl->Range.First; in iter_declaration() 1580 ctx->system_values[i].override_no_wm = false; in iter_declaration() [all …]
|