/external/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 85 vue_map->slots_valid = slots_valid; in brw_compute_vue_map() 86 vue_map->separate = separate; in brw_compute_vue_map() 102 vue_map->varying_to_slot[i] = -1; in brw_compute_vue_map() 103 vue_map->slot_to_varying[i] = BRW_VARYING_SLOT_PAD; in brw_compute_vue_map() 123 assign_vue_slot(vue_map, VARYING_SLOT_PSIZ, slot++); in brw_compute_vue_map() [all …]
|
D | brw_interpolation_map.c | 40 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 67 if (!vue_map) in brw_setup_vue_interpolation() 73 unsigned pos_slot = vue_map->varying_to_slot[VARYING_SLOT_POS]; in brw_setup_vue_interpolation() 83 gen4_frag_prog_set_interp_modes(prog_data, vue_map, location, slot_count, in brw_setup_vue_interpolation() 88 gen4_frag_prog_set_interp_modes(prog_data, vue_map, location, in brw_setup_vue_interpolation() 96 for (int i = 0; i < vue_map->num_slots; i++) { in brw_setup_vue_interpolation() 97 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 | brw_compiler.h | 866 void brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map); 881 GLuint brw_varying_to_offset(const struct brw_vue_map *vue_map, GLuint varying) in brw_varying_to_offset() argument 883 return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); in brw_varying_to_offset() 887 struct brw_vue_map *vue_map, 891 void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map, 896 void brw_setup_vue_interpolation(struct brw_vue_map *vue_map, 938 struct brw_vue_map vue_map; member 1187 struct brw_vue_map *vue_map, 1203 struct brw_vue_map *vue_map, 1221 bool use_rep_send, struct brw_vue_map *vue_map,
|
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 | 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() 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()
|
D | brw_fs_visitor.cpp | 520 if (!(vue_prog_data->vue_map.slots_valid & VARYING_BIT_CLIP_VERTEX)) in compute_clip_distance() 559 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in emit_urb_writes() local 613 int last_slot = vue_map->num_slots - 1; in emit_urb_writes() 615 (vue_map->slot_to_varying[last_slot] == BRW_VARYING_SLOT_PAD || in emit_urb_writes() 616 outputs[vue_map->slot_to_varying[last_slot]].file == BAD_FILE)) { in emit_urb_writes() 621 for (slot = 0; slot < vue_map->num_slots; slot++) { in emit_urb_writes() 622 int varying = vue_map->slot_to_varying[slot]; in emit_urb_writes() 630 if ((vue_map->slots_valid & psiz_mask) == 0) { in emit_urb_writes() 640 if (vue_map->slots_valid & VARYING_BIT_LAYER) in emit_urb_writes() 645 if (vue_map->slots_valid & VARYING_BIT_VIEWPORT) in emit_urb_writes() [all …]
|
D | brw_nir.c | 156 const struct brw_vue_map *vue_map, in remap_patch_urb_offsets() argument 177 int vue_slot = vue_map->varying_to_slot[intrin->const_index[0]]; in remap_patch_urb_offsets() 186 vue_map->num_per_vertex_slots; in remap_patch_urb_offsets() 195 vue_map->num_per_vertex_slots)); in remap_patch_urb_offsets() 336 const struct brw_vue_map *vue_map) in brw_nir_lower_vue_inputs() argument 376 vue_slot = vue_map->varying_to_slot[varying]; in brw_nir_lower_vue_inputs() 388 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) in brw_nir_lower_tes_inputs() argument 406 remap_patch_urb_offsets(block, &b, vue_map, in brw_nir_lower_tes_inputs() 469 brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue_map, in brw_nir_lower_tcs_outputs() argument 488 remap_patch_urb_offsets(block, &b, vue_map, tes_primitive_mode); in brw_nir_lower_tcs_outputs()
|
D | brw_vec4_tcs.cpp | 399 brw_compute_tess_vue_map(&vue_prog_data->vue_map, in brw_compile_tcs() 405 brw_nir_lower_tcs_outputs(nir, &vue_prog_data->vue_map, in brw_compile_tcs() 429 const int num_per_patch_slots = vue_prog_data->vue_map.num_per_patch_slots; in brw_compile_tcs() 430 const int num_per_vertex_slots = vue_prog_data->vue_map.num_per_vertex_slots; in brw_compile_tcs() 461 brw_print_vue_map(stderr, &vue_prog_data->vue_map); in brw_compile_tcs()
|
D | brw_clip_tri.c | 71 if (c->vue_map.num_slots % 2) { 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_nir.h | 107 const struct brw_vue_map *vue_map);
|
D | brw_clip.h | 99 struct brw_vue_map vue_map; member
|
D | brw_vec4_vs_visitor.cpp | 105 if (!(prog_data->vue_map.slots_valid & VARYING_BIT_CLIP_VERTEX)) { in emit_clip_distances()
|
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_shader.cpp | 1169 brw_compute_vue_map(devinfo, &prog_data->base.vue_map, in brw_compile_tes() 1173 unsigned output_size_bytes = prog_data->base.vue_map.num_slots * 4 * 4; in brw_compile_tes() 1238 brw_print_vue_map(stderr, &prog_data->base.vue_map); in brw_compile_tes()
|
D | brw_vec4_gs_visitor.cpp | 749 unsigned output_vertex_size_bytes = prog_data->base.vue_map.num_slots * 16; in brw_compile_gs() 849 brw_print_vue_map(stderr, &prog_data->base.vue_map); in brw_compile_gs()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
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() 180 key->attrs = brw_vue_prog_data(brw->vs.base.prog_data)->vue_map.slots_valid; in brw_ff_gs_populate_key()
|
D | brw_wm.c | 131 struct brw_vue_map *vue_map) in brw_codegen_wm_prog() argument 179 true, false, vue_map, in brw_codegen_wm_prog() 653 struct brw_vue_map vue_map; in brw_fs_precompile() local 655 brw_compute_vue_map(&brw->screen->devinfo, &vue_map, in brw_fs_precompile() 660 bool success = brw_codegen_wm_prog(brw, bfp, &key, &vue_map); in brw_fs_precompile()
|
D | brw_ff_gs.h | 102 struct brw_vue_map vue_map; member
|
D | genX_state_upload.c | 937 const struct brw_vue_map *vue_map, in genX() 942 int slot = vue_map->varying_to_slot[fs_attr]; in genX() 953 if (!(vue_map->slots_valid & VARYING_BIT_LAYER)) in genX() 955 if (!(vue_map->slots_valid & VARYING_BIT_VIEWPORT)) in genX() 965 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC0]; in genX() 967 slot = vue_map->varying_to_slot[VARYING_SLOT_BFC1]; in genX() 1014 ((vue_map->slot_to_varying[slot] == VARYING_SLOT_COL0 && in genX() 1015 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC0) || in genX() 1016 (vue_map->slot_to_varying[slot] == VARYING_SLOT_COL1 && in genX() 1017 vue_map->slot_to_varying[slot+1] == VARYING_SLOT_BFC1)); in genX() [all …]
|
D | brw_gs.c | 103 &prog_data.base.vue_map, outputs_written, in brw_codegen_gs_prog()
|
/external/mesa3d/src/intel/blorp/ |
D | blorp.c | 220 &vs_prog_data->base.vue_map, in blorp_compile_vs() 278 struct brw_vue_map vue_map; in blorp_ensure_sf_program() local 279 brw_compute_vue_map(blorp->compiler->devinfo, &vue_map, slots_valid, false); in blorp_ensure_sf_program() 283 &prog_data_tmp, &vue_map, &program_size); in blorp_ensure_sf_program()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_pipeline.c | 309 const struct brw_vue_map *vue_map = in populate_wm_prog_key() local 310 &anv_pipeline_get_last_vue_prog_data(pipeline)->vue_map; in populate_wm_prog_key() 311 key->input_slots_valid = vue_map->slots_valid; in populate_wm_prog_key() 542 &prog_data.base.vue_map, in anv_pipeline_compile_vs() 730 &tcs_prog_data.base.vue_map, &tes_prog_data, tes_nir, in anv_pipeline_compile_tcs_tes() 805 &prog_data.base.vue_map, in anv_pipeline_compile_gs()
|