/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_rt_intrinsics.c | 102 nir_ssa_def *sysval = NULL; in lower_rt_intrinsics_impl() local 107 sysval = stack_base_addr; in lower_rt_intrinsics_impl() 143 sysval = brw_nir_load_global_const(b, intrin, in lower_rt_intrinsics_impl() 151 sysval = nir_channels(b, hotzone, 0xe); in lower_rt_intrinsics_impl() 155 sysval = globals.launch_size; in lower_rt_intrinsics_impl() 159 sysval = world_ray_in.orig; in lower_rt_intrinsics_impl() 163 sysval = world_ray_in.dir; in lower_rt_intrinsics_impl() 167 sysval = object_ray_in.orig; in lower_rt_intrinsics_impl() 171 sysval = object_ray_in.dir; in lower_rt_intrinsics_impl() 176 sysval = world_ray_in.t_near; in lower_rt_intrinsics_impl() [all …]
|
D | brw_nir_lower_ray_queries.c | 364 nir_ssa_def *sysval = NULL; in lower_ray_query_intrinsic() local 374 sysval = in lower_ray_query_intrinsic() 377 sysval = in lower_ray_query_intrinsic() 379 sysval, nir_imm_int(b, 0)); in lower_ray_query_intrinsic() 382 sysval = in lower_ray_query_intrinsic() 390 sysval = hit_in.t; in lower_ray_query_intrinsic() 396 sysval = leaf.instance_id; in lower_ray_query_intrinsic() 403 sysval = leaf.instance_index; in lower_ray_query_intrinsic() 410 sysval = leaf.contribution_to_hit_group_index; in lower_ray_query_intrinsic() 418 sysval = nir_iand_imm(b, geometry_index_dw, BITFIELD_MASK(29)); in lower_ray_query_intrinsic() [all …]
|
D | brw_nir_lower_cs_intrinsics.c | 54 nir_ssa_def *sysval; in lower_cs_intrinsics_convert_block() local 62 sysval = nir_u2u64(b, &intrinsic->dest.ssa); in lower_cs_intrinsics_convert_block() 64 sysval, in lower_cs_intrinsics_convert_block() 65 sysval->parent_instr); in lower_cs_intrinsics_convert_block() 216 sysval = local_id; in lower_cs_intrinsics_convert_block() 218 sysval = local_index; in lower_cs_intrinsics_convert_block() 238 sysval = in lower_cs_intrinsics_convert_block() 249 sysval = nir_u2u64(b, sysval); in lower_cs_intrinsics_convert_block() 251 nir_ssa_def_rewrite_uses(&intrinsic->dest.ssa, sysval); in lower_cs_intrinsics_convert_block()
|
D | brw_nir.c | 1663 nir_ssa_def *sysval; in brw_nir_load_global_const() local 1684 sysval = nir_extract_bits(b, data, 2, suboffset * 8, in brw_nir_load_global_const() 1691 sysval = nir_load_global_constant(b, addr, byte_size, in brw_nir_load_global_const() 1695 return sysval; in brw_nir_load_global_const()
|
/third_party/mesa3d/src/panfrost/util/ |
D | pan_sysval.c | 111 unsigned sysval = ~0; in panfrost_sysval_for_instr() local 116 sysval = panfrost_nir_sysval_for_intrinsic(intr); in panfrost_sysval_for_instr() 124 sysval = PAN_SYSVAL(TEXTURE_SIZE, in panfrost_sysval_for_instr() 138 return sysval; in panfrost_sysval_for_instr() 144 int sysval, unsigned id) in pan_add_sysval() argument 147 _mesa_hash_table_u64_insert(sysval_to_id, sysval, (void *) ((uintptr_t) id + 1)); in pan_add_sysval() 148 sysvals->sysvals[id] = sysval; in pan_add_sysval() 155 int sysval) in pan_lookup_sysval() argument 159 void *cached = _mesa_hash_table_u64_search(sysval_to_id, sysval); in pan_lookup_sysval() 164 assert(sysvals->sysvals[id] == sysval); in pan_lookup_sysval() [all …]
|
D | pan_ir.h | 88 #define PAN_SYSVAL_TYPE(sysval) ((sysval) & 0xffff) argument 89 #define PAN_SYSVAL_ID(sysval) ((sysval) >> 16) argument 175 int sysval);
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_sysvals_to_varyings.c | 42 #define SYSVAL_TO_VARYING(opt, sysval, varying) \ in nir_lower_sysvals_to_varyings() argument 43 case SYSTEM_VALUE_ ## sysval: \ in nir_lower_sysvals_to_varyings()
|
D | nir_intrinsics.py | 46 indices, flags, sysval, bit_sizes): argument 72 assert isinstance(sysval, bool) 88 self.sysval = sysval 119 flags=[], sysval=False, bit_sizes=[]): argument 122 indices, flags, sysval, bit_sizes) 771 flags=[CAN_ELIMINATE, CAN_REORDER], sysval=True,
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_from_mesa.c | 216 tgsi_get_sysval_semantic(unsigned sysval) in tgsi_get_sysval_semantic() argument 218 switch (sysval) { in tgsi_get_sysval_semantic()
|
D | tgsi_from_mesa.h | 56 tgsi_get_sysval_semantic(unsigned sysval);
|
/third_party/mesa3d/src/freedreno/ir3/ |
D | ir3_dce.c | 119 instr->input.sysval == SYSTEM_VALUE_BARYCENTRIC_PERSP_PIXEL) in find_and_remove_unused() 123 if (instr->input.sysval == SYSTEM_VALUE_GS_HEADER_IR3) in find_and_remove_unused()
|
D | ir3_compiler_nir.c | 69 in->input.sysval = ~0; in create_input() 1735 instr->input.sysval = slot; in add_sysval_input_compmask() 1737 so->inputs[n].sysval = true; in add_sysval_input_compmask() 1750 struct ir3_instruction *sysval = create_input(ctx, compmask); in create_sysval_input() local 1751 add_sysval_input_compmask(ctx, slot, compmask, sysval); in create_sysval_input() 1752 return sysval; in create_sysval_input() 1795 gl_system_value sysval; in nir_intrinsic_barycentric_sysval() local 1800 sysval = SYSTEM_VALUE_BARYCENTRIC_LINEAR_PIXEL; in nir_intrinsic_barycentric_sysval() 1802 sysval = SYSTEM_VALUE_BARYCENTRIC_PERSP_PIXEL; in nir_intrinsic_barycentric_sysval() 1806 sysval = SYSTEM_VALUE_BARYCENTRIC_LINEAR_CENTROID; in nir_intrinsic_barycentric_sysval() [all …]
|
D | ir3_shader.h | 632 bool sysval : 1; /* slot is a gl_system_value */ member 1138 if (so->inputs[j].sysval && (so->inputs[j].slot == slot)) in ir3_find_sysval_regid()
|
D | ir3_parser.y | 230 static void add_sysval(unsigned reg, unsigned compmask, gl_system_value sysval) in add_sysval() argument 234 variant->inputs[n].sysval = true; in add_sysval() 235 variant->inputs[n].slot = sysval; in add_sysval()
|
D | ir3_shader.c | 709 if (so->inputs[i].sysval) { in input_name()
|
/third_party/mesa3d/src/compiler/ |
D | shader_enums.c | 259 gl_system_value_name(gl_system_value sysval) in gl_system_value_name() argument 343 return NAME(sysval); in gl_system_value_name()
|
D | shader_enums.h | 862 const char *gl_system_value_name(gl_system_value sysval);
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_state.c | 3463 uint32_t sysval = shader->system_values[i]; in upload_sysvals() local 3466 if (BRW_PARAM_DOMAIN(sysval) == BRW_PARAM_DOMAIN_IMAGE) { in upload_sysvals() 3468 unsigned img = BRW_PARAM_IMAGE_IDX(sysval); in upload_sysvals() 3469 unsigned offset = BRW_PARAM_IMAGE_OFFSET(sysval); in upload_sysvals() 3476 } else if (sysval == BRW_PARAM_BUILTIN_ZERO) { in upload_sysvals() 3478 } else if (BRW_PARAM_BUILTIN_IS_CLIP_PLANE(sysval)) { in upload_sysvals() 3479 int plane = BRW_PARAM_BUILTIN_CLIP_PLANE_IDX(sysval); in upload_sysvals() 3480 int comp = BRW_PARAM_BUILTIN_CLIP_PLANE_COMP(sysval); in upload_sysvals() 3482 } else if (sysval == BRW_PARAM_BUILTIN_PATCH_VERTICES_IN) { in upload_sysvals() 3494 } else if (sysval >= BRW_PARAM_BUILTIN_TESS_LEVEL_OUTER_X && in upload_sysvals() [all …]
|
/third_party/mesa3d/src/microsoft/compiler/ |
D | dxil_nir.c | 1717 gl_system_value sysval = SYSTEM_VALUE_MAX; in lower_sysval_to_load_input_impl() local 1720 sysval = SYSTEM_VALUE_FRONT_FACE; in lower_sysval_to_load_input_impl() 1723 sysval = SYSTEM_VALUE_INSTANCE_ID; in lower_sysval_to_load_input_impl() 1726 sysval = SYSTEM_VALUE_VERTEX_ID_ZERO_BASE; in lower_sysval_to_load_input_impl() 1733 nir_variable *var = sysval_vars[sysval]; in lower_sysval_to_load_input_impl()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_state.c | 3550 uint32_t sysval = shader->system_values[i]; in upload_sysvals() local 3553 if (BRW_PARAM_DOMAIN(sysval) == BRW_PARAM_DOMAIN_IMAGE) { in upload_sysvals() 3555 unsigned img = BRW_PARAM_IMAGE_IDX(sysval); in upload_sysvals() 3556 unsigned offset = BRW_PARAM_IMAGE_OFFSET(sysval); in upload_sysvals() 3563 } else if (sysval == BRW_PARAM_BUILTIN_ZERO) { in upload_sysvals() 3565 } else if (BRW_PARAM_BUILTIN_IS_CLIP_PLANE(sysval)) { in upload_sysvals() 3566 int plane = BRW_PARAM_BUILTIN_CLIP_PLANE_IDX(sysval); in upload_sysvals() 3567 int comp = BRW_PARAM_BUILTIN_CLIP_PLANE_COMP(sysval); in upload_sysvals() 3569 } else if (sysval == BRW_PARAM_BUILTIN_PATCH_VERTICES_IN) { in upload_sysvals() 3581 } else if (sysval >= BRW_PARAM_BUILTIN_TESS_LEVEL_OUTER_X && in upload_sysvals() [all …]
|
/third_party/mesa3d/src/gallium/drivers/panfrost/ |
D | pan_cmdstream.c | 1290 int sysval = ss->info.sysvals.sysvals[i]; in panfrost_upload_sysvals() local 1292 switch (PAN_SYSVAL_TYPE(sysval)) { in panfrost_upload_sysvals() 1303 PAN_SYSVAL_ID(sysval), in panfrost_upload_sysvals() 1308 PAN_SYSVAL_ID(sysval), in panfrost_upload_sysvals() 1314 unsigned buf = PAN_SYSVAL_ID(sysval); in panfrost_upload_sysvals() 1364 PAN_SYSVAL_ID(sysval), in panfrost_upload_sysvals() 1369 PAN_SYSVAL_ID(sysval), in panfrost_upload_sysvals() 1383 PAN_SYSVAL_ID(sysval), &uniforms[i]); in panfrost_upload_sysvals()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_emit.c | 391 if (vp->inputs[i].sysval) { in fd3_emit_vertex_bufs() 412 assert(!vp->inputs[i].sysval); in fd3_emit_vertex_bufs()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
D | fd4_emit.c | 536 if (vp->inputs[i].sysval) { in fd4_emit_vertex_bufs() 557 assert(!vp->inputs[i].sysval); in fd4_emit_vertex_bufs()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_program.c | 1085 if (!vs->inputs[i].sysval) in setup_stateobj() 1259 if (vs->inputs[i].sysval) in fd6_program_create()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_draw.cpp | 762 for (unsigned sysval : sysvals) { in update_draw_indirect_with_sysvals() local 763 …ny |= (BITSET_TEST(ctx->gfx_stages[PIPE_SHADER_VERTEX]->initial->info.system_values_read, sysval)); in update_draw_indirect_with_sysvals()
|