Home
last modified time | relevance | path

Searched refs:stage_state (Results 1 – 15 of 15) sorted by relevance

/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen6_constant_state.c43 const struct brw_stage_state *stage_state, in brw_param_value() argument
85 assert(offset < ARRAY_SIZE(stage_state->image_param)); in brw_param_value()
86 return ((uint32_t *)&stage_state->image_param[idx])[offset]; in brw_param_value()
98 const struct brw_stage_state *stage_state, in brw_populate_constant_data() argument
105 dst[i] = brw_param_value(brw, prog, stage_state, param[i]); in brw_populate_constant_data()
128 struct brw_stage_state *stage_state) in gen6_upload_push_constants() argument
134 (stage_state->stage != MESA_SHADER_TESS_CTRL || in gen6_upload_push_constants()
138 _mesa_shader_write_subroutine_indices(ctx, stage_state->stage); in gen6_upload_push_constants()
141 stage_state->push_const_size = 0; in gen6_upload_push_constants()
155 &stage_state->push_const_bo, in gen6_upload_push_constants()
[all …]
Dbrw_binding_tables.c57 struct brw_stage_state *stage_state) in brw_upload_binding_table() argument
63 if (stage_state->bind_bo_offset == 0 && devinfo->gen < 9) in brw_upload_binding_table()
66 stage_state->bind_bo_offset = 0; in brw_upload_binding_table()
71 brw, &stage_state->surf_offset[ in brw_upload_binding_table()
78 32, &stage_state->bind_bo_offset); in brw_upload_binding_table()
81 memcpy(bind, stage_state->surf_offset, in brw_upload_binding_table()
93 OUT_BATCH(stage_state->bind_bo_offset); in brw_upload_binding_table()
Dbrw_disk_cache.c194 struct brw_stage_state *stage_state; in read_and_upload() local
200 stage_state = &brw->vs.base; in read_and_upload()
205 stage_state = &brw->tcs.base; in read_and_upload()
210 stage_state = &brw->tes.base; in read_and_upload()
215 stage_state = &brw->gs.base; in read_and_upload()
220 stage_state = &brw->wm.base; in read_and_upload()
225 stage_state = &brw->cs.base; in read_and_upload()
231 brw_alloc_stage_scratch(brw, stage_state, prog_data->total_scratch); in read_and_upload()
235 brw_prog_data_size(stage), &stage_state->prog_offset, in read_and_upload()
236 &stage_state->prog_data); in read_and_upload()
DgenX_state_upload.c1776 UNUSED struct brw_stage_state *stage_state = &brw->wm.base; local
1792 wmcp.PointertoPSConstantBuffer0 = stage_state->push_const_offset;
1793 wmcp.PSConstantBuffer0ReadLength = stage_state->push_const_size - 1;
1807 brw_state_emit(brw, GENX(WM_STATE), 64, &stage_state->state_offset, wm) {
1820 if (stage_state->sampler_count)
1822 ro_bo(brw->batch.state.bo, stage_state->sampler_offset);
1862 0 : DIV_ROUND_UP(stage_state->sampler_count, 4);
1873 wm.KernelStartPointer0 = KSP(brw, stage_state->prog_offset);
1879 KSP(brw, stage_state->prog_offset + wm_prog_data->prog_offset_2);
1912 wm.ScratchSpaceBasePointer = rw_bo(stage_state->scratch_bo, 0);
[all …]
Dbrw_gs.c83 struct brw_stage_state *stage_state = &brw->gs.base; in brw_codegen_gs_prog() local
140 brw_alloc_stage_scratch(brw, stage_state, in brw_codegen_gs_prog()
150 &stage_state->prog_offset, &brw->gs.base.prog_data); in brw_codegen_gs_prog()
184 struct brw_stage_state *stage_state = &brw->gs.base; in brw_upload_gs_prog() local
197 &stage_state->prog_offset, in brw_upload_gs_prog()
Dbrw_state.h111 struct brw_stage_state *stage_state);
240 const struct brw_stage_state *stage_state,
248 struct brw_stage_state *stage_state,
254 struct brw_stage_state *stage_state);
259 const struct brw_stage_state *stage_state,
Dbrw_tes.c72 struct brw_stage_state *stage_state = &brw->tes.base; in brw_codegen_tes_prog() local
131 brw_alloc_stage_scratch(brw, stage_state, in brw_codegen_tes_prog()
141 &stage_state->prog_offset, &brw->tes.base.prog_data); in brw_codegen_tes_prog()
185 struct brw_stage_state *stage_state = &brw->tes.base; in brw_upload_tes_prog() local
200 &stage_state->prog_offset, in brw_upload_tes_prog()
Dbrw_tes_surface_state.c41 struct brw_stage_state *stage_state = &brw->tes.base; in brw_upload_tes_pull_constants() local
56 stage_state, prog_data); in brw_upload_tes_pull_constants()
Dbrw_vs_surface_state.c50 struct brw_stage_state *stage_state = &brw->vs.base; in brw_upload_vs_pull_constants() local
62 stage_state, prog_data); in brw_upload_vs_pull_constants()
Dbrw_tcs_surface_state.c41 struct brw_stage_state *stage_state = &brw->tcs.base; in brw_upload_tcs_pull_constants() local
56 stage_state, prog_data); in brw_upload_tcs_pull_constants()
Dbrw_gs_surface_state.c41 struct brw_stage_state *stage_state = &brw->gs.base; in brw_upload_gs_pull_constants() local
56 stage_state, prog_data); in brw_upload_gs_pull_constants()
Dbrw_program.c357 struct brw_stage_state *stage_state, in brw_alloc_stage_scratch() argument
360 if (stage_state->per_thread_scratch >= per_thread_size) in brw_alloc_stage_scratch()
363 stage_state->per_thread_scratch = per_thread_size; in brw_alloc_stage_scratch()
365 if (stage_state->scratch_bo) in brw_alloc_stage_scratch()
366 brw_bo_unreference(stage_state->scratch_bo); in brw_alloc_stage_scratch()
370 switch(stage_state->stage) { in brw_alloc_stage_scratch()
440 stage_state->scratch_bo = in brw_alloc_stage_scratch()
Dbrw_tcs.c160 struct brw_stage_state *stage_state = &brw->tcs.base; in brw_codegen_tcs_prog() local
261 brw_alloc_stage_scratch(brw, stage_state, in brw_codegen_tcs_prog()
271 &stage_state->prog_offset, &brw->tcs.base.prog_data); in brw_codegen_tcs_prog()
323 struct brw_stage_state *stage_state = &brw->tcs.base; in brw_upload_tcs_prog() local
342 &stage_state->prog_offset, in brw_upload_tcs_prog()
Dbrw_wm_surface_state.c746 struct brw_stage_state *stage_state = &brw->wm.base; in brw_upload_wm_pull_constants() local
757 stage_state, prog_data); in brw_upload_wm_pull_constants()
1086 struct brw_stage_state *stage_state, in update_stage_texture_surfaces() argument
1094 uint32_t *surf_offset = stage_state->surf_offset; in update_stage_texture_surfaces()
1098 surf_offset += stage_state->prog_data->binding_table.gather_texture_start; in update_stage_texture_surfaces()
1100 surf_offset += stage_state->prog_data->binding_table.plane_start[plane]; in update_stage_texture_surfaces()
1276 struct brw_stage_state *stage_state, in brw_upload_ubo_surfaces() argument
1287 &stage_state->surf_offset[prog_data->binding_table.ubo_start]; in brw_upload_ubo_surfaces()
1297 &stage_state->surf_offset[prog_data->binding_table.ssbo_start]; in brw_upload_ubo_surfaces()
1315 stage_state->push_constants_dirty = true; in brw_upload_ubo_surfaces()
[all …]
Dbrw_context.h1430 struct brw_stage_state *stage_state,
1478 struct brw_stage_state *stage_state,
1482 struct brw_stage_state *stage_state,
1718 struct brw_stage_state *stage_state);