/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() 103 vue_map->varying_to_slot[i] = -1; in brw_compute_vue_map() 104 vue_map->slot_to_varying[i] = BRW_VARYING_SLOT_PAD; in brw_compute_vue_map() 124 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 | gfx6_gs_visitor.cpp | 66 (prog_data->vue_map.num_slots + 1) * in emit_prolog() 143 for (int slot = 0; slot < prog_data->vue_map.num_slots; ++slot) { in gs_emit_vertex() 144 int varying = prog_data->vue_map.slot_to_varying[slot]; in gs_emit_vertex() 266 brw_imm_d(prog_data->vue_map.num_slots))); in emit_urb_write_header() 399 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_thread_end() 400 int varying = prog_data->vue_map.slot_to_varying[slot]; in emit_thread_end() 432 complete = slot >= prog_data->vue_map.num_slots; in emit_thread_end() 685 int slot = prog_data->vue_map.varying_to_slot[varying]; in get_vertex_output_offset_for_varying() 698 return vertex * (prog_data->vue_map.num_slots + 1) + slot; in get_vertex_output_offset_for_varying()
|
D | brw_clip_unfilled.c | 48 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in compute_tri_direction() 157 brw_varying_to_offset(&c->vue_map, in copy_bfc() 160 brw_varying_to_offset(&c->vue_map, in copy_bfc() 167 brw_varying_to_offset(&c->vue_map, in copy_bfc() 170 brw_varying_to_offset(&c->vue_map, in copy_bfc() 246 brw_varying_to_offset(&c->vue_map, in merge_edgeflags() 254 brw_varying_to_offset(&c->vue_map, in merge_edgeflags() 268 GLuint ndc_offset = brw_varying_to_offset(&c->vue_map, in apply_one_offset() 328 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_lines() 371 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_points()
|
D | brw_compile_sf.c | 69 struct brw_vue_map vue_map; member 90 return c->vue_map.slot_to_varying[vue_slot]; in vert_reg_to_varying() 113 int vue_slot = c->vue_map.varying_to_slot[varying]; in get_varying() 191 for (i = 0; i < c->vue_map.num_slots; i++) { in copy_flatshaded_attributes() 205 for (i = 0; i < c->vue_map.num_slots; i++) in count_flatshaded_attributes() 807 struct brw_vue_map *vue_map, in brw_compile_sf() argument 818 c.vue_map = *vue_map; in brw_compile_sf() 826 c.vue_map.varying_to_slot[BRW_VARYING_SLOT_PNTC] = c.vue_map.num_slots; in brw_compile_sf() 827 c.vue_map.slot_to_varying[c.vue_map.num_slots++] = BRW_VARYING_SLOT_PNTC; in brw_compile_sf() 830 c.nr_attr_regs = (c.vue_map.num_slots + 1)/2 - c.urb_entry_read_offset; in brw_compile_sf()
|
D | brw_compiler.h | 1201 void brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map, 1217 GLuint brw_varying_to_offset(const struct brw_vue_map *vue_map, GLuint varying) in brw_varying_to_offset() argument 1219 return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); in brw_varying_to_offset() 1223 struct brw_vue_map *vue_map, 1228 void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map, 1233 void brw_setup_vue_interpolation(const struct brw_vue_map *vue_map, 1277 struct brw_vue_map vue_map; member 1598 struct brw_vue_map *vue_map, 1614 struct brw_vue_map *vue_map, 1627 const struct brw_vue_map *vue_map; member [all …]
|
D | brw_fs_visitor.cpp | 763 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in emit_urb_writes() local 817 int last_slot = vue_map->num_slots - 1; in emit_urb_writes() 819 (vue_map->slot_to_varying[last_slot] == BRW_VARYING_SLOT_PAD || in emit_urb_writes() 820 outputs[vue_map->slot_to_varying[last_slot]].file == BAD_FILE)) { in emit_urb_writes() 825 for (slot = 0; slot < vue_map->num_slots; slot++) { in emit_urb_writes() 826 int varying = vue_map->slot_to_varying[slot]; in emit_urb_writes() 834 if ((vue_map->slots_valid & psiz_mask) == 0) { in emit_urb_writes() 844 if (vue_map->slots_valid & VARYING_BIT_LAYER) in emit_urb_writes() 849 if (vue_map->slots_valid & VARYING_BIT_VIEWPORT) in emit_urb_writes() 854 if (vue_map->slots_valid & VARYING_BIT_PSIZ) in emit_urb_writes() [all …]
|
D | brw_compile_ff_gs.c | 68 struct brw_vue_map vue_map; member 456 unsigned char slot = c->vue_map.varying_to_slot[varying]; in gfx6_sol_program() 565 struct brw_vue_map *vue_map, in brw_compile_ff_gs_prog() argument 574 c.vue_map = *vue_map; in brw_compile_ff_gs_prog() 575 c.nr_regs = (c.vue_map.num_slots + 1)/2; in brw_compile_ff_gs_prog()
|
D | brw_vec4_tcs.cpp | 382 brw_compute_tess_vue_map(&vue_prog_data->vue_map, in brw_compile_tcs() 388 brw_nir_lower_tcs_outputs(nir, &vue_prog_data->vue_map, in brw_compile_tcs() 432 const int num_per_patch_slots = vue_prog_data->vue_map.num_per_patch_slots; in brw_compile_tcs() 433 const int num_per_vertex_slots = vue_prog_data->vue_map.num_per_vertex_slots; in brw_compile_tcs() 457 brw_print_vue_map(stderr, &vue_prog_data->vue_map, MESA_SHADER_TESS_CTRL); in brw_compile_tcs()
|
D | brw_nir.c | 106 const struct brw_vue_map *vue_map, in remap_patch_urb_offsets() argument 127 int vue_slot = vue_map->varying_to_slot[intrin->const_index[0]]; in remap_patch_urb_offsets() 135 vue_map->num_per_vertex_slots; in remap_patch_urb_offsets() 144 vue_map->num_per_vertex_slots)); in remap_patch_urb_offsets() 298 const struct brw_vue_map *vue_map) in brw_nir_lower_vue_inputs() argument 338 vue_slot = vue_map->varying_to_slot[varying]; in brw_nir_lower_vue_inputs() 350 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) in brw_nir_lower_tes_inputs() argument 368 remap_patch_urb_offsets(block, &b, vue_map, in brw_nir_lower_tes_inputs() 477 brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue_map, in brw_nir_lower_tcs_outputs() argument 497 remap_patch_urb_offsets(block, &b, vue_map, tes_primitive_mode); in brw_nir_lower_tcs_outputs()
|
D | brw_clip_tri.c | 71 if (c->vue_map.num_slots % 2 && nr_verts > 0) { in brw_clip_tri_alloc_regs() 76 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_tri_alloc_regs() 265 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_tri() 267 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in brw_clip_tri() 533 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 | 130 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in clip_and_emit_line() 132 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in clip_and_emit_line()
|
D | brw_nir.h | 111 const struct brw_vue_map *vue_map);
|
D | brw_shader.cpp | 1357 brw_compute_vue_map(devinfo, &prog_data->base.vue_map, in brw_compile_tes() 1361 unsigned output_size_bytes = prog_data->base.vue_map.num_slots * 4 * 4; in brw_compile_tes() 1419 brw_print_vue_map(stderr, &prog_data->base.vue_map, in brw_compile_tes()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_wm.c | 75 struct brw_vue_map *vue_map) in brw_codegen_wm_prog() argument 120 .vue_map = vue_map, in brw_codegen_wm_prog() 625 struct brw_vue_map vue_map; in brw_fs_precompile() local 627 brw_compute_vue_map(&brw->screen->devinfo, &vue_map, in brw_fs_precompile() 632 bool success = brw_codegen_wm_prog(brw, bfp, &key, &vue_map); in brw_fs_precompile()
|
D | brw_ff_gs.c | 58 &brw_vue_prog_data(brw->vs.base.prog_data)->vue_map, in compile_ff_gs_prog() 98 key->attrs = brw_vue_prog_data(brw->vs.base.prog_data)->vue_map.slots_valid; in brw_ff_gs_populate_key()
|
D | genX_state_upload.c | 959 const struct brw_vue_map *vue_map, in genX() 964 int slot = vue_map->varying_to_slot[fs_attr]; in genX() 975 if (!(vue_map->slots_valid & VARYING_BIT_LAYER)) in genX() 977 if (!(vue_map->slots_valid & VARYING_BIT_VIEWPORT)) in genX() 987 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC0]; in genX() 989 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC1]; in genX() 1036 ((vue_map->slot_to_varying[slot] == VARYING_SLOT_COL0 && in genX() 1037 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC0) || in genX() 1038 (vue_map->slot_to_varying[slot] == VARYING_SLOT_COL1 && in genX() 1039 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC1)); in genX() [all …]
|
/third_party/mesa3d/src/intel/blorp/ |
D | blorp.c | 273 &vs_prog_data->base.vue_map, in blorp_compile_vs() 387 struct brw_vue_map vue_map; in blorp_ensure_sf_program() local 388 brw_compute_vue_map(blorp->compiler->devinfo, &vue_map, slots_valid, false, 1); in blorp_ensure_sf_program() 392 &prog_data_tmp, &vue_map, &program_size); in blorp_ensure_sf_program()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_program.c | 1224 &vue_prog_data->vue_map, outputs_written, in crocus_compile_vs() 1259 &vue_prog_data->vue_map); in crocus_compile_vs() 1616 &vue_prog_data->vue_map); in crocus_compile_tes() 1723 &vue_prog_data->vue_map, nir->info.outputs_written, in crocus_compile_gs() 1750 &vue_prog_data->vue_map); in crocus_compile_gs() 1817 struct brw_vue_map *vue_map) in crocus_compile_fs() argument 1866 .vue_map = vue_map, in crocus_compile_fs() 1966 struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in update_last_vue_map() local 1969 (old_map ? old_map->slots_valid : 0ull) ^ vue_map->slots_valid; in update_last_vue_map() 1973 (vue_map->slots_valid & VARYING_BIT_VIEWPORT) ? CROCUS_MAX_VIEWPORTS : 1; in update_last_vue_map() [all …]
|
D | crocus_disk_cache.c | 201 &vue_prog_data->vue_map); in crocus_disk_cache_retrieve()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_program.c | 1343 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_vs() 1372 &vue_prog_data->vue_map); in iris_compile_vs() 1731 &vue_prog_data->vue_map); in iris_compile_tes() 1840 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_gs() 1865 &vue_prog_data->vue_map); in iris_compile_gs() 1935 struct brw_vue_map *vue_map) in iris_compile_fs() argument 1983 .vue_map = vue_map, in iris_compile_fs() 2031 &brw_vue_prog_data(ice->shaders.last_vue_shader->prog_data)->vue_map; in iris_update_compiled_fs() 2076 struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in update_last_vue_map() local 2078 &brw_vue_prog_data(ice->shaders.last_vue_shader->prog_data)->vue_map; in update_last_vue_map() [all …]
|
D | iris_screen.h | 118 const struct brw_vue_map *vue_map);
|