/third_party/mesa3d/src/intel/compiler/ |
D | brw_vue_map.c | 47 assign_vue_slot(struct brw_vue_map *vue_map, int varying, int slot) in assign_vue_slot() argument 50 assert (vue_map->varying_to_slot[varying] == -1); in assign_vue_slot() 52 vue_map->varying_to_slot[varying] = slot; in assign_vue_slot() 53 vue_map->slot_to_varying[slot] = varying; in assign_vue_slot() 61 struct brw_vue_map *vue_map, in brw_compute_vue_map() argument 86 vue_map->slots_valid = slots_valid; in brw_compute_vue_map() 87 vue_map->separate = separate; in brw_compute_vue_map() 104 vue_map->varying_to_slot[i] = -1; in brw_compute_vue_map() 105 vue_map->slot_to_varying[i] = BRW_VARYING_SLOT_PAD; in brw_compute_vue_map() 125 assign_vue_slot(vue_map, VARYING_SLOT_PSIZ, slot++); in brw_compute_vue_map() [all …]
|
D | brw_interpolation_map.c | 40 const struct brw_vue_map *vue_map, in gfx4_frag_prog_set_interp_modes() argument 45 unsigned slot = vue_map->varying_to_slot[location + k]; in gfx4_frag_prog_set_interp_modes() 60 brw_setup_vue_interpolation(const struct brw_vue_map *vue_map, nir_shader *nir, in brw_setup_vue_interpolation() argument 66 if (!vue_map) in brw_setup_vue_interpolation() 72 unsigned pos_slot = vue_map->varying_to_slot[VARYING_SLOT_POS]; in brw_setup_vue_interpolation() 82 gfx4_frag_prog_set_interp_modes(prog_data, vue_map, location, slot_count, in brw_setup_vue_interpolation() 87 gfx4_frag_prog_set_interp_modes(prog_data, vue_map, location, in brw_setup_vue_interpolation() 95 for (int i = 0; i < vue_map->num_slots; i++) { in brw_setup_vue_interpolation() 96 int varying = vue_map->slot_to_varying[i]; in brw_setup_vue_interpolation()
|
D | brw_compile_clip.c | 33 struct brw_vue_map *vue_map, in brw_compile_clip() argument 46 c.vue_map = *vue_map; in brw_compile_clip() 53 c.nr_regs = (c.vue_map.num_slots + 1)/2; in brw_compile_clip()
|
D | brw_clip_util.c | 105 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_project_vertex() 106 GLuint ndc_offset = brw_varying_to_offset(&c->vue_map, in brw_clip_project_vertex() 154 GLuint offset = brw_varying_to_offset(&c->vue_map, in brw_clip_interp_vertex() 165 GLuint delta = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_interp_vertex() 180 GLuint delta = brw_varying_to_offset(&c->vue_map, in brw_clip_interp_vertex() 241 for (slot = 0; slot < c->vue_map.num_slots; slot++) { in brw_clip_interp_vertex() 242 int varying = c->vue_map.slot_to_varying[slot]; in brw_clip_interp_vertex() 300 if (c->vue_map.num_slots % 2) { in brw_clip_interp_vertex() 301 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_interp_vertex() 401 for (int i = 0; i < c->vue_map.num_slots; i++) { in brw_clip_copy_flatshaded_attributes()
|
D | brw_clip_unfilled.c | 49 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in compute_tri_direction() 158 brw_varying_to_offset(&c->vue_map, in copy_bfc() 161 brw_varying_to_offset(&c->vue_map, in copy_bfc() 168 brw_varying_to_offset(&c->vue_map, in copy_bfc() 171 brw_varying_to_offset(&c->vue_map, in copy_bfc() 247 brw_varying_to_offset(&c->vue_map, in merge_edgeflags() 255 brw_varying_to_offset(&c->vue_map, in merge_edgeflags() 269 GLuint ndc_offset = brw_varying_to_offset(&c->vue_map, in apply_one_offset() 329 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_lines() 372 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_points()
|
D | gfx6_gs_visitor.cpp | 67 (prog_data->vue_map.num_slots + 1) * in emit_prolog() 144 for (int slot = 0; slot < prog_data->vue_map.num_slots; ++slot) { in gs_emit_vertex() 145 int varying = prog_data->vue_map.slot_to_varying[slot]; in gs_emit_vertex() 267 brw_imm_d(prog_data->vue_map.num_slots))); in emit_urb_write_header() 400 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_thread_end() 401 int varying = prog_data->vue_map.slot_to_varying[slot]; in emit_thread_end() 433 complete = slot >= prog_data->vue_map.num_slots; in emit_thread_end() 686 int slot = prog_data->vue_map.varying_to_slot[varying]; in get_vertex_output_offset_for_varying() 699 return vertex * (prog_data->vue_map.num_slots + 1) + slot; in get_vertex_output_offset_for_varying()
|
D | brw_compile_sf.c | 70 struct brw_vue_map vue_map; member 91 return c->vue_map.slot_to_varying[vue_slot]; in vert_reg_to_varying() 114 int vue_slot = c->vue_map.varying_to_slot[varying]; in get_varying() 192 for (i = 0; i < c->vue_map.num_slots; i++) { in copy_flatshaded_attributes() 206 for (i = 0; i < c->vue_map.num_slots; i++) in count_flatshaded_attributes() 808 struct brw_vue_map *vue_map, in brw_compile_sf() argument 819 c.vue_map = *vue_map; in brw_compile_sf() 827 c.vue_map.varying_to_slot[BRW_VARYING_SLOT_PNTC] = c.vue_map.num_slots; in brw_compile_sf() 828 c.vue_map.slot_to_varying[c.vue_map.num_slots++] = BRW_VARYING_SLOT_PNTC; in brw_compile_sf() 831 c.nr_attr_regs = (c.vue_map.num_slots + 1)/2 - c.urb_entry_read_offset; in brw_compile_sf()
|
D | brw_compiler.h | 1219 void brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map, 1235 brw_varying_to_offset(const struct brw_vue_map *vue_map, unsigned varying) in brw_varying_to_offset() argument 1237 return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); in brw_varying_to_offset() 1241 struct brw_vue_map *vue_map, 1246 void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map, 1251 void brw_setup_vue_interpolation(const struct brw_vue_map *vue_map, 1295 struct brw_vue_map vue_map; member 1705 struct brw_vue_map *vue_map, 1721 struct brw_vue_map *vue_map, 1770 const struct brw_vue_map *vue_map; member [all …]
|
D | brw_fs_visitor.cpp | 768 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in emit_urb_writes() local 820 int last_slot = vue_map->num_slots - 1; in emit_urb_writes() 822 (vue_map->slot_to_varying[last_slot] == BRW_VARYING_SLOT_PAD || in emit_urb_writes() 823 outputs[vue_map->slot_to_varying[last_slot]].file == BAD_FILE)) { in emit_urb_writes() 828 for (slot = 0; slot < vue_map->num_slots; slot++) { in emit_urb_writes() 829 int varying = vue_map->slot_to_varying[slot]; in emit_urb_writes() 837 if ((vue_map->slots_valid & psiz_mask) == 0) { in emit_urb_writes() 846 if (vue_map->slots_valid & VARYING_BIT_PRIMITIVE_SHADING_RATE && in emit_urb_writes() 858 if (vue_map->slots_valid & VARYING_BIT_LAYER) in emit_urb_writes() 863 if (vue_map->slots_valid & VARYING_BIT_VIEWPORT) in emit_urb_writes() [all …]
|
D | brw_compile_ff_gs.c | 69 struct brw_vue_map vue_map; member 457 unsigned char slot = c->vue_map.varying_to_slot[varying]; in gfx6_sol_program() 566 struct brw_vue_map *vue_map, in brw_compile_ff_gs_prog() argument 575 c.vue_map = *vue_map; in brw_compile_ff_gs_prog() 576 c.nr_regs = (c.vue_map.num_slots + 1)/2; in brw_compile_ff_gs_prog()
|
D | brw_vec4_tcs.cpp | 378 brw_compute_tess_vue_map(&vue_prog_data->vue_map, in brw_compile_tcs() 384 brw_nir_lower_tcs_outputs(nir, &vue_prog_data->vue_map, in brw_compile_tcs() 428 const int num_per_patch_slots = vue_prog_data->vue_map.num_per_patch_slots; in brw_compile_tcs() 429 const int num_per_vertex_slots = vue_prog_data->vue_map.num_per_vertex_slots; in brw_compile_tcs() 453 brw_print_vue_map(stderr, &vue_prog_data->vue_map, MESA_SHADER_TESS_CTRL); in brw_compile_tcs()
|
D | brw_nir.c | 107 const struct brw_vue_map *vue_map, in remap_patch_urb_offsets() argument 128 int vue_slot = vue_map->varying_to_slot[intrin->const_index[0]]; in remap_patch_urb_offsets() 136 vue_map->num_per_vertex_slots; in remap_patch_urb_offsets() 145 vue_map->num_per_vertex_slots)); in remap_patch_urb_offsets() 299 const struct brw_vue_map *vue_map) in brw_nir_lower_vue_inputs() argument 339 vue_slot = vue_map->varying_to_slot[varying]; in brw_nir_lower_vue_inputs() 351 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) in brw_nir_lower_tes_inputs() argument 369 remap_patch_urb_offsets(block, &b, vue_map, in brw_nir_lower_tes_inputs() 481 brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue_map, in brw_nir_lower_tcs_outputs() argument 501 remap_patch_urb_offsets(block, &b, vue_map, tes_primitive_mode); in brw_nir_lower_tcs_outputs()
|
D | brw_clip_tri.c | 72 if (c->vue_map.num_slots % 2 && nr_verts > 0) { in brw_clip_tri_alloc_regs() 77 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_tri_alloc_regs() 266 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_tri() 268 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in brw_clip_tri() 534 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, in brw_clip_test()
|
D | brw_clip.h | 99 struct brw_vue_map vue_map; member
|
D | brw_clip_line.c | 131 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in clip_and_emit_line() 133 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in clip_and_emit_line()
|
D | brw_vec4_visitor.cpp | 834 ((prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) || in emit_psiz_and_flags() 843 if (prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) { in emit_psiz_and_flags() 1044 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_vertex() 1046 prog_data->vue_map.slot_to_varying[slot]); in emit_vertex() 1058 complete = slot >= prog_data->vue_map.num_slots; in emit_vertex()
|
D | brw_nir.h | 109 const struct brw_vue_map *vue_map);
|
D | brw_shader.cpp | 1348 brw_compute_vue_map(devinfo, &prog_data->base.vue_map, in brw_compile_tes() 1352 unsigned output_size_bytes = prog_data->base.vue_map.num_slots * 4 * 4; in brw_compile_tes() 1412 brw_print_vue_map(stderr, &prog_data->base.vue_map, in brw_compile_tes()
|
D | brw_vec4_gs_visitor.cpp | 724 unsigned output_vertex_size_bytes = prog_data->base.vue_map.num_slots * 16; in brw_compile_gs() 818 brw_print_vue_map(stderr, &prog_data->base.vue_map, MESA_SHADER_GEOMETRY); in brw_compile_gs()
|
/third_party/mesa3d/src/intel/blorp/ |
D | blorp.c | 281 &vs_prog_data->base.vue_map, in blorp_compile_vs() 388 struct brw_vue_map vue_map; in blorp_ensure_sf_program() local 389 brw_compute_vue_map(blorp->compiler->devinfo, &vue_map, slots_valid, false, 1); in blorp_ensure_sf_program() 393 &prog_data_tmp, &vue_map, &program_size); in blorp_ensure_sf_program()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_program.c | 1232 &vue_prog_data->vue_map, outputs_written, in crocus_compile_vs() 1267 &vue_prog_data->vue_map); in crocus_compile_vs() 1638 &vue_prog_data->vue_map); in crocus_compile_tes() 1748 &vue_prog_data->vue_map, nir->info.outputs_written, in crocus_compile_gs() 1779 &vue_prog_data->vue_map); in crocus_compile_gs() 1846 struct brw_vue_map *vue_map) in crocus_compile_fs() argument 1895 .vue_map = vue_map, in crocus_compile_fs() 1995 struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in update_last_vue_map() local 1998 (old_map ? old_map->slots_valid : 0ull) ^ vue_map->slots_valid; in update_last_vue_map() 2002 (vue_map->slots_valid & VARYING_BIT_VIEWPORT) ? CROCUS_MAX_VIEWPORTS : 1; in update_last_vue_map() [all …]
|
D | crocus_disk_cache.c | 198 &vue_prog_data->vue_map); in crocus_disk_cache_retrieve()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_program.c | 1348 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_vs() 1377 &vue_prog_data->vue_map); in iris_compile_vs() 1745 &vue_prog_data->vue_map); in iris_compile_tes() 1854 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_gs() 1883 &vue_prog_data->vue_map); in iris_compile_gs() 1953 struct brw_vue_map *vue_map) in iris_compile_fs() argument 2001 .vue_map = vue_map, in iris_compile_fs() 2049 &brw_vue_prog_data(ice->shaders.last_vue_shader->prog_data)->vue_map; in iris_update_compiled_fs() 2094 struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in update_last_vue_map() local 2096 &brw_vue_prog_data(ice->shaders.last_vue_shader->prog_data)->vue_map; in update_last_vue_map() [all …]
|
D | iris_screen.h | 120 const struct brw_vue_map *vue_map);
|
/third_party/mesa3d/src/intel/vulkan/ |
D | genX_pipeline.c | 436 &anv_pipeline_get_last_vue_prog_data(pipeline)->vue_map; in emit_3dstate_sbe() 785 point_from_shader = last_vue_prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ; in emit_rs_state() 1212 if (vp && (last->vue_map.slots_valid & VARYING_BIT_VIEWPORT)) { in emit_3dstate_clip() 1226 !(last->vue_map.slots_valid & VARYING_BIT_LAYER); in emit_3dstate_clip() 1269 const struct brw_vue_map *vue_map = &prog_data->vue_map; in emit_3dstate_streamout() local 1331 const int slot = vue_map->varying_to_slot[varying]; in emit_3dstate_streamout() 1445 (prog_data->vue_map.num_slots + 1) / 2 - urb_entry_read_offset; in emit_3dstate_streamout()
|