Home
last modified time | relevance | path

Searched refs:vue_map (Results 1 - 25 of 33) sorted by relevance

12

/third_party/mesa3d/src/intel/compiler/
H A 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()
86 vue_map->slots_valid = slots_valid; in brw_compute_vue_map()
87 vue_map->separate = separate; in brw_compute_vue_map()
95 /* Make sure that the values we store in vue_map->varying_to_slot and in brw_compute_vue_map()
96 * vue_map->slot_to_varying won't overflow the signed chars that are used in brw_compute_vue_map()
97 * to store them. Note that since vue_map in brw_compute_vue_map()
60 brw_compute_vue_map(const struct intel_device_info *devinfo, struct brw_vue_map *vue_map, uint64_t slots_valid, bool separate, uint32_t pos_slots) brw_compute_vue_map() argument
218 brw_compute_tess_vue_map(struct brw_vue_map *vue_map, uint64_t vertex_slots, uint32_t patch_slots) brw_compute_tess_vue_map() argument
299 brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map, gl_shader_stage stage) brw_print_vue_map() argument
[all...]
H A Dbrw_interpolation_map.c40 const struct brw_vue_map *vue_map, in gfx4_frag_prog_set_interp_modes()
45 unsigned slot = vue_map->varying_to_slot[location + k]; in gfx4_frag_prog_set_interp_modes()
60 brw_setup_vue_interpolation(const 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 gfx4_frag_prog_set_interp_modes(prog_data, vue_map, location, slot_count, in brw_setup_vue_interpolation()
87 gfx4_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()
39 gfx4_frag_prog_set_interp_modes(struct brw_wm_prog_data *prog_data, const struct brw_vue_map *vue_map, unsigned location, unsigned slot_count, enum glsl_interp_mode interp) gfx4_frag_prog_set_interp_modes() argument
H A Dbrw_compile_clip.c33 struct brw_vue_map *vue_map, in brw_compile_clip()
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()
29 brw_compile_clip(const struct brw_compiler *compiler, void *mem_ctx, const struct brw_clip_prog_key *key, struct brw_clip_prog_data *prog_data, struct brw_vue_map *vue_map, unsigned *final_assembly_size) brw_compile_clip() argument
H A 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 in brw_clip_copy_flatshaded_attributes()
[all...]
H A Dgfx6_gs_visitor.cpp57 * For each emitted vertex, vertex_output will hold vue_map.num_slots in emit_prolog()
67 (prog_data->vue_map.num_slots + 1) * in emit_prolog()
144 for (int slot = 0; slot < prog_data->vue_map.num_slots; ++slot) { in gs_emit_vertex()
145 int varying = prog_data->vue_map.slot_to_varying[slot]; in gs_emit_vertex()
267 brw_imm_d(prog_data->vue_map.num_slots))); in emit_urb_write_header()
400 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_thread_end()
401 int varying = prog_data->vue_map.slot_to_varying[slot]; in emit_thread_end()
433 complete = slot >= prog_data->vue_map.num_slots; in emit_thread_end()
686 int slot = prog_data->vue_map.varying_to_slot[varying]; in get_vertex_output_offset_for_varying()
699 return vertex * (prog_data->vue_map in get_vertex_output_offset_for_varying()
[all...]
H A Dbrw_compile_sf.c70 struct brw_vue_map vue_map; member
91 return c->vue_map.slot_to_varying[vue_slot]; in vert_reg_to_varying()
114 int vue_slot = c->vue_map.varying_to_slot[varying]; in get_varying()
192 for (i = 0; i < c->vue_map.num_slots; i++) { in copy_flatshaded_attributes()
206 for (i = 0; i < c->vue_map.num_slots; i++) in count_flatshaded_attributes()
808 struct brw_vue_map *vue_map, in brw_compile_sf()
819 c.vue_map = *vue_map; in brw_compile_sf()
823 * not included in c.vue_map generated in VS stage. Here we add in brw_compile_sf()
827 c.vue_map in brw_compile_sf()
804 brw_compile_sf(const struct brw_compiler *compiler, void *mem_ctx, const struct brw_sf_prog_key *key, struct brw_sf_prog_data *prog_data, struct brw_vue_map *vue_map, unsigned *final_assembly_size) brw_compile_sf() argument
[all...]
H A Dbrw_clip_unfilled.c49 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in compute_tri_direction()
158 brw_varying_to_offset(&c->vue_map, in copy_bfc()
161 brw_varying_to_offset(&c->vue_map, in copy_bfc()
168 brw_varying_to_offset(&c->vue_map, in copy_bfc()
171 brw_varying_to_offset(&c->vue_map, in copy_bfc()
247 brw_varying_to_offset(&c->vue_map, in merge_edgeflags()
255 brw_varying_to_offset(&c->vue_map, in merge_edgeflags()
269 GLuint ndc_offset = brw_varying_to_offset(&c->vue_map, in apply_one_offset()
329 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_lines()
372 deref_1f(v0, brw_varying_to_offset(&c->vue_map, in emit_points()
[all...]
H A Dbrw_compiler.h1219 void brw_print_vue_map(FILE *fp, const struct brw_vue_map *vue_map,
1235 brw_varying_to_offset(const struct brw_vue_map *vue_map, unsigned varying) in brw_varying_to_offset() argument
1237 return brw_vue_slot_to_offset(vue_map->varying_to_slot[varying]); in brw_varying_to_offset()
1241 struct brw_vue_map *vue_map,
1246 void brw_compute_tess_vue_map(struct brw_vue_map *const vue_map,
1251 void brw_setup_vue_interpolation(const struct brw_vue_map *vue_map,
1295 struct brw_vue_map vue_map; member
1705 struct brw_vue_map *vue_map,
1721 struct brw_vue_map *vue_map,
1770 const struct brw_vue_map *vue_map; member
[all...]
H A Dbrw_compile_ff_gs.c69 struct brw_vue_map vue_map; member
457 unsigned char slot = c->vue_map.varying_to_slot[varying]; in gfx6_sol_program()
566 struct brw_vue_map *vue_map, in brw_compile_ff_gs_prog()
575 c.vue_map = *vue_map; in brw_compile_ff_gs_prog()
576 c.nr_regs = (c.vue_map.num_slots + 1)/2; in brw_compile_ff_gs_prog()
562 brw_compile_ff_gs_prog(struct brw_compiler *compiler, void *mem_ctx, const struct brw_ff_gs_prog_key *key, struct brw_ff_gs_prog_data *prog_data, struct brw_vue_map *vue_map, unsigned *final_assembly_size) brw_compile_ff_gs_prog() argument
H A Dbrw_fs_visitor.cpp768 const struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in emit_urb_writes() local
820 int last_slot = vue_map->num_slots - 1; in emit_urb_writes()
822 (vue_map->slot_to_varying[last_slot] == BRW_VARYING_SLOT_PAD || in emit_urb_writes()
823 outputs[vue_map->slot_to_varying[last_slot]].file == BAD_FILE)) { in emit_urb_writes()
828 for (slot = 0; slot < vue_map->num_slots; slot++) { in emit_urb_writes()
829 int varying = vue_map->slot_to_varying[slot]; in emit_urb_writes()
837 if ((vue_map->slots_valid & psiz_mask) == 0) { in emit_urb_writes()
846 if (vue_map->slots_valid & VARYING_BIT_PRIMITIVE_SHADING_RATE && in emit_urb_writes()
858 if (vue_map in emit_urb_writes()
[all...]
H A Dbrw_vec4_tcs.cpp378 brw_compute_tess_vue_map(&vue_prog_data->vue_map, in brw_compile_tcs()
384 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, MESA_SHADER_TESS_CTRL); in brw_compile_tcs()
H A Dbrw_nir.c107 const struct brw_vue_map *vue_map, in remap_patch_urb_offsets()
128 int vue_slot = vue_map->varying_to_slot[intrin->const_index[0]]; in remap_patch_urb_offsets()
136 vue_map->num_per_vertex_slots; in remap_patch_urb_offsets()
145 vue_map->num_per_vertex_slots)); in remap_patch_urb_offsets()
299 const struct brw_vue_map *vue_map) in brw_nir_lower_vue_inputs()
339 vue_slot = vue_map->varying_to_slot[varying]; in brw_nir_lower_vue_inputs()
351 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) in brw_nir_lower_tes_inputs() argument
369 remap_patch_urb_offsets(block, &b, vue_map, in brw_nir_lower_tes_inputs()
481 brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue_map, in brw_nir_lower_tcs_outputs() argument
501 remap_patch_urb_offsets(block, &b, vue_map, tes_primitive_mod in brw_nir_lower_tcs_outputs()
106 remap_patch_urb_offsets(nir_block *block, nir_builder *b, const struct brw_vue_map *vue_map, enum tess_primitive_mode tes_primitive_mode) remap_patch_urb_offsets() argument
298 brw_nir_lower_vue_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) brw_nir_lower_vue_inputs() argument
[all...]
H A Dbrw_clip_tri.c72 if (c->vue_map.num_slots % 2 && nr_verts > 0) { in brw_clip_tri_alloc_regs()
77 GLuint delta = brw_vue_slot_to_offset(c->vue_map.num_slots); in brw_clip_tri_alloc_regs()
266 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in brw_clip_tri()
268 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in brw_clip_tri()
534 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, in brw_clip_test()
H A Dbrw_clip.h99 struct brw_vue_map vue_map; member
H A Dbrw_nir.h109 const struct brw_vue_map *vue_map);
H A Dbrw_vec4_visitor.cpp834 ((prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) || in emit_psiz_and_flags()
843 if (prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ) { in emit_psiz_and_flags()
1044 for (; slot < prog_data->vue_map.num_slots; ++slot) { in emit_vertex()
1046 prog_data->vue_map.slot_to_varying[slot]); in emit_vertex()
1058 complete = slot >= prog_data->vue_map.num_slots; in emit_vertex()
H A Dbrw_clip_line.c131 GLuint hpos_offset = brw_varying_to_offset(&c->vue_map, VARYING_SLOT_POS); in clip_and_emit_line()
133 ? brw_varying_to_offset(&c->vue_map, VARYING_SLOT_CLIP_DIST0) in clip_and_emit_line()
H A Dbrw_shader.cpp1348 brw_compute_vue_map(devinfo, &prog_data->base.vue_map, in brw_compile_tes()
1352 unsigned output_size_bytes = prog_data->base.vue_map.num_slots * 4 * 4; in brw_compile_tes()
1412 brw_print_vue_map(stderr, &prog_data->base.vue_map, in brw_compile_tes()
/third_party/mesa3d/src/intel/blorp/
H A Dblorp.c281 &vs_prog_data->base.vue_map, in blorp_compile_vs()
388 struct brw_vue_map vue_map; in blorp_ensure_sf_program() local
389 brw_compute_vue_map(blorp->compiler->devinfo, &vue_map, slots_valid, false, 1); in blorp_ensure_sf_program()
393 &prog_data_tmp, &vue_map, &program_size); in blorp_ensure_sf_program()
/third_party/mesa3d/src/gallium/drivers/iris/
H A Diris_program.c1348 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_vs()
1377 &vue_prog_data->vue_map); in iris_compile_vs()
1745 &vue_prog_data->vue_map); in iris_compile_tes()
1854 &vue_prog_data->vue_map, nir->info.outputs_written, in iris_compile_gs()
1883 &vue_prog_data->vue_map); in iris_compile_gs()
1953 struct brw_vue_map *vue_map) in iris_compile_fs()
2001 .vue_map = vue_map, in iris_compile_fs()
2049 &brw_vue_prog_data(ice->shaders.last_vue_shader->prog_data)->vue_map; in iris_update_compiled_fs()
2094 struct brw_vue_map *vue_map in update_last_vue_map() local
1948 iris_compile_fs(struct iris_screen *screen, struct u_upload_mgr *uploader, struct util_debug_callback *dbg, struct iris_uncompiled_shader *ish, struct iris_compiled_shader *shader, struct brw_vue_map *vue_map) iris_compile_fs() argument
[all...]
H A Diris_disk_cache.c224 &vue_prog_data->vue_map); in iris_disk_cache_retrieve()
H A Diris_screen.h120 const struct brw_vue_map *vue_map);
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dcrocus_program.c1232 &vue_prog_data->vue_map, outputs_written, in crocus_compile_vs()
1267 &vue_prog_data->vue_map); in crocus_compile_vs()
1638 &vue_prog_data->vue_map); in crocus_compile_tes()
1748 &vue_prog_data->vue_map, nir->info.outputs_written, in crocus_compile_gs()
1779 &vue_prog_data->vue_map); in crocus_compile_gs()
1846 struct brw_vue_map *vue_map) in crocus_compile_fs()
1895 .vue_map = vue_map, in crocus_compile_fs()
1995 struct brw_vue_map *vue_map = &vue_prog_data->vue_map; in update_last_vue_map() local
1843 crocus_compile_fs(struct crocus_context *ice, struct crocus_uncompiled_shader *ish, const struct brw_wm_prog_key *key, struct brw_vue_map *vue_map) crocus_compile_fs() argument
2906 struct brw_vue_map vue_map; crocus_create_fs_state() local
[all...]
H A Dcrocus_disk_cache.c198 &vue_prog_data->vue_map); in crocus_disk_cache_retrieve()
/third_party/mesa3d/src/intel/vulkan/
H A DgenX_pipeline.c436 &anv_pipeline_get_last_vue_prog_data(pipeline)->vue_map; in emit_3dstate_sbe()
785 point_from_shader = last_vue_prog_data->vue_map.slots_valid & VARYING_BIT_PSIZ; in emit_rs_state()
1212 if (vp && (last->vue_map.slots_valid & VARYING_BIT_VIEWPORT)) { in emit_3dstate_clip()
1226 !(last->vue_map.slots_valid & VARYING_BIT_LAYER); in emit_3dstate_clip()
1269 const struct brw_vue_map *vue_map = &prog_data->vue_map; in emit_3dstate_streamout() local
1331 const int slot = vue_map->varying_to_slot[varying]; in emit_3dstate_streamout()
1445 (prog_data->vue_map.num_slots + 1) / 2 - urb_entry_read_offset; in emit_3dstate_streamout()

Completed in 33 milliseconds

12