/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen6_wm_state.c | 53 if (brw->wm.prog_data->nr_params != 0) { in gen6_upload_wm_push_constants() 58 brw->wm.prog_data->nr_params * in gen6_upload_wm_push_constants() 62 for (i = 0; i < brw->wm.prog_data->nr_params; i++) { in gen6_upload_wm_push_constants() 63 constants[i] = *brw->wm.prog_data->param[i]; in gen6_upload_wm_push_constants() 68 for (i = 0; i < brw->wm.prog_data->nr_params; i++) { in gen6_upload_wm_push_constants() 70 printf("g%d: ", brw->wm.prog_data->first_curbe_grf + i / 8); in gen6_upload_wm_push_constants() 105 if (brw->wm.prog_data->nr_params == 0) { in upload_wm_state() 123 ALIGN(brw->wm.prog_data->nr_params, in upload_wm_state() 124 brw->wm.prog_data->dispatch_width) / 8 - 1); in upload_wm_state() 146 dw4 |= (brw->wm.prog_data->first_curbe_grf << in upload_wm_state() [all …]
|
D | brw_vs.c | 65 struct brw_vue_map *vue_map = &c->prog_data.vue_map; in brw_compute_vue_map() 66 GLbitfield64 outputs_written = c->prog_data.outputs_written; in brw_compute_vue_map() 213 c.prog_data.outputs_written = vp->program.Base.OutputsWritten; in do_vs_prog() 214 c.prog_data.inputs_read = vp->program.Base.InputsRead; in do_vs_prog() 217 c.prog_data.outputs_written |= BITFIELD64_BIT(VERT_RESULT_EDGE); in do_vs_prog() 218 c.prog_data.inputs_read |= VERT_BIT_EDGEFLAG; in do_vs_prog() 229 c.prog_data.outputs_written |= BITFIELD64_BIT(VERT_RESULT_TEX0 + i); in do_vs_prog() 250 if (c.prog_data.nr_pull_params) in do_vs_prog() 251 c.prog_data.num_surfaces = 1; in do_vs_prog() 253 c.prog_data.num_surfaces = SURF_INDEX_VS_TEXTURE(BRW_MAX_TEX_UNIT); in do_vs_prog() [all …]
|
D | gen7_wm_state.c | 68 dw1 |= brw->wm.prog_data->barycentric_interp_modes << in upload_wm_state() 134 if (brw->wm.prog_data->nr_params == 0) { in upload_ps_state() 149 OUT_BATCH(ALIGN(brw->wm.prog_data->nr_params, in upload_ps_state() 150 brw->wm.prog_data->dispatch_width) / 8); in upload_ps_state() 181 if (brw->wm.prog_data->nr_params > 0) in upload_ps_state() 189 if (brw->wm.prog_data->dual_src_blend && in upload_ps_state() 199 if (brw->wm.prog_data->dispatch_width == 8) { in upload_ps_state() 201 if (brw->wm.prog_data->prog_offset_16) in upload_ps_state() 207 dw5 |= (brw->wm.prog_data->first_curbe_grf << in upload_ps_state() 209 dw5 |= (brw->wm.prog_data->first_curbe_grf_16 << in upload_ps_state() [all …]
|
D | brw_wm_state.c | 85 if (brw->wm.prog_data->prog_offset_16) { in brw_upload_wm_unit() 90 assert(brw->wm.prog_data->first_curbe_grf == in brw_upload_wm_unit() 91 brw->wm.prog_data->first_curbe_grf_16); in brw_upload_wm_unit() 95 wm->thread0.grf_reg_count = brw->wm.prog_data->reg_blocks; in brw_upload_wm_unit() 96 wm->wm9.grf_reg_count_2 = brw->wm.prog_data->reg_blocks_16; in brw_upload_wm_unit() 110 brw->wm.prog_data->prog_offset_16 + in brw_upload_wm_unit() 118 if (brw->wm.prog_data->total_scratch != 0) { in brw_upload_wm_unit() 122 ffs(brw->wm.prog_data->total_scratch) - 11; in brw_upload_wm_unit() 128 wm->thread3.dispatch_grf_start_reg = brw->wm.prog_data->first_curbe_grf; in brw_upload_wm_unit() 129 wm->thread3.urb_entry_read_length = brw->wm.prog_data->urb_read_length; in brw_upload_wm_unit() [all …]
|
D | gen6_vs_state.c | 44 unsigned int nr_params = brw->vs.prog_data->nr_params / 4; in gen6_upload_vs_push_constants() 57 if (brw->vs.prog_data->nr_params == 0 && !ctx->Transform.ClipPlanesEnabled) { in gen6_upload_vs_push_constants() 69 if (brw->vs.prog_data->uses_new_param_layout) { in gen6_upload_vs_push_constants() 70 for (i = 0; i < brw->vs.prog_data->nr_params; i++) { in gen6_upload_vs_push_constants() 71 *param = *brw->vs.prog_data->param[i]; in gen6_upload_vs_push_constants() 74 params_uploaded += brw->vs.prog_data->nr_params / 4; in gen6_upload_vs_push_constants() 182 if (brw->vs.prog_data->total_scratch) { in upload_vs_state() 185 ffs(brw->vs.prog_data->total_scratch) - 11); in upload_vs_state() 191 (brw->vs.prog_data->urb_read_length << GEN6_VS_URB_READ_LENGTH_SHIFT) | in upload_vs_state()
|
D | brw_sf.c | 68 c.vue_map = brw->vs.prog_data->vue_map; in compile_sf_prog() 83 c.prog_data.urb_read_length = c.nr_attr_regs; in compile_sf_prog() 84 c.prog_data.urb_entry_size = c.nr_setup_regs * 2; in compile_sf_prog() 128 &c.prog_data, sizeof(c.prog_data), in compile_sf_prog() 129 &brw->sf.prog_offset, &brw->sf.prog_data); in compile_sf_prog() 148 key.attrs = brw->vs.prog_data->outputs_written; in brw_upload_sf_prog() 208 &brw->sf.prog_offset, &brw->sf.prog_data)) { in brw_upload_sf_prog()
|
D | brw_vs_state.c | 51 vs->thread0.grf_reg_count = ALIGN(brw->vs.prog_data->total_grf, 16) / 16 - 1; in brw_upload_vs_unit() 76 if (brw->vs.prog_data->total_scratch != 0) { in brw_upload_vs_unit() 80 ffs(brw->vs.prog_data->total_scratch) - 11; in brw_upload_vs_unit() 86 vs->thread3.urb_entry_read_length = brw->vs.prog_data->urb_read_length; in brw_upload_vs_unit() 87 vs->thread3.const_urb_entry_read_length = brw->vs.prog_data->curb_read_length; in brw_upload_vs_unit() 92 if (ctx->Transform.ClipPlanesEnabled && !brw->vs.prog_data->uses_new_param_layout) { in brw_upload_vs_unit() 157 if (brw->vs.prog_data->total_scratch != 0) { in brw_upload_vs_unit()
|
D | brw_gs.c | 59 c.vue_map = brw->vs.prog_data->vue_map; in compile_gs_prog() 148 &c.prog_data, sizeof(c.prog_data), in compile_gs_prog() 149 &brw->gs.prog_offset, &brw->gs.prog_data); in compile_gs_prog() 169 key->attrs = brw->vs.prog_data->outputs_written; in populate_key() 184 key->userclip_active = brw->vs.prog_data->userclip; in populate_key() 254 &brw->gs.prog_offset, &brw->gs.prog_data)) { in brw_upload_gs_prog()
|
D | brw_clip.c | 72 c.vue_map = brw->vs.prog_data->vue_map; in compile_clip_prog() 81 c.prog_data.clip_mode = c.key.clip_mode; /* XXX */ in compile_clip_prog() 128 &c.prog_data, sizeof(c.prog_data), in compile_clip_prog() 129 &brw->clip.prog_offset, &brw->clip.prog_data); in compile_clip_prog() 149 key.attrs = brw->vs.prog_data->outputs_written; in brw_upload_clip_prog() 249 &brw->clip.prog_offset, &brw->clip.prog_data)) { in brw_upload_clip_prog()
|
D | brw_fs.cpp | 529 unsigned int param = c->prog_data.nr_params++; in setup_uniform_values() 531 assert(param < ARRAY_SIZE(c->prog_data.param)); in setup_uniform_values() 590 this->param_index[c->prog_data.nr_params] = index; in setup_builtin_uniform_values() 591 this->param_offset[c->prog_data.nr_params] = swiz; in setup_builtin_uniform_values() 592 c->prog_data.nr_params++; in setup_builtin_uniform_values() 904 for (unsigned int i = 0; i < c->prog_data.nr_params; i++) { in setup_paramvalues_refs() 905 c->prog_data.param[i] = in setup_paramvalues_refs() 914 c->prog_data.curb_read_length = ALIGN(c->prog_data.nr_params, 8) / 8; in assign_curb_setup() 916 c->prog_data.first_curbe_grf = c->nr_payload_regs; in assign_curb_setup() 918 c->prog_data.first_curbe_grf_16 = c->nr_payload_regs; in assign_curb_setup() [all …]
|
D | brw_curbe.c | 60 const GLuint nr_fp_regs = (brw->wm.prog_data->nr_params + 15) / 16; in calculate_curbe_offsets() 63 const GLuint nr_vp_regs = (brw->vs.prog_data->nr_params + 15) / 16; in calculate_curbe_offsets() 207 for (i = 0; i < brw->wm.prog_data->nr_params; i++) { in brw_upload_constant_buffer() 208 buf[offset + i] = *brw->wm.prog_data->param[i]; in brw_upload_constant_buffer() 252 GLuint nr = brw->vs.prog_data->nr_params / 4; in brw_upload_constant_buffer() 254 if (brw->vs.prog_data->uses_new_param_layout) { in brw_upload_constant_buffer() 255 for (i = 0; i < brw->vs.prog_data->nr_params; i++) { in brw_upload_constant_buffer() 256 buf[offset + i] = *brw->vs.prog_data->param[i]; in brw_upload_constant_buffer()
|
D | brw_vs_surface_state.c | 64 if (!brw->vs.prog_data->nr_pull_params) { in brw_upload_vs_pull_constants() 77 brw->vs.prog_data->nr_pull_params * 4, in brw_upload_vs_pull_constants() 81 for (i = 0; i < brw->vs.prog_data->nr_pull_params; i++) { in brw_upload_vs_pull_constants() 83 brw->vs.prog_data->pull_param[i], in brw_upload_vs_pull_constants() 151 if (brw->vs.prog_data->num_surfaces == 0) { in brw_vs_upload_binding_table()
|
D | brw_clip_state.c | 48 clip->thread0.grf_reg_count = (ALIGN(brw->clip.prog_data->total_grf, 16) / in brw_upload_clip_unit() 60 clip->thread3.urb_entry_read_length = brw->clip.prog_data->urb_read_length; in brw_upload_clip_unit() 62 brw->clip.prog_data->curb_read_length; in brw_upload_clip_unit() 104 clip->clip5.clip_mode = brw->clip.prog_data->clip_mode; in brw_upload_clip_unit()
|
D | brw_wm.c | 120 c->prog_data.reg_blocks = brw_register_blocks(c->max_wm_grf); in brw_wm_non_glsl_emit() 198 unsigned barycentric_interp_modes = c->prog_data.barycentric_interp_modes; in brw_wm_payload_setup() 300 c->prog_data.barycentric_interp_modes = in do_wm_prog() 319 c->prog_data.dispatch_width = 16; in do_wm_prog() 328 c->prog_data.total_scratch = brw_get_scratch_size(c->last_scratch); in do_wm_prog() 331 c->prog_data.total_scratch * brw->max_wm_threads); in do_wm_prog() 344 &c->prog_data, sizeof(c->prog_data), in do_wm_prog() 345 &brw->wm.prog_offset, &brw->wm.prog_data); in do_wm_prog() 612 key->vp_outputs_written = brw->vs.prog_data->outputs_written; in brw_wm_populate_key() 632 &brw->wm.prog_offset, &brw->wm.prog_data)) { in brw_upload_wm_prog()
|
D | gen7_vs_state.c | 92 if (brw->vs.prog_data->total_scratch) { in upload_vs_state() 95 ffs(brw->vs.prog_data->total_scratch) - 11); in upload_vs_state() 101 (brw->vs.prog_data->urb_read_length << GEN6_VS_URB_READ_LENGTH_SHIFT) | in upload_vs_state()
|
D | brw_vec4_reg_allocate.cpp | 79 prog_data->total_grf = next; in reg_allocate_trivial() 90 if (prog_data->total_grf > max_grf) { in reg_allocate_trivial() 92 prog_data->total_grf, max_grf); in reg_allocate_trivial() 224 prog_data->total_grf = first_assigned_grf; in reg_allocate() 229 prog_data->total_grf = MAX2(prog_data->total_grf, in reg_allocate()
|
D | gen7_blorp.cpp | 415 brw_blorp_prog_data *prog_data) in gen7_blorp_emit_wm_config() argument 448 if (prog_data && prog_data->persample_msaa_dispatch) in gen7_blorp_emit_wm_config() 480 brw_blorp_prog_data *prog_data) in gen7_blorp_emit_ps_config() argument 503 dw5 |= prog_data->first_curbe_grf << GEN7_PS_DISPATCH_START_GRF_SHIFT_0; in gen7_blorp_emit_ps_config() 734 brw_blorp_prog_data *prog_data = NULL; in gen7_blorp_exec() local 742 uint32_t prog_offset = params->get_wm_prog(brw, &prog_data); in gen7_blorp_exec() 786 gen7_blorp_emit_wm_config(brw, params, prog_data); in gen7_blorp_exec() 793 gen7_blorp_emit_ps_config(brw, params, prog_offset, prog_data); in gen7_blorp_exec()
|
D | brw_vs_emit.c | 84 if (++c->last_tmp > c->prog_data.total_grf) in get_tmp() 85 c->prog_data.total_grf = c->last_tmp; in get_tmp() 293 c->prog_data.pull_param[i] = ¶ms->ParameterValues[i / 4][i % 4].f; in brw_vs_alloc_regs() 295 c->prog_data.nr_pull_params = i; in brw_vs_alloc_regs() 304 c->prog_data.curb_read_length = reg - 1; in brw_vs_alloc_regs() 305 c->prog_data.nr_params = constant * 4; in brw_vs_alloc_regs() 307 if (intel->gen < 6 && c->prog_data.nr_params == 0) in brw_vs_alloc_regs() 308 c->prog_data.nr_params = 4; in brw_vs_alloc_regs() 314 if (c->prog_data.inputs_read & BITFIELD64_BIT(i)) { in brw_vs_alloc_regs() 332 for (slot = 0; slot < c->prog_data.vue_map.num_slots; slot++) { in brw_vs_alloc_regs() [all …]
|
D | brw_vec4.cpp | 480 c->prog_data.param[dst * 4 + new_chan[src] + j] = in pack_uniform_registers() 481 c->prog_data.param[src * 4 + j]; in pack_uniform_registers() 632 const float **values = &prog_data->param[i]; in move_push_constants_to_pull_constants() 637 for (unsigned int j = 0; j < prog_data->nr_pull_params; j += 4) { in move_push_constants_to_pull_constants() 641 if (prog_data->pull_param[j + matches] != values[matches]) in move_push_constants_to_pull_constants() 652 assert(prog_data->nr_pull_params % 4 == 0); in move_push_constants_to_pull_constants() 653 pull_constant_loc[i / 4] = prog_data->nr_pull_params / 4; in move_push_constants_to_pull_constants() 656 prog_data->pull_param[prog_data->nr_pull_params++] = values[j]; in move_push_constants_to_pull_constants()
|
D | gen6_gs_state.c | 54 (brw->gs.prog_data->urb_read_length << GEN6_GS_URB_READ_LENGTH_SHIFT)); in upload_gs_state() 61 (brw->gs.prog_data->svbi_postincrement_value << in upload_gs_state()
|
D | brw_blorp.h | 189 brw_blorp_prog_data **prog_data) const = 0; 227 brw_blorp_prog_data **prog_data) const; 311 brw_blorp_prog_data **prog_data) const;
|
D | brw_gs_state.c | 51 gs->thread0.grf_reg_count = (ALIGN(brw->gs.prog_data->total_grf, 16) / in brw_upload_gs_unit() 68 gs->thread3.urb_entry_read_length = brw->gs.prog_data->urb_read_length; in brw_upload_gs_unit()
|
D | brw_vec4_emit.cpp | 43 if (prog_data->inputs_read & BITFIELD64_BIT(i)) { in setup_attributes() 53 if (prog_data->uses_vertexid) { in setup_attributes() 97 prog_data->urb_read_length = (nr_attributes + 1) / 2; in setup_attributes() 99 unsigned vue_entries = MAX2(nr_attributes, c->prog_data.vue_map.num_slots); in setup_attributes() 102 c->prog_data.urb_entry_size = ALIGN(vue_entries, 8) / 8; in setup_attributes() 104 c->prog_data.urb_entry_size = ALIGN(vue_entries, 4) / 4; in setup_attributes() 121 c->prog_data.param[slot] = &zero; in setup_uniforms() 130 c->prog_data.nr_params = this->uniforms * 4; in setup_uniforms() 132 c->prog_data.curb_read_length = reg - 1; in setup_uniforms() 133 c->prog_data.uses_new_param_layout = true; in setup_uniforms()
|
D | brw_clip_line.c | 59 c->prog_data.curb_read_length = (6 + c->key.nr_userclip + 1) / 2; in brw_clip_line_alloc_regs() 62 c->prog_data.curb_read_length = 0; in brw_clip_line_alloc_regs() 96 c->prog_data.urb_read_length = c->nr_regs; /* ? */ in brw_clip_line_alloc_regs() 97 c->prog_data.total_grf = i; in brw_clip_line_alloc_regs()
|
D | gen6_blorp.cpp | 709 brw_blorp_prog_data *prog_data) in gen6_blorp_emit_wm_config() argument 748 dw4 |= prog_data->first_curbe_grf << GEN6_WM_DISPATCH_START_GRF_SHIFT_0; in gen6_blorp_emit_wm_config() 756 if (prog_data && prog_data->persample_msaa_dispatch) in gen6_blorp_emit_wm_config() 1038 brw_blorp_prog_data *prog_data = NULL; in gen6_blorp_exec() local 1045 uint32_t prog_offset = params->get_wm_prog(brw, &prog_data); in gen6_blorp_exec() 1084 gen6_blorp_emit_wm_config(brw, params, prog_offset, prog_data); in gen6_blorp_exec()
|