/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_vertexstageexport.cpp | 86 r600_shader_io& io = m_proc.sh_info().output[output->data.driver_location]; in do_process_outputs() 105 m_param_driver_locations.push(output->data.driver_location); in do_process_outputs() 174 m_proc.sh_info().output[store_info.driver_location].write_mask = write_mask; in emit_varying_pos() 177 m_proc.set_output(store_info.driver_location, value.sel()); in emit_varying_pos() 187 m_proc.sh_info().output[store_info.driver_location].write_mask = 0xf; in emit_varying_pos() 213 m_proc.add_param_output_reg(store_info.driver_location, m_last_pos_export->gpr_ptr()); in emit_varying_pos() 219 assert(store_info.driver_location < m_proc.sh_info().noutput); in emit_varying_param() 220 sfn_log << SfnLog::io << __func__ << ": emit DDL: " << store_info.driver_location << "\n"; in emit_varying_param() 230 m_proc.sh_info().output[store_info.driver_location].gpr = value.sel(); in emit_varying_param() 233 m_proc.set_output(store_info.driver_location, value.sel()); in emit_varying_param() [all …]
|
D | sfn_shader_geometry.cpp | 59 auto driver_location = nir_intrinsic_base(instr) + index->u32; in emit_store() local 66 sh_info().output[driver_location].write_mask = write_mask; in emit_store() 69 4 * driver_location, in emit_store() 100 auto driver_location = nir_intrinsic_base(instr) + index->u32; in process_store_output() local 120 r600_shader_io& io = sh_info().output[driver_location]; in process_store_output() 128 if (sh_info().noutput <= driver_location) in process_store_output() 129 sh_info().noutput = driver_location + 1; in process_store_output() 151 auto driver_location = nir_intrinsic_base(instr) + index->u32; in process_load_input() local 171 r600_shader_io& io = sh_info().input[driver_location]; in process_load_input() 176 io.ring_offset = 16 * driver_location; in process_load_input()
|
D | sfn_shaderio.cpp | 112 ShaderInputVarying::ShaderInputVarying(tgsi_semantic _name, int sid, unsigned driver_location, in ShaderInputVarying() argument 117 m_driver_location(driver_location), in ShaderInputVarying() 139 m_driver_location(input->data.driver_location), in ShaderInputVarying() 299 ShaderInputColor::ShaderInputColor(tgsi_semantic _name, int sid, unsigned driver_location, in ShaderInputColor() argument 302 ShaderInputVarying(_name, sid, driver_location,frac, components, interpolate, interp_loc), in ShaderInputColor()
|
D | sfn_vertexstageexport.h | 33 unsigned driver_location; member 52 unsigned param_id(unsigned driver_location);
|
D | sfn_shaderio.h | 79 ShaderInputVarying(tgsi_semantic _name, int sid, unsigned driver_location, 121 ShaderInputColor(tgsi_semantic _name, int sid, unsigned driver_location,
|
/third_party/mesa3d/src/gallium/auxiliary/nir/ |
D | nir_draw_helpers.c | 61 pos->data.driver_location = b->shader->num_inputs++; in load_frag_coord() 219 if ((int)var->data.driver_location > highest_drv_location) in nir_lower_aaline_fs() 220 highest_drv_location = var->data.driver_location; in nir_lower_aaline_fs() 227 line_width->data.driver_location = highest_drv_location + 1; in nir_lower_aaline_fs() 230 line_width->data.driver_location = highest_drv_location + 1; in nir_lower_aaline_fs() 341 if ((int)var->data.driver_location > highest_drv_location) in nir_lower_aapoint_fs() 342 highest_drv_location = var->data.driver_location; in nir_lower_aapoint_fs() 352 aapoint_input->data.driver_location = highest_drv_location + 1; in nir_lower_aapoint_fs()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_two_sided_color.c | 57 var->data.driver_location = shader->num_inputs++; in create_input() 58 var->name = ralloc_asprintf(var, "in_%d", var->data.driver_location); in create_input() 77 var->data.driver_location = shader->num_inputs++; in create_face_input() 90 .base = in->data.driver_location); in load_input() 148 state->colors[idx].front->data.driver_location; in nir_lower_two_sided_color_block()
|
D | nir_lower_clip.c | 51 var->data.driver_location = shader->num_outputs++; in create_clipdist_var() 54 var->data.driver_location = shader->num_inputs++; in create_clipdist_var() 57 var->name = ralloc_asprintf(var, "clipdist_%d", var->data.driver_location); in create_clipdist_var() 104 .base = out->data.driver_location, in store_clipdist_output() 120 .base = in->data.driver_location + location_offset, in load_clipdist_input() 249 cv = find_output(b->shader, clipvertex->data.driver_location); in lower_clip_outputs() 252 cv = find_output(b->shader, position->data.driver_location); in lower_clip_outputs()
|
D | nir_lower_uniforms_to_ubo.c | 138 if (var->data.driver_location != -1) in nir_lower_uniforms_to_ubo() 139 var->data.driver_location++; in nir_lower_uniforms_to_ubo()
|
D | nir_lower_io.c | 131 var->data.driver_location = location; in nir_assign_var_locations() 301 nir_intrinsic_set_base(load, var->data.driver_location); in emit_load() 412 nir_intrinsic_set_base(store, var->data.driver_location); in emit_store() 581 .base = var->data.driver_location, in lower_interpolate_at() 899 var->data.driver_location); in build_addr_for_var() 903 assert(var->data.driver_location <= UINT32_MAX); in build_addr_for_var() 904 return nir_imm_int(b, var->data.driver_location); in build_addr_for_var() 907 assert(var->data.driver_location <= UINT32_MAX); in build_addr_for_var() 908 return nir_imm_int64(b, var->data.driver_location); in build_addr_for_var() 914 assert(var->data.driver_location <= UINT32_MAX); in build_addr_for_var() [all …]
|
D | nir_linking_helpers.c | 1504 unsigned driver_location = assigned_locations[var->data.location]; in nir_assign_io_var_locations() local 1505 var->data.driver_location = driver_location; in nir_assign_io_var_locations() 1517 unsigned last_slot_location = driver_location + var_size; in nir_assign_io_var_locations() 1533 var->data.driver_location = location; in nir_assign_io_var_locations() 1622 … variable->data.driver_location = util_bitcount64(patch_io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations() 1624 variable->data.driver_location = util_bitcount64(io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations() 1631 … variable->data.driver_location = util_bitcount64(patch_io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations() 1633 variable->data.driver_location = util_bitcount64(io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_gs_variant.cpp | 84 snprintf(tmp, ARRAY_SIZE(tmp), "in_%d", key->varyings.vars[i].driver_location); in d3d12_make_passthrough_gs() 90 in->data.driver_location = key->varyings.vars[i].driver_location; in d3d12_make_passthrough_gs() 93 snprintf(tmp, ARRAY_SIZE(tmp), "out_%d", key->varyings.vars[i].driver_location); in d3d12_make_passthrough_gs() 99 out->data.driver_location = key->varyings.vars[i].driver_location; in d3d12_make_passthrough_gs() 177 … emit_ctx->in[emit_ctx->num_vars]->data.driver_location = key->varyings.vars[i].driver_location; in d3d12_begin_emit_primitives_gs() 194 … emit_ctx->out[emit_ctx->num_vars]->data.driver_location = key->varyings.vars[i].driver_location; in d3d12_begin_emit_primitives_gs() 206 emit_ctx->front_facing_var->data.driver_location = emit_ctx->num_vars; in d3d12_begin_emit_primitives_gs()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_compiler.c | 204 var2->data.driver_location++; in lower_64bit_vertex_attribs_instr() 607 bits |= BITFIELD_BIT(var->data.driver_location); in decompose_attribs() 616 bits |= BITFIELD_BIT(var->data.driver_location); in decompose_attribs() 627 split[i+1]->data.driver_location = ffs(bits) - 1; in decompose_attribs() 628 bits &= ~BITFIELD_BIT(split[i+1]->data.driver_location); in decompose_attribs() 657 var->data.driver_location = UINT_MAX; in assign_producer_var_io() 677 var->data.driver_location = slot; in assign_producer_var_io() 706 var->data.driver_location = UINT_MAX; in assign_consumer_var_io() 711 var->data.driver_location = var->data.location - VARYING_SLOT_PATCH0; in assign_consumer_var_io() 715 var->data.driver_location = var->data.location - VARYING_SLOT_VAR0; in assign_consumer_var_io() [all …]
|
/third_party/mesa3d/src/amd/llvm/ |
D | ac_shader_abi.h | 76 unsigned driver_location, unsigned component, 82 unsigned driver_location, unsigned component, 89 unsigned component, unsigned location, unsigned driver_location);
|
/third_party/mesa3d/src/broadcom/vulkan/ |
D | v3dvx_pipeline.c | 640 uint32_t driver_location = in v3dX() local 643 if (driver_location != -1) { in v3dX() 644 assert(driver_location < MAX_VERTEX_ATTRIBS); in v3dX() 645 pipeline->va[driver_location].offset = desc->offset; in v3dX() 646 pipeline->va[driver_location].binding = desc->binding; in v3dX() 647 pipeline->va[driver_location].vk_format = desc->format; in v3dX() 649 pack_shader_state_attribute_record(pipeline, driver_location, desc); in v3dX()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_nir_uniforms.cpp | 38 unsigned uniform_index = var->data.driver_location / 4; in brw_nir_setup_glsl_builtin_uniform() 86 unsigned param_start_index = var->data.driver_location / 4; in brw_setup_image_uniform_values() 167 unsigned uniform_index = var->data.driver_location / 4; in brw_nir_setup_glsl_uniform() 317 var->data.driver_location = shader->num_uniforms; in brw_nir_lower_gl_images() 380 nir_intrinsic_set_base(load, var->data.driver_location); in brw_nir_lower_gl_images()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_nir_lower_alpha_to_coverage.c | 114 const unsigned driver_location = nir_intrinsic_base(intrin) + in brw_nir_lower_alpha_to_coverage() local 119 GET_FIELD(driver_location, BRW_NIR_FRAG_OUTPUT_LOCATION); in brw_nir_lower_alpha_to_coverage()
|
D | brw_nir.c | 168 var->data.driver_location = var->data.location; in brw_nir_lower_vs_inputs() 301 var->data.driver_location = var->data.location; in brw_nir_lower_vue_inputs() 353 var->data.driver_location = var->data.location; in brw_nir_lower_tes_inputs() 420 var->data.driver_location = var->data.location; in brw_nir_lower_fs_inputs() 469 var->data.driver_location = var->data.location; in brw_nir_lower_vue_outputs() 481 var->data.driver_location = var->data.location; in brw_nir_lower_tcs_outputs() 507 var->data.driver_location = in brw_nir_lower_fs_outputs()
|
/third_party/mesa3d/src/gallium/frontends/clover/nir/ |
D | invocation.cpp | 102 var->data.driver_location = num_samplers++; in clover_nir_lower_images() 105 var->data.driver_location = num_rd_images++; in clover_nir_lower_images() 107 var->data.driver_location = num_wr_images++; in clover_nir_lower_images() 137 nir_imm_intN_t(&b, deref->var->data.driver_location, in clover_nir_lower_images() 154 tex->texture_index = deref->var->data.driver_location; in clover_nir_lower_images() 156 tex->sampler_index = deref->var->data.driver_location; in clover_nir_lower_images()
|
/third_party/mesa3d/src/compiler/glsl/ |
D | gl_nir_lower_buffers.c | 101 deref->var->data.driver_location = i - const_array_offset; in get_block_array_index() 148 var->data.driver_location = i; in get_block_index_offset() 337 var->data.driver_location = -1; in gl_nir_lower_buffers()
|
/third_party/mesa3d/src/microsoft/compiler/ |
D | dxil_nir.c | 1524 return a->data.driver_location != b->data.driver_location ? in variable_location_cmp() 1525 a->data.driver_location - b->data.driver_location : in variable_location_cmp() 1554 var->data.driver_location = 1; in dxil_sort_ps_outputs() 1557 var->data.driver_location = 2; in dxil_sort_ps_outputs() 1560 var->data.driver_location = 3; in dxil_sort_ps_outputs() 1563 var->data.driver_location = 0; in dxil_sort_ps_outputs() 1572 var->data.driver_location = driver_loc++; in dxil_sort_ps_outputs() 1587 var->data.driver_location = nir_var_to_dxil_sysvalue_type(var, other_stage_mask); in dxil_reassign_driver_locations() 1596 var->data.driver_location = driver_loc++; in dxil_reassign_driver_locations()
|
/third_party/mesa3d/src/asahi/compiler/ |
D | agx_compile.c | 1268 assert(pos->data.driver_location < AGX_MAX_VARYINGS); in agx_remap_varyings_vs() 1269 remap[pos->data.driver_location] = base; in agx_remap_varyings_vs() 1280 assert(var->data.driver_location < AGX_MAX_VARYINGS); in agx_remap_varyings_vs() 1281 remap[var->data.driver_location] = base; in agx_remap_varyings_vs() 1287 assert(psiz->data.driver_location < AGX_MAX_VARYINGS); in agx_remap_varyings_vs() 1288 remap[psiz->data.driver_location] = base; in agx_remap_varyings_vs() 1323 unsigned loc = var->data.driver_location; in agx_remap_varyings_fs() 1338 unsigned loc = var->data.driver_location; in agx_remap_varyings_fs() 1342 assert(var->data.driver_location <= AGX_MAX_VARYINGS); in agx_remap_varyings_fs() 1343 remap[var->data.driver_location] = base; in agx_remap_varyings_fs()
|
/third_party/mesa3d/src/panfrost/util/ |
D | pan_lower_writeout.c | 70 … if (z_var && nir_intrinsic_base(intr) == z_var->data.driver_location) { in pan_nir_lower_zs_store() 75 … if (s_var && nir_intrinsic_base(intr) == s_var->data.driver_location) { in pan_nir_lower_zs_store()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_llvm_tess.c | 383 unsigned driver_location, unsigned component, in si_nir_load_tcs_varyings() argument 393 semantic = info->input[driver_location].semantic; in si_nir_load_tcs_varyings() 395 semantic = info->output_semantic[driver_location]; in si_nir_load_tcs_varyings() 443 unsigned driver_location, unsigned component, in si_nir_load_input_tes() argument 451 ubyte semantic = info->input[driver_location].semantic; in si_nir_load_input_tes() 476 unsigned component, unsigned location, unsigned driver_location) in si_nir_store_output_tcs() argument 485 ubyte semantic = info->output_semantic[driver_location]; in si_nir_store_output_tcs() 506 int semantic = info->output_semantic[driver_location]; in si_nir_store_output_tcs() 530 if (info->output_readmask[driver_location] & (1 << chan) || in si_nir_store_output_tcs()
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/ |
D | nir.c | 492 struct lima_varying_info *v = prog->state.varying + var->data.driver_location; in gpir_compile_nir() 500 prog->state.gl_pos_idx = var->data.driver_location; in gpir_compile_nir() 504 prog->state.point_size_idx = var->data.driver_location; in gpir_compile_nir() 509 struct lima_varying_info *v = prog->state.varying + var->data.driver_location; in gpir_compile_nir()
|