Home
last modified time | relevance | path

Searched refs:driver_location (Results 1 – 25 of 69) sorted by relevance

123

/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_vertexstageexport.cpp57 r600_shader_io& io = m_proc.sh_info().output[output->data.driver_location]; in do_process_outputs()
147 m_proc.sh_info().output[out_var->data.driver_location].write_mask = write_mask; in emit_varying_pos()
150 m_proc.set_output(out_var->data.driver_location, value.sel()); in emit_varying_pos()
160 m_proc.sh_info().output[out_var->data.driver_location].write_mask = 0xf; in emit_varying_pos()
186 m_proc.add_param_output_reg(out_var->data.driver_location, m_last_pos_export->gpr_ptr()); in emit_varying_pos()
192 assert(out_var->data.driver_location < m_proc.sh_info().noutput); in emit_varying_param()
193 sfn_log << SfnLog::io << __func__ << ": emit DDL: " << out_var->data.driver_location << "\n"; in emit_varying_param()
200 m_proc.sh_info().output[out_var->data.driver_location].write_mask = write_mask; in emit_varying_param()
203 m_proc.sh_info().output[out_var->data.driver_location].gpr = value.sel(); in emit_varying_param()
206 m_proc.set_output(out_var->data.driver_location, value.sel()); in emit_varying_param()
[all …]
Dsfn_shader_vertex.cpp81 if (m_max_attrib < input->data.driver_location) in do_process_inputs()
82 m_max_attrib = input->data.driver_location; in do_process_inputs()
208 auto src = m_attribs[4 * in_var->data.driver_location + i]; in do_emit_load_deref()
211 set_input(in_var->data.driver_location, src); in do_emit_load_deref()
Dsfn_shader_geometry.cpp64 sh_info().output[out_var->data.driver_location].write_mask = write_mask; in do_emit_store_deref()
67 4 * out_var->data.driver_location, in do_emit_store_deref()
99 r600_shader_io& io = sh_info().input[input->data.driver_location]; in do_process_inputs()
104 io.ring_offset = 16 * input->data.driver_location; in do_process_inputs()
133 r600_shader_io& io = sh_info().output[output->data.driver_location]; in do_process_outputs()
304 16 * array_deref.var->data.driver_location, in emit_load_from_array()
Dsfn_shader_fragment.cpp68 << " driver-loc:" << input->data.driver_location in do_process_inputs()
317 out_var->data.location << "(" << out_var->data.driver_location << ")\n"; in do_emit_store_deref()
325 << "@dl:" << output->data.driver_location in do_process_outputs()
330 r600_shader_io& io = sh_info().output[output->data.driver_location]; in do_process_outputs()
462 auto& io = m_shaderio.input(var->data.driver_location, var->data.location_frac); in emit_interp_deref_at_sample()
515 auto& io = m_shaderio.input(var->data.driver_location, var->data.location_frac); in emit_interp_deref_at_offset()
560 auto& io = m_shaderio.input(var->data.driver_location, var->data.location_frac); in emit_interp_deref_at_centroid()
590 auto& io = m_shaderio.input(in_var->data.driver_location, in_var->data.location_frac); in do_emit_load_deref()
602 sfn_log << SfnLog::io << "Set input[" << in_var->data.driver_location in do_emit_load_deref()
784 set_output(out_var->data.driver_location, value.sel()); in emit_export_pixel()
[all …]
/external/mesa3d/src/gallium/auxiliary/nir/
Dnir_draw_helpers.c61 pos->data.driver_location = b->shader->num_inputs++; in load_frag_coord()
221 if ((int)var->data.driver_location > highest_drv_location) in nir_lower_aaline_fs()
222 highest_drv_location = var->data.driver_location; in nir_lower_aaline_fs()
229 line_width->data.driver_location = highest_drv_location + 1; in nir_lower_aaline_fs()
232 line_width->data.driver_location = highest_drv_location + 1; in nir_lower_aaline_fs()
345 if ((int)var->data.driver_location > highest_drv_location) in nir_lower_aapoint_fs()
346 highest_drv_location = var->data.driver_location; in nir_lower_aapoint_fs()
356 aapoint_input->data.driver_location = highest_drv_location + 1; in nir_lower_aapoint_fs()
Dnir_to_tgsi_info.c128 path.path[0]->var->data.driver_location, in gather_usage()
509 i = variable->data.driver_location; in nir_tgsi_scan_shader()
585 int tmax = var->data.driver_location + slots - 1; in nir_tgsi_scan_shader()
598 i = variable->data.driver_location; in nir_tgsi_scan_shader()
/external/mesa3d/src/compiler/nir/
Dnir_lower_two_sided_color.c57 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()
93 nir_intrinsic_set_base(load, in->data.driver_location); in load_input()
156 state->colors[idx].front->data.driver_location; in nir_lower_two_sided_color_block()
Dnir_lower_clip.c51 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()
101 nir_intrinsic_set_base(store, out->data.driver_location); in store_clipdist_output()
124 nir_intrinsic_set_base(load, in->data.driver_location + location_offset); in load_clipdist_input()
262 cv = find_output(b->shader, clipvertex->data.driver_location); in lower_clip_outputs()
265 cv = find_output(b->shader, position->data.driver_location); in lower_clip_outputs()
Dnir_linking_helpers.c1186 unsigned driver_location = assigned_locations[var->data.location]; in nir_assign_io_var_locations() local
1187 var->data.driver_location = driver_location; in nir_assign_io_var_locations()
1199 unsigned last_slot_location = driver_location + var_size; in nir_assign_io_var_locations()
1215 var->data.driver_location = location; in nir_assign_io_var_locations()
1304 … variable->data.driver_location = util_bitcount64(patch_io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations()
1306 variable->data.driver_location = util_bitcount64(io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations()
1313 … variable->data.driver_location = util_bitcount64(patch_io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations()
1315 variable->data.driver_location = util_bitcount64(io_mask & u_bit_consecutive64(0, loc)); in nir_assign_linked_io_var_locations()
Dnir_lower_io.c131 var->data.driver_location = location; in nir_assign_var_locations()
294 nir_intrinsic_set_base(load, var->data.driver_location); in emit_load()
405 nir_intrinsic_set_base(store, var->data.driver_location); in emit_store()
566 nir_intrinsic_set_base(load, var->data.driver_location); in lower_interpolate_at()
903 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_int(b, var->data.driver_location); in build_addr_for_var()
911 assert(var->data.driver_location <= UINT32_MAX); in build_addr_for_var()
912 return nir_imm_int64(b, var->data.driver_location); in build_addr_for_var()
918 assert(var->data.driver_location <= UINT32_MAX); in build_addr_for_var()
[all …]
Dnir_lower_fragcolor.c77 out_color->data.driver_location = i; in lower_fragcolor_instr()
Dnir_lower_clamp_color_outputs.c72 int drvloc = var->data.driver_location; in lower_intrinsic()
Dnir_lower_alpha_test.c66 int drvloc = var->data.driver_location; in nir_lower_alpha_test()
Dnir_lower_passthrough_edgeflags.c91 in->data.driver_location = shader->num_inputs++; in lower_impl()
/external/mesa3d/src/amd/llvm/
Dac_shader_abi.h81 unsigned driver_location, unsigned component,
87 unsigned driver_location, unsigned component,
94 unsigned component, unsigned location, unsigned driver_location);
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir_uniforms.cpp38 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()
/external/mesa3d/src/gallium/frontends/clover/nir/
Dinvocation.cpp102 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()
135 nir_imm_intN_t(&b, deref->var->data.driver_location, in clover_nir_lower_images()
152 tex->texture_index = deref->var->data.driver_location; in clover_nir_lower_images()
154 tex->sampler_index = deref->var->data.driver_location; in clover_nir_lower_images()
/external/mesa3d/src/intel/compiler/
Dbrw_nir_lower_alpha_to_coverage.c114 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()
Dbrw_nir.c167 var->data.driver_location = var->data.location; in brw_nir_lower_vs_inputs()
292 var->data.driver_location = var->data.location; in brw_nir_lower_vue_inputs()
344 var->data.driver_location = var->data.location; in brw_nir_lower_tes_inputs()
372 var->data.driver_location = var->data.location; in brw_nir_lower_fs_inputs()
416 var->data.driver_location = var->data.location; in brw_nir_lower_vue_outputs()
428 var->data.driver_location = var->data.location; in brw_nir_lower_tcs_outputs()
454 var->data.driver_location = in brw_nir_lower_fs_outputs()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_tess.c381 unsigned driver_location, unsigned component, in si_nir_load_tcs_varyings() argument
390 semantic = info->input_semantic[driver_location]; in si_nir_load_tcs_varyings()
392 semantic = info->output_semantic[driver_location]; in si_nir_load_tcs_varyings()
429 unsigned driver_location, unsigned component, in si_nir_load_input_tes() argument
437 ubyte semantic = info->input_semantic[driver_location]; in si_nir_load_input_tes()
466 unsigned component, unsigned location, unsigned driver_location) in si_nir_store_output_tcs() argument
475 ubyte semantic = info->output_semantic[driver_location]; in si_nir_store_output_tcs()
499 int semantic = info->output_semantic[driver_location]; in si_nir_store_output_tcs()
523 if (info->output_readmask[driver_location] & (1 << chan) || in si_nir_store_output_tcs()
Dsi_shader_nir.c109 unsigned driver_location = nir_intrinsic_base(intr); in scan_io_usage() local
113 assert(driver_location + num_slots <= ARRAY_SIZE(info->input_usage_mask)); in scan_io_usage()
116 unsigned loc = driver_location + i; in scan_io_usage()
128 assert(driver_location + num_slots <= ARRAY_SIZE(info->output_usagemask)); in scan_io_usage()
132 unsigned loc = driver_location + i; in scan_io_usage()
/external/mesa3d/src/panfrost/util/
Dpan_lower_writeout.c70 … 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()
/external/mesa3d/src/compiler/glsl/
Dgl_nir_lower_images.c102 var->data.driver_location); in lower_impl()
/external/mesa3d/src/gallium/drivers/v3d/
Dv3d_program.c48 v3d_get_slot_for_driver_location(nir_shader *s, uint32_t driver_location) in v3d_get_slot_for_driver_location() argument
51 if (var->data.driver_location == driver_location) { in v3d_get_slot_for_driver_location()
774 int driver_location = var->data.driver_location; in v3d_update_compiled_vs() local
775 switch (v3d->vtx->pipe[driver_location].src_format) { in v3d_update_compiled_vs()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_nir_lower_blend.c522 sample_mask->data.driver_location = c->s->num_outputs++; in vc4_nir_store_sample_mask()
528 nir_intrinsic_set_base(intr, sample_mask->data.driver_location); in vc4_nir_store_sample_mask()
593 if (var->data.driver_location == in vc4_nir_lower_blend_block()

123