Home
last modified time | relevance | path

Searched refs:prog_data (Results 1 – 25 of 108) sorted by relevance

12345

/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
Dgen6_wm_state.c53 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 …]
Dgen7_wm_state.c68 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 …]
Dbrw_vs.c65 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 …]
Dbrw_wm_state.c85 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 …]
Dgen6_vs_state.c44 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()
Dbrw_vs_state.c51 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()
Dbrw_sf.c68 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()
Dbrw_gs.c59 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()
Dbrw_clip.c72 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()
Dbrw_vs_surface_state.c64 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()
Dbrw_curbe.c60 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()
Dbrw_fs.cpp529 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 …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen6_wm_state.c53 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 …]
Dgen7_wm_state.c68 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 …]
Dbrw_vs.c65 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 …]
Dbrw_wm_state.c85 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 …]
Dgen6_vs_state.c44 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()
Dbrw_vs_state.c51 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()
Dbrw_sf.c68 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()
Dbrw_gs.c59 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()
Dbrw_clip.c72 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()
Dbrw_vs_surface_state.c64 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()
Dbrw_curbe.c60 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()
Dbrw_fs.cpp529 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 …]
Dbrw_clip_state.c48 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()

12345