/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_vs.c | 43 static inline void assign_vue_slot(struct brw_vue_map *vue_map, in assign_vue_slot() argument 47 assert (vue_map->vert_result_to_slot[vert_result] == -1); in assign_vue_slot() 49 vue_map->vert_result_to_slot[vert_result] = vue_map->num_slots; in assign_vue_slot() 50 vue_map->slot_to_vert_result[vue_map->num_slots++] = vert_result; in assign_vue_slot() 65 struct brw_vue_map *vue_map = &c->prog_data.vue_map; in brw_compute_vue_map() local 69 vue_map->num_slots = 0; in brw_compute_vue_map() 71 vue_map->vert_result_to_slot[i] = -1; in brw_compute_vue_map() 72 vue_map->slot_to_vert_result[i] = BRW_VERT_RESULT_MAX; in brw_compute_vue_map() 85 assign_vue_slot(vue_map, VERT_RESULT_PSIZ); in brw_compute_vue_map() 86 assign_vue_slot(vue_map, BRW_VERT_RESULT_NDC); in brw_compute_vue_map() [all …]
|
D | brw_clip_util.c | 112 GLuint hpos_offset = brw_vert_result_to_offset(&c->vue_map, in brw_clip_project_vertex() 114 GLuint ndc_offset = brw_vert_result_to_offset(&c->vue_map, in brw_clip_project_vertex() 154 for (slot = 0; slot < c->vue_map.num_slots; slot++) { in brw_clip_interp_vertex() 155 int vert_result = c->vue_map.slot_to_vert_result[slot]; in brw_clip_interp_vertex() 194 if (c->vue_map.num_slots % 2) { in brw_clip_interp_vertex() 195 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_interp_vertex() 305 brw_vert_result_to_offset(&c->vue_map, in brw_clip_copy_colors() 308 brw_vert_result_to_offset(&c->vue_map, in brw_clip_copy_colors() 314 brw_vert_result_to_offset(&c->vue_map, in brw_clip_copy_colors() 317 brw_vert_result_to_offset(&c->vue_map, in brw_clip_copy_colors() [all …]
|
D | gen6_sf_state.c | 56 get_attr_override(struct brw_vue_map *vue_map, int urb_entry_read_offset, in get_attr_override() argument 69 int slot = vue_map->vert_result_to_slot[vs_attr]; in get_attr_override() 75 slot = vue_map->vert_result_to_slot[VERT_RESULT_BFC0]; in get_attr_override() 77 slot = vue_map->vert_result_to_slot[VERT_RESULT_BFC1]; in get_attr_override() 99 ((vue_map->slot_to_vert_result[slot] == VERT_RESULT_COL0 && in get_attr_override() 100 vue_map->slot_to_vert_result[slot+1] == VERT_RESULT_BFC0) || in get_attr_override() 101 (vue_map->slot_to_vert_result[slot] == VERT_RESULT_COL1 && in get_attr_override() 102 vue_map->slot_to_vert_result[slot+1] == VERT_RESULT_BFC1)); in get_attr_override() 307 get_attr_override(&brw->vs.prog_data->vue_map, in upload_sf_state()
|
D | brw_sf.c | 68 c.vue_map = brw->vs.prog_data->vue_map; in compile_sf_prog() 76 c.vue_map.vert_result_to_slot[BRW_VERT_RESULT_PNTC] = c.vue_map.num_slots; in compile_sf_prog() 77 c.vue_map.slot_to_vert_result[c.vue_map.num_slots++] = BRW_VERT_RESULT_PNTC; in compile_sf_prog() 80 c.nr_attr_regs = (c.vue_map.num_slots + 1)/2 - c.urb_entry_read_offset; in compile_sf_prog()
|
D | gen7_sol_state.c | 109 struct brw_vue_map *vue_map) in upload_3dstate_so_decl_list() argument 147 decl |= vue_map->vert_result_to_slot[vert_result] << in upload_3dstate_so_decl_list() 185 struct brw_vue_map *vue_map) in upload_3dstate_streamout() argument 201 int urb_entry_read_length = (vue_map->num_slots + 1) / 2 - in upload_3dstate_streamout() 246 upload_3dstate_so_decl_list(brw, &brw->vs.prog_data->vue_map); in upload_sol_state() 256 upload_3dstate_streamout(brw, active, &brw->vs.prog_data->vue_map); in upload_sol_state()
|
D | brw_clip_unfilled.c | 55 GLuint hpos_offset = brw_vert_result_to_offset(&c->vue_map, in compute_tri_direction() 163 brw_vert_result_to_offset(&c->vue_map, in copy_bfc() 166 brw_vert_result_to_offset(&c->vue_map, in copy_bfc() 173 brw_vert_result_to_offset(&c->vue_map, in copy_bfc() 176 brw_vert_result_to_offset(&c->vue_map, in copy_bfc() 237 brw_vert_result_to_offset(&c->vue_map, in merge_edgeflags() 245 brw_vert_result_to_offset(&c->vue_map, in merge_edgeflags() 259 GLuint ndc_offset = brw_vert_result_to_offset(&c->vue_map, in apply_one_offset() 318 deref_1f(v0, brw_vert_result_to_offset(&c->vue_map, in emit_lines() 360 deref_1f(v0, brw_vert_result_to_offset(&c->vue_map, in emit_points()
|
D | brw_gs.c | 59 c.vue_map = brw->vs.prog_data->vue_map; in compile_gs_prog() 60 c.nr_regs = (c.vue_map.num_slots + 1)/2; in compile_gs_prog()
|
D | brw_clip.c | 72 c.vue_map = brw->vs.prog_data->vue_map; in compile_clip_prog() 79 c.nr_regs = (c.vue_map.num_slots + 1)/2; in compile_clip_prog()
|
D | brw_gs.h | 104 struct brw_vue_map vue_map; member
|
D | brw_sf.h | 97 struct brw_vue_map vue_map; member
|
D | brw_context.h | 391 static inline GLuint brw_vert_result_to_offset(struct brw_vue_map *vue_map, in brw_vert_result_to_offset() argument 394 return brw_vue_slot_to_offset(vue_map->vert_result_to_slot[vert_result]); in brw_vert_result_to_offset() 430 struct brw_vue_map vue_map; member
|
D | brw_clip_tri.c | 77 if (c->vue_map.num_slots % 2) { in brw_clip_tri_alloc_regs() 82 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_tri_alloc_regs() 235 GLuint hpos_offset = brw_vert_result_to_offset(&c->vue_map, in brw_clip_tri() 487 GLuint hpos_offset = brw_vert_result_to_offset(&c->vue_map, in brw_clip_test()
|
D | brw_clip.h | 113 struct brw_vue_map vue_map; member
|
D | brw_vs_emit.c | 332 for (slot = 0; slot < c->prog_data.vue_map.num_slots; slot++) { in brw_vs_alloc_regs() 333 int vert_result = c->prog_data.vue_map.slot_to_vert_result[slot]; in brw_vs_alloc_regs() 401 attributes_in_vue = MAX2(c->prog_data.vue_map.num_slots, c->nr_inputs); in brw_vs_alloc_regs() 1671 for (slot = len_vertex_header; slot < c->prog_data.vue_map.num_slots; ++slot) { in emit_vertex_write() 1676 int vert_result = c->prog_data.vue_map.slot_to_vert_result[slot]; in emit_vertex_write() 1684 eot = (slot >= c->prog_data.vue_map.num_slots); in emit_vertex_write() 1705 if (slot < c->prog_data.vue_map.num_slots) { in emit_vertex_write() 1711 for (; slot < c->prog_data.vue_map.num_slots; ++slot) { in emit_vertex_write() 1712 int vert_result = c->prog_data.vue_map.slot_to_vert_result[slot]; in emit_vertex_write()
|
D | brw_state.h | 234 get_attr_override(struct brw_vue_map *vue_map, int urb_entry_read_offset,
|
D | gen7_sf_state.c | 105 get_attr_override(&brw->vs.prog_data->vue_map, in upload_sbe_state()
|
D | brw_sf_emit.c | 55 return c->vue_map.slot_to_vert_result[vue_slot]; in vert_reg_to_vert_result() 65 int vue_slot = c->vue_map.vert_result_to_slot[vert_result]; in get_vert_result()
|
D | brw_clip_line.c | 136 GLuint hpos_offset = brw_vert_result_to_offset(&c->vue_map, in clip_and_emit_line()
|
D | brw_vec4_visitor.cpp | 2357 for (slot = 0; slot < c->prog_data.vue_map.num_slots; ++slot) { in emit_urb_writes() 2358 emit_urb_slot(mrf++, c->prog_data.vue_map.slot_to_vert_result[slot]); in emit_urb_writes() 2373 inst->eot = (slot >= c->prog_data.vue_map.num_slots); in emit_urb_writes() 2379 for (; slot < c->prog_data.vue_map.num_slots; ++slot) { in emit_urb_writes() 2382 emit_urb_slot(mrf++, c->prog_data.vue_map.slot_to_vert_result[slot]); in emit_urb_writes()
|
D | brw_gs_emit.c | 436 unsigned char slot = c->vue_map.vert_result_to_slot[vert_result]; in gen6_sol_program()
|
D | brw_vec4_emit.cpp | 99 unsigned vue_entries = MAX2(nr_attributes, c->prog_data.vue_map.num_slots); in setup_attributes()
|