/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_vue_map.c | 46 assign_vue_slot(struct brw_vue_map *vue_map, int varying, int slot) in assign_vue_slot() argument 49 assert (vue_map->varying_to_slot[varying] == -1); in assign_vue_slot() 51 vue_map->varying_to_slot[varying] = slot; in assign_vue_slot() 52 vue_map->slot_to_varying[slot] = varying; in assign_vue_slot() 60 struct brw_vue_map *vue_map, in brw_compute_vue_map() argument 84 vue_map->slots_valid = slots_valid; in brw_compute_vue_map() 85 vue_map->separate = separate; in brw_compute_vue_map() 101 vue_map->varying_to_slot[i] = -1; in brw_compute_vue_map() 102 vue_map->slot_to_varying[i] = BRW_VARYING_SLOT_PAD; in brw_compute_vue_map() 122 assign_vue_slot(vue_map, VARYING_SLOT_PSIZ, slot++); in brw_compute_vue_map() [all …]
|
D | brw_interpolation_map.c | 41 struct brw_vue_map *vue_map, in gen4_frag_prog_set_interp_modes() argument 46 unsigned slot = vue_map->varying_to_slot[location + k]; in gen4_frag_prog_set_interp_modes() 61 brw_setup_vue_interpolation(struct brw_vue_map *vue_map, nir_shader *nir, in brw_setup_vue_interpolation() argument 68 if (!vue_map) in brw_setup_vue_interpolation() 74 unsigned pos_slot = vue_map->varying_to_slot[VARYING_SLOT_POS]; in brw_setup_vue_interpolation() 84 gen4_frag_prog_set_interp_modes(prog_data, vue_map, location, slot_count, in brw_setup_vue_interpolation() 89 gen4_frag_prog_set_interp_modes(prog_data, vue_map, location, in brw_setup_vue_interpolation() 97 for (int i = 0; i < vue_map->num_slots; i++) { in brw_setup_vue_interpolation() 98 int varying = vue_map->slot_to_varying[i]; in brw_setup_vue_interpolation()
|
D | gen6_sf_state.c | 58 get_attr_override(const struct brw_vue_map *vue_map, int urb_entry_read_offset, in get_attr_override() argument 62 int slot = vue_map->varying_to_slot[fs_attr]; in get_attr_override() 73 if (!(vue_map->slots_valid & VARYING_BIT_LAYER)) in get_attr_override() 75 if (!(vue_map->slots_valid & VARYING_BIT_VIEWPORT)) in get_attr_override() 85 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC0]; in get_attr_override() 87 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC1]; in get_attr_override() 133 ((vue_map->slot_to_varying[slot] == VARYING_SLOT_COL0 && in get_attr_override() 134 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC0) || in get_attr_override() 135 (vue_map->slot_to_varying[slot] == VARYING_SLOT_COL1 && in get_attr_override() 136 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC1)); in get_attr_override()
|
D | brw_sf.c | 65 c.vue_map = brw->vue_map_geom_out; in compile_sf_prog() 73 c.vue_map.varying_to_slot[BRW_VARYING_SLOT_PNTC] = c.vue_map.num_slots; in compile_sf_prog() 74 c.vue_map.slot_to_varying[c.vue_map.num_slots++] = BRW_VARYING_SLOT_PNTC; in compile_sf_prog() 77 c.nr_attr_regs = (c.vue_map.num_slots + 1)/2 - c.urb_entry_read_offset; in compile_sf_prog()
|
D | brw_clip_util.c | 112 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_project_vertex() 113 GLuint ndc_offset = brw_varying_to_offset(&c->vue_map, in brw_clip_project_vertex() 161 GLuint offset = brw_varying_to_offset(&c->vue_map, in brw_clip_interp_vertex() 172 GLuint delta = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_interp_vertex() 187 GLuint delta = brw_varying_to_offset(&c->vue_map, in brw_clip_interp_vertex() 248 for (slot = 0; slot < c->vue_map.num_slots; slot++) { in brw_clip_interp_vertex() 249 int varying = c->vue_map.slot_to_varying[slot]; in brw_clip_interp_vertex() 307 if (c->vue_map.num_slots % 2) { in brw_clip_interp_vertex() 308 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_interp_vertex() 408 for (int i = 0; i < c->vue_map.num_slots; i++) { in brw_clip_copy_flatshaded_attributes()
|
D | brw_compiler.h | 559 void brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map); 574 GLuint brw_varying_to_offset(const struct brw_vue_map *vue_map, GLuint varying) in brw_varying_to_offset() argument 576 return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); in brw_varying_to_offset() 580 struct brw_vue_map *vue_map, 584 void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map, 589 void brw_setup_vue_interpolation(struct brw_vue_map *vue_map, 631 struct brw_vue_map vue_map; member 851 bool use_rep_send, struct brw_vue_map *vue_map,
|
D | brw_nir.c | 123 remap_inputs_with_vue_map(nir_block *block, const struct brw_vue_map *vue_map) in remap_inputs_with_vue_map() argument 133 int vue_slot = vue_map->varying_to_slot[intrin->const_index[0]]; in remap_inputs_with_vue_map() 198 const struct brw_vue_map *vue_map, in remap_patch_urb_offsets() argument 219 int vue_slot = vue_map->varying_to_slot[intrin->const_index[0]]; in remap_patch_urb_offsets() 228 vue_map->num_per_vertex_slots; in remap_patch_urb_offsets() 237 vue_map->num_per_vertex_slots)); in remap_patch_urb_offsets() 294 const struct brw_vue_map *vue_map) in brw_nir_lower_vue_inputs() argument 312 remap_inputs_with_vue_map(block, vue_map); in brw_nir_lower_vue_inputs() 320 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) in brw_nir_lower_tes_inputs() argument 338 remap_patch_urb_offsets(block, &b, vue_map, in brw_nir_lower_tes_inputs() [all …]
|
D | brw_clip_unfilled.c | 54 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in compute_tri_direction() 163 brw_varying_to_offset(&c->vue_map, in copy_bfc() 166 brw_varying_to_offset(&c->vue_map, in copy_bfc() 173 brw_varying_to_offset(&c->vue_map, in copy_bfc() 176 brw_varying_to_offset(&c->vue_map, in copy_bfc() 252 brw_varying_to_offset(&c->vue_map, in merge_edgeflags() 260 brw_varying_to_offset(&c->vue_map, in merge_edgeflags() 274 GLuint ndc_offset = brw_varying_to_offset(&c->vue_map, in apply_one_offset() 334 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_lines() 377 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_points()
|
D | brw_fs_visitor.cpp | 557 if (!(vue_prog_data->vue_map.slots_valid & VARYING_BIT_CLIP_VERTEX)) in compute_clip_distance() 596 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in emit_urb_writes() local 616 if (vue_map->slots_valid == 0) { in emit_urb_writes() 678 int last_slot = vue_map->num_slots - 1; in emit_urb_writes() 680 (vue_map->slot_to_varying[last_slot] == BRW_VARYING_SLOT_PAD || in emit_urb_writes() 681 outputs[vue_map->slot_to_varying[last_slot]].file == BAD_FILE)) { in emit_urb_writes() 685 for (slot = 0; slot < vue_map->num_slots; slot++) { in emit_urb_writes() 686 int varying = vue_map->slot_to_varying[slot]; in emit_urb_writes() 694 if ((vue_map->slots_valid & psiz_mask) == 0) { in emit_urb_writes() 704 if (vue_map->slots_valid & VARYING_BIT_LAYER) in emit_urb_writes() [all …]
|
D | gen6_gs_visitor.cpp | 66 (prog_data->vue_map.num_slots + 1) * in emit_prolog() 145 for (int slot = 0; slot < prog_data->vue_map.num_slots; ++slot) { in gs_emit_vertex() 146 int varying = prog_data->vue_map.slot_to_varying[slot]; in gs_emit_vertex() 268 brw_imm_d(prog_data->vue_map.num_slots))); in emit_urb_write_header() 401 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_thread_end() 402 int varying = prog_data->vue_map.slot_to_varying[slot]; in emit_thread_end() 434 complete = slot >= prog_data->vue_map.num_slots; in emit_thread_end() 737 int slot = prog_data->vue_map.varying_to_slot[varying]; in get_vertex_output_offset_for_varying() 750 return vertex * (prog_data->vue_map.num_slots + 1) + slot; in get_vertex_output_offset_for_varying()
|
D | brw_ff_gs.c | 59 c.vue_map = brw_vue_prog_data(brw->vs.base.prog_data)->vue_map; in brw_codegen_ff_gs_prog() 60 c.nr_regs = (c.vue_map.num_slots + 1)/2; in brw_codegen_ff_gs_prog() 177 key->attrs = brw_vue_prog_data(brw->vs.base.prog_data)->vue_map.slots_valid; in brw_ff_gs_populate_key()
|
D | gen7_sol_state.c | 99 const struct brw_vue_map *vue_map) in gen7_upload_3dstate_so_decl_list() argument 150 decl |= vue_map->varying_to_slot[VARYING_SLOT_PSIZ] << in gen7_upload_3dstate_so_decl_list() 153 assert(vue_map->varying_to_slot[varying] >= 0); in gen7_upload_3dstate_so_decl_list() 154 decl |= vue_map->varying_to_slot[varying] << in gen7_upload_3dstate_so_decl_list() 225 const struct brw_vue_map *vue_map) in upload_3dstate_streamout() argument 238 int urb_entry_read_length = (vue_map->num_slots + 1) / 2 - in upload_3dstate_streamout()
|
D | brw_vec4_tcs.cpp | 410 brw_compute_tess_vue_map(&vue_prog_data->vue_map, in brw_compile_tcs() 416 brw_nir_lower_tcs_outputs(nir, &vue_prog_data->vue_map, in brw_compile_tcs() 440 const int num_per_patch_slots = vue_prog_data->vue_map.num_per_patch_slots; in brw_compile_tcs() 441 const int num_per_vertex_slots = vue_prog_data->vue_map.num_per_vertex_slots; in brw_compile_tcs() 465 brw_print_vue_map(stderr, &vue_prog_data->vue_map); in brw_compile_tcs()
|
D | brw_wm.c | 127 struct brw_vue_map *vue_map) in brw_codegen_wm_prog() argument 192 true, brw->use_rep_send, vue_map, in brw_codegen_wm_prog() 643 struct brw_vue_map vue_map; in brw_fs_precompile() local 645 brw_compute_vue_map(&brw->screen->devinfo, &vue_map, in brw_fs_precompile() 650 bool success = brw_codegen_wm_prog(brw, bfp, &key, &vue_map); in brw_fs_precompile()
|
D | brw_clip.c | 69 c.vue_map = brw->vue_map_geom_out; in compile_clip_prog() 76 c.nr_regs = (c.vue_map.num_slots + 1)/2; in compile_clip_prog()
|
D | brw_ff_gs.h | 102 struct brw_vue_map vue_map; member
|
D | brw_clip_tri.c | 76 if (c->vue_map.num_slots % 2) { in brw_clip_tri_alloc_regs() 81 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_tri_alloc_regs() 270 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_tri() 272 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in brw_clip_tri() 538 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, in brw_clip_test()
|
D | brw_sf.h | 101 struct brw_vue_map vue_map; member
|
D | brw_sf_emit.c | 63 return c->vue_map.slot_to_varying[vue_slot]; in vert_reg_to_varying() 86 int vue_slot = c->vue_map.varying_to_slot[varying]; in get_varying() 164 for (i = 0; i < c->vue_map.num_slots; i++) { in copy_flatshaded_attributes() 178 for (i = 0; i < c->vue_map.num_slots; i++) in count_flatshaded_attributes()
|
D | brw_nir.h | 104 const struct brw_vue_map *vue_map);
|
D | brw_vec4_visitor.cpp | 1188 ((prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) || in emit_psiz_and_flags() 1197 if (prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) { in emit_psiz_and_flags() 1247 if (prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) { in emit_psiz_and_flags() 1255 if (prog_data->vue_map.slots_valid & VARYING_BIT_LAYER) { in emit_psiz_and_flags() 1262 if (prog_data->vue_map.slots_valid & VARYING_BIT_VIEWPORT) { in emit_psiz_and_flags() 1406 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_vertex() 1408 prog_data->vue_map.slot_to_varying[slot]); in emit_vertex() 1420 complete = slot >= prog_data->vue_map.num_slots; in emit_vertex()
|
D | gen8_gs_state.c | 46 ((vue_prog_data->vue_map.num_slots + 1) / 2 - urb_entry_write_offset); in gen8_upload_gs_state()
|
D | brw_clip_line.c | 137 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in clip_and_emit_line() 139 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in clip_and_emit_line()
|
D | brw_clip.h | 132 struct brw_vue_map vue_map; member
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_pipeline.c | 272 const struct brw_vue_map *vue_map = in populate_wm_prog_key() local 273 &anv_pipeline_get_last_vue_prog_data(pipeline)->vue_map; in populate_wm_prog_key() 274 key->input_slots_valid = vue_map->slots_valid; in populate_wm_prog_key() 478 &prog_data.base.vue_map, in anv_pipeline_compile_vs() 663 &tcs_prog_data.base.vue_map, &tes_prog_data, tes_nir, in anv_pipeline_compile_tcs_tes() 736 &prog_data.base.vue_map, in anv_pipeline_compile_gs()
|