Home
last modified time | relevance | path

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

12

/external/mesa3d/src/intel/compiler/
Dbrw_vue_map.c47 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 …]
Dbrw_interpolation_map.c40 struct brw_vue_map *vue_map, in gen4_frag_prog_set_interp_modes() argument
45 unsigned slot = vue_map->varying_to_slot[location + k]; in gen4_frag_prog_set_interp_modes()
60 brw_setup_vue_interpolation(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 gen4_frag_prog_set_interp_modes(prog_data, vue_map, location, slot_count, in brw_setup_vue_interpolation()
87 gen4_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()
Dbrw_compile_clip.c33 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()
Dbrw_clip_util.c105 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()
Dbrw_clip_unfilled.c48 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()
Dgen6_gs_visitor.cpp66 (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()
724 int slot = prog_data->vue_map.varying_to_slot[varying]; in get_vertex_output_offset_for_varying()
737 return vertex * (prog_data->vue_map.num_slots + 1) + slot; in get_vertex_output_offset_for_varying()
Dbrw_compiler.h1114 void brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map);
1129 GLuint brw_varying_to_offset(const struct brw_vue_map *vue_map, GLuint varying) in brw_varying_to_offset() argument
1131 return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); in brw_varying_to_offset()
1135 struct brw_vue_map *vue_map,
1140 void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map,
1145 void brw_setup_vue_interpolation(struct brw_vue_map *vue_map,
1189 struct brw_vue_map vue_map; member
1478 struct brw_vue_map *vue_map,
1494 struct brw_vue_map *vue_map,
1512 bool use_rep_send, struct brw_vue_map *vue_map,
Dbrw_compile_sf.c69 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()
Dbrw_fs_visitor.cpp578 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in emit_urb_writes() local
632 int last_slot = vue_map->num_slots - 1; in emit_urb_writes()
634 (vue_map->slot_to_varying[last_slot] == BRW_VARYING_SLOT_PAD || in emit_urb_writes()
635 outputs[vue_map->slot_to_varying[last_slot]].file == BAD_FILE)) { in emit_urb_writes()
640 for (slot = 0; slot < vue_map->num_slots; slot++) { in emit_urb_writes()
641 int varying = vue_map->slot_to_varying[slot]; in emit_urb_writes()
649 if ((vue_map->slots_valid & psiz_mask) == 0) { in emit_urb_writes()
659 if (vue_map->slots_valid & VARYING_BIT_LAYER) in emit_urb_writes()
664 if (vue_map->slots_valid & VARYING_BIT_VIEWPORT) in emit_urb_writes()
669 if (vue_map->slots_valid & VARYING_BIT_PSIZ) in emit_urb_writes()
[all …]
Dbrw_vec4_tcs.cpp379 brw_compute_tess_vue_map(&vue_prog_data->vue_map, in brw_compile_tcs()
385 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); in brw_compile_tcs()
Dbrw_nir.c106 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()
289 const struct brw_vue_map *vue_map) in brw_nir_lower_vue_inputs() argument
329 vue_slot = vue_map->varying_to_slot[varying]; in brw_nir_lower_vue_inputs()
341 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) in brw_nir_lower_tes_inputs() argument
359 remap_patch_urb_offsets(block, &b, vue_map, in brw_nir_lower_tes_inputs()
424 brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue_map, in brw_nir_lower_tcs_outputs() argument
444 remap_patch_urb_offsets(block, &b, vue_map, tes_primitive_mode); in brw_nir_lower_tcs_outputs()
Dbrw_clip_tri.c71 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()
Dbrw_clip.h99 struct brw_vue_map vue_map; member
Dbrw_clip_line.c130 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()
Dbrw_nir.h110 const struct brw_vue_map *vue_map);
Dbrw_shader.cpp1296 brw_compute_vue_map(devinfo, &prog_data->base.vue_map, in brw_compile_tes()
1300 unsigned output_size_bytes = prog_data->base.vue_map.num_slots * 4 * 4; in brw_compile_tes()
1358 brw_print_vue_map(stderr, &prog_data->base.vue_map); in brw_compile_tes()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_ff_gs.c59 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()
180 key->attrs = brw_vue_prog_data(brw->vs.base.prog_data)->vue_map.slots_valid; in brw_ff_gs_populate_key()
Dbrw_wm.c75 struct brw_vue_map *vue_map) in brw_codegen_wm_prog() argument
126 true, false, vue_map, in brw_codegen_wm_prog()
614 struct brw_vue_map vue_map; in brw_fs_precompile() local
616 brw_compute_vue_map(&brw->screen->devinfo, &vue_map, in brw_fs_precompile()
621 bool success = brw_codegen_wm_prog(brw, bfp, &key, &vue_map); in brw_fs_precompile()
Dbrw_ff_gs.h102 struct brw_vue_map vue_map; member
DgenX_state_upload.c960 const struct brw_vue_map *vue_map, in genX()
965 int slot = vue_map->varying_to_slot[fs_attr]; in genX()
976 if (!(vue_map->slots_valid & VARYING_BIT_LAYER)) in genX()
978 if (!(vue_map->slots_valid & VARYING_BIT_VIEWPORT)) in genX()
988 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC0]; in genX()
990 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC1]; in genX()
1037 ((vue_map->slot_to_varying[slot] == VARYING_SLOT_COL0 && in genX()
1038 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC0) || in genX()
1039 (vue_map->slot_to_varying[slot] == VARYING_SLOT_COL1 && in genX()
1040 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC1)); in genX()
[all …]
Dbrw_gs.c81 &prog_data.base.vue_map, outputs_written, in brw_codegen_gs_prog()
/external/mesa3d/src/intel/blorp/
Dblorp.c243 &vs_prog_data->base.vue_map, in blorp_compile_vs()
303 struct brw_vue_map vue_map; in blorp_ensure_sf_program() local
304 brw_compute_vue_map(blorp->compiler->devinfo, &vue_map, slots_valid, false, 1); in blorp_ensure_sf_program()
308 &prog_data_tmp, &vue_map, &program_size); in blorp_ensure_sf_program()
/external/mesa3d/src/gallium/drivers/iris/
Diris_program.c1136 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_vs()
1159 &vue_prog_data->vue_map); in iris_compile_vs()
1493 &vue_prog_data->vue_map); in iris_compile_tes()
1592 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_gs()
1615 &vue_prog_data->vue_map); in iris_compile_gs()
1673 struct brw_vue_map *vue_map) in iris_compile_fs() argument
1718 nir, -1, -1, -1, true, false, vue_map, in iris_compile_fs()
1796 struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in update_last_vue_map() local
1799 (old_map ? old_map->slots_valid : 0ull) ^ vue_map->slots_valid; in update_last_vue_map()
1803 (vue_map->slots_valid & VARYING_BIT_VIEWPORT) ? IRIS_MAX_VIEWPORTS : 1; in update_last_vue_map()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_pipeline.c819 &vs_stage->prog_data.vs.base.vue_map, in anv_pipeline_compile_vs()
943 &tcs_stage->prog_data.tcs.base.vue_map, in anv_pipeline_compile_tes()
966 &gs_stage->prog_data.gs.base.vue_map, in anv_pipeline_compile_gs()
1076 prev_stage->prog_data.vue.vue_map.slots_valid; in anv_pipeline_compile_fs()
1260 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in anv_pipeline_init_from_cached_graphics() local
1261 for (int i = 0; i < vue_map->num_slots; i++) { in anv_pipeline_init_from_cached_graphics()
1262 if (vue_map->slot_to_varying[i] == VARYING_SLOT_POS) in anv_pipeline_init_from_cached_graphics()
DgenX_pipeline.c340 &anv_pipeline_get_last_vue_prog_data(pipeline)->vue_map; in emit_3dstate_sbe()
611 if (last_vue_prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) { in emit_rs_state()
1353 if (vp_info && (last->vue_map.slots_valid & VARYING_BIT_VIEWPORT)) {
1367 !(last->vue_map.slots_valid & VARYING_BIT_LAYER);
1390 const struct brw_vue_map *vue_map = &prog_data->vue_map; local
1437 (prog_data->vue_map.num_slots + 1) / 2 - urb_entry_read_offset;
1502 const int slot = vue_map->varying_to_slot[varying];

12