Home
last modified time | relevance | path

Searched refs:vue_map (Results 1 – 21 of 21) sorted by relevance

/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_vs.c43 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 …]
Dbrw_clip_util.c112 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 …]
Dgen6_sf_state.c56 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()
Dbrw_sf.c68 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()
Dgen7_sol_state.c109 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()
Dbrw_clip_unfilled.c55 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()
Dbrw_gs.c59 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()
Dbrw_clip.c72 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()
Dbrw_gs.h104 struct brw_vue_map vue_map; member
Dbrw_sf.h97 struct brw_vue_map vue_map; member
Dbrw_context.h391 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
Dbrw_clip_tri.c77 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()
Dbrw_clip.h113 struct brw_vue_map vue_map; member
Dbrw_vs_emit.c332 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()
Dbrw_state.h234 get_attr_override(struct brw_vue_map *vue_map, int urb_entry_read_offset,
Dgen7_sf_state.c105 get_attr_override(&brw->vs.prog_data->vue_map, in upload_sbe_state()
Dbrw_sf_emit.c55 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()
Dbrw_clip_line.c136 GLuint hpos_offset = brw_vert_result_to_offset(&c->vue_map, in clip_and_emit_line()
Dbrw_vec4_visitor.cpp2357 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()
Dbrw_gs_emit.c436 unsigned char slot = c->vue_map.vert_result_to_slot[vert_result]; in gen6_sol_program()
Dbrw_vec4_emit.cpp99 unsigned vue_entries = MAX2(nr_attributes, c->prog_data.vue_map.num_slots); in setup_attributes()