/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen7_cs_state.c | 46 struct brw_stage_state *stage_state = &brw->cs.base; in brw_upload_cs_state() local 47 struct brw_stage_prog_data *prog_data = stage_state->prog_data; in brw_upload_cs_state() 53 brw, &stage_state->surf_offset[ in brw_upload_cs_state() 61 32, &stage_state->bind_bo_offset); in brw_upload_cs_state() 72 OUT_RELOC64(stage_state->scratch_bo, in brw_upload_cs_state() 74 ffs(stage_state->per_thread_scratch) - 11); in brw_upload_cs_state() 79 OUT_RELOC(stage_state->scratch_bo, in brw_upload_cs_state() 81 ffs(stage_state->per_thread_scratch) - 12); in brw_upload_cs_state() 86 OUT_RELOC(stage_state->scratch_bo, in brw_upload_cs_state() 88 stage_state->per_thread_scratch / 1024 - 1); in brw_upload_cs_state() [all …]
|
D | gen6_constant_state.c | 32 const struct brw_stage_state *stage_state, in gen7_upload_constant_state() argument 38 active = active && stage_state->push_const_size != 0; in gen7_upload_constant_state() 57 OUT_BATCH(stage_state->push_const_size); in gen7_upload_constant_state() 59 OUT_BATCH(active ? stage_state->push_const_size : 0); in gen7_upload_constant_state() 74 stage_state->push_const_offset); in gen7_upload_constant_state() 78 OUT_BATCH(active ? (stage_state->push_const_offset | mocs) : 0); in gen7_upload_constant_state() 87 OUT_BATCH(active ? (stage_state->push_const_offset | mocs) : 0); in gen7_upload_constant_state() 122 struct brw_stage_state *stage_state, in gen6_upload_push_constants() argument 128 stage_state->push_const_size = 0; in gen6_upload_push_constants() 142 32, &stage_state->push_const_offset); in gen6_upload_push_constants() [all …]
|
D | brw_vs_state.c | 43 struct brw_stage_state *stage_state = &brw->vs.base; in brw_upload_vs_unit() local 44 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in brw_upload_vs_unit() 46 brw_vue_prog_data(stage_state->prog_data); in brw_upload_vs_unit() 51 sizeof(*vs), 32, &stage_state->state_offset); in brw_upload_vs_unit() 58 stage_state->state_offset + in brw_upload_vs_unit() 60 stage_state->prog_offset + in brw_upload_vs_unit() 87 stage_state->scratch_bo->offset64 >> 10; /* reloc */ in brw_upload_vs_unit() 89 ffs(stage_state->per_thread_scratch) - 11; in brw_upload_vs_unit() 146 vs->vs5.sampler_count = (stage_state->sampler_count + 3) / 4; in brw_upload_vs_unit() 159 if (stage_state->sampler_count) { in brw_upload_vs_unit() [all …]
|
D | gen6_vs_state.c | 40 struct brw_stage_state *stage_state = &brw->vs.base; in gen6_upload_vs_push_constants() local 48 gen6_upload_push_constants(brw, &vp->program, prog_data, stage_state, in gen6_upload_vs_push_constants() 55 gen7_upload_constant_state(brw, stage_state, true /* active */, in gen6_upload_vs_push_constants() 77 const struct brw_stage_state *stage_state = &brw->vs.base; in upload_vs_state() local 78 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in upload_vs_state() 80 brw_vue_prog_data(stage_state->prog_data); in upload_vs_state() 95 if (stage_state->push_const_size == 0) { in upload_vs_state() 112 OUT_BATCH(stage_state->push_const_offset + in upload_vs_state() 113 stage_state->push_const_size - 1); in upload_vs_state() 125 OUT_BATCH(stage_state->prog_offset); in upload_vs_state() [all …]
|
D | gen7_ds_state.c | 33 struct brw_stage_state *stage_state = &brw->tes.base; in gen7_upload_tes_push_constants() local 41 gen6_upload_push_constants(brw, &tep->program, prog_data, stage_state, in gen7_upload_tes_push_constants() 45 gen7_upload_constant_state(brw, stage_state, tep, _3DSTATE_CONSTANT_DS); in gen7_upload_tes_push_constants() 64 const struct brw_stage_state *stage_state = &brw->tes.base; in gen7_upload_ds_state() local 69 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in gen7_upload_ds_state() 71 brw_vue_prog_data(stage_state->prog_data); in gen7_upload_ds_state() 73 brw_tes_prog_data(stage_state->prog_data); in gen7_upload_ds_state() 81 OUT_BATCH(stage_state->prog_offset); in gen7_upload_ds_state() 82 OUT_BATCH(SET_FIELD(DIV_ROUND_UP(stage_state->sampler_count, 4), in gen7_upload_ds_state() 87 OUT_RELOC(stage_state->scratch_bo, in gen7_upload_ds_state() [all …]
|
D | gen6_gs_state.c | 37 struct brw_stage_state *stage_state = &brw->gs.base; in gen6_upload_gs_push_constants() local 47 gen6_upload_push_constants(brw, &gp->program, prog_data, stage_state, in gen6_upload_gs_push_constants() 52 gen7_upload_constant_state(brw, stage_state, gp, _3DSTATE_CONSTANT_GS); in gen6_upload_gs_push_constants() 99 const struct brw_stage_state *stage_state = &brw->gs.base; in upload_gs_state() local 100 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in upload_gs_state() 102 brw_vue_prog_data(stage_state->prog_data); in upload_gs_state() 104 if (!active || stage_state->push_const_size == 0) { in upload_gs_state() 121 OUT_BATCH(stage_state->push_const_offset + in upload_gs_state() 122 stage_state->push_const_size - 1); in upload_gs_state() 132 OUT_BATCH(stage_state->prog_offset); in upload_gs_state() [all …]
|
D | gen7_hs_state.c | 33 struct brw_stage_state *stage_state = &brw->tcs.base; in gen7_upload_tcs_push_constants() local 43 gen6_upload_push_constants(brw, &tcp->program, prog_data, stage_state, in gen7_upload_tcs_push_constants() 47 gen7_upload_constant_state(brw, stage_state, active, _3DSTATE_CONSTANT_HS); in gen7_upload_tcs_push_constants() 67 const struct brw_stage_state *stage_state = &brw->tcs.base; in gen7_upload_hs_state() local 71 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in gen7_upload_hs_state() 73 brw_tcs_prog_data(stage_state->prog_data); in gen7_upload_hs_state() 78 OUT_BATCH(SET_FIELD(DIV_ROUND_UP(stage_state->sampler_count, 4), in gen7_upload_hs_state() 87 OUT_BATCH(stage_state->prog_offset); in gen7_upload_hs_state() 89 OUT_RELOC(stage_state->scratch_bo, in gen7_upload_hs_state() 91 ffs(stage_state->per_thread_scratch) - 11); in gen7_upload_hs_state()
|
D | gen8_ds_state.c | 33 const struct brw_stage_state *stage_state = &brw->tes.base; in gen8_upload_ds_state() local 38 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in gen8_upload_ds_state() 40 brw_vue_prog_data(stage_state->prog_data); in gen8_upload_ds_state() 42 brw_tes_prog_data(stage_state->prog_data); in gen8_upload_ds_state() 48 OUT_BATCH(stage_state->prog_offset); in gen8_upload_ds_state() 50 OUT_BATCH(SET_FIELD(DIV_ROUND_UP(stage_state->sampler_count, 4), in gen8_upload_ds_state() 55 OUT_RELOC64(stage_state->scratch_bo, in gen8_upload_ds_state() 57 ffs(stage_state->per_thread_scratch) - 11); in gen8_upload_ds_state()
|
D | gen7_vs_state.c | 36 const struct brw_stage_state *stage_state = &brw->vs.base; in upload_vs_state() local 37 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in upload_vs_state() 39 brw_vue_prog_data(stage_state->prog_data); in upload_vs_state() 52 OUT_BATCH(stage_state->prog_offset); in upload_vs_state() 54 ((ALIGN(stage_state->sampler_count, 4)/4) << in upload_vs_state() 60 OUT_RELOC(stage_state->scratch_bo, in upload_vs_state() 62 ffs(stage_state->per_thread_scratch) - 11); in upload_vs_state()
|
D | gen8_vs_state.c | 36 const struct brw_stage_state *stage_state = &brw->vs.base; in upload_vs_state() local 40 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in upload_vs_state() 42 brw_vue_prog_data(stage_state->prog_data); in upload_vs_state() 52 OUT_BATCH(stage_state->prog_offset); in upload_vs_state() 55 ((ALIGN(stage_state->sampler_count, 4) / 4) << in upload_vs_state() 61 OUT_RELOC64(stage_state->scratch_bo, in upload_vs_state() 63 ffs(stage_state->per_thread_scratch) - 11); in upload_vs_state()
|
D | gen8_hs_state.c | 33 const struct brw_stage_state *stage_state = &brw->tcs.base; in gen8_upload_hs_state() local 37 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in gen8_upload_hs_state() 39 brw_tcs_prog_data(stage_state->prog_data); in gen8_upload_hs_state() 44 OUT_BATCH(SET_FIELD(DIV_ROUND_UP(stage_state->sampler_count, 4), in gen8_upload_hs_state() 53 OUT_BATCH(stage_state->prog_offset); in gen8_upload_hs_state() 56 OUT_RELOC64(stage_state->scratch_bo, in gen8_upload_hs_state() 58 ffs(stage_state->per_thread_scratch) - 11); in gen8_upload_hs_state()
|
D | gen7_gs_state.c | 33 const struct brw_stage_state *stage_state = &brw->gs.base; in upload_gs_state() local 39 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in upload_gs_state() 41 brw_vue_prog_data(stage_state->prog_data); in upload_gs_state() 43 brw_gs_prog_data(stage_state->prog_data); in upload_gs_state() 63 OUT_BATCH(stage_state->prog_offset); in upload_gs_state() 64 OUT_BATCH(((ALIGN(stage_state->sampler_count, 4)/4) << in upload_gs_state() 70 OUT_RELOC(stage_state->scratch_bo, in upload_gs_state() 72 ffs(stage_state->per_thread_scratch) - 11); in upload_gs_state()
|
D | gen8_gs_state.c | 33 const struct brw_stage_state *stage_state = &brw->gs.base; in gen8_upload_gs_state() local 37 const struct brw_stage_prog_data *prog_data = stage_state->prog_data; in gen8_upload_gs_state() 39 brw_vue_prog_data(stage_state->prog_data); in gen8_upload_gs_state() 41 brw_gs_prog_data(stage_state->prog_data); in gen8_upload_gs_state() 53 OUT_BATCH(stage_state->prog_offset); in gen8_upload_gs_state() 56 ((ALIGN(stage_state->sampler_count, 4)/4) << in gen8_upload_gs_state() 62 OUT_RELOC64(stage_state->scratch_bo, in gen8_upload_gs_state() 64 ffs(stage_state->per_thread_scratch) - 11); in gen8_upload_gs_state()
|
D | gen6_wm_state.c | 43 struct brw_stage_state *stage_state = &brw->wm.base; in gen6_upload_wm_push_constants() local 52 stage_state, AUB_TRACE_WM_CONSTANTS); in gen6_upload_wm_push_constants() 75 const struct brw_stage_state *stage_state, in gen6_upload_wm_state() argument 108 OUT_BATCH(stage_state->push_const_offset + in gen6_upload_wm_state() 109 stage_state->push_const_size - 1); in gen6_upload_wm_state() 127 dw2 |= (ALIGN(stage_state->sampler_count, 4) / 4) << in gen6_upload_wm_state() 146 ksp0 = stage_state->prog_offset; in gen6_upload_wm_state() 147 ksp2 = stage_state->prog_offset + prog_data->prog_offset_2; in gen6_upload_wm_state() 224 OUT_RELOC(stage_state->scratch_bo, in gen6_upload_wm_state() 226 ffs(stage_state->per_thread_scratch) - 11); in gen6_upload_wm_state()
|
D | brw_binding_tables.c | 92 struct brw_stage_state *stage_state) in brw_upload_binding_table() argument 96 if (stage_state->bind_bo_offset == 0 && brw->gen < 9) in brw_upload_binding_table() 99 stage_state->bind_bo_offset = 0; in brw_upload_binding_table() 104 brw, &stage_state->surf_offset[ in brw_upload_binding_table() 113 gen7_update_binding_table_from_array(brw, stage_state->stage, in brw_upload_binding_table() 114 stage_state->surf_offset, in brw_upload_binding_table() 121 &stage_state->bind_bo_offset); in brw_upload_binding_table() 124 memcpy(bind, stage_state->surf_offset, in brw_upload_binding_table() 133 stage_state->bind_bo_offset = in brw_upload_binding_table() 142 (stage_state->bind_bo_offset >> 1) : in brw_upload_binding_table() [all …]
|
D | brw_vs_surface_state.c | 56 struct brw_stage_state *stage_state, in brw_upload_pull_constants() argument 63 if (stage_state->surf_offset[surf_index]) { in brw_upload_pull_constants() 64 stage_state->surf_offset[surf_index] = 0; in brw_upload_pull_constants() 97 &stage_state->surf_offset[surf_index]); in brw_upload_pull_constants() 113 struct brw_stage_state *stage_state = &brw->vs.base; in brw_upload_vs_pull_constants() local 124 stage_state, prog_data); in brw_upload_vs_pull_constants()
|
D | gen8_ps_state.c | 191 const struct brw_stage_state *stage_state, in gen8_upload_ps_state() argument 204 DIV_ROUND_UP(CLAMP(stage_state->sampler_count, 0, 16), 4); in gen8_upload_ps_state() 259 ksp0 = stage_state->prog_offset; in gen8_upload_ps_state() 260 ksp2 = stage_state->prog_offset + prog_data->prog_offset_2; in gen8_upload_ps_state() 268 OUT_RELOC64(stage_state->scratch_bo, in gen8_upload_ps_state() 270 ffs(stage_state->per_thread_scratch) - 11); in gen8_upload_ps_state()
|
D | gen7_wm_state.c | 149 const struct brw_stage_state *stage_state, in gen7_upload_ps_state() argument 162 DIV_ROUND_UP(CLAMP(stage_state->sampler_count, 0, 16), 4); in gen7_upload_ps_state() 231 ksp0 = stage_state->prog_offset; in gen7_upload_ps_state() 232 ksp2 = stage_state->prog_offset + prog_data->prog_offset_2; in gen7_upload_ps_state() 241 ffs(stage_state->per_thread_scratch) - 11); in gen7_upload_ps_state()
|
D | brw_gs.c | 84 struct brw_stage_state *stage_state = &brw->gs.base; in brw_codegen_gs_prog() local 159 brw_alloc_stage_scratch(brw, stage_state, in brw_codegen_gs_prog() 167 &stage_state->prog_offset, &brw->gs.base.prog_data); in brw_codegen_gs_prog() 200 struct brw_stage_state *stage_state = &brw->gs.base; in brw_upload_gs_prog() local 228 &stage_state->prog_offset, in brw_upload_gs_prog()
|
D | brw_sampler_state.c | 54 struct brw_stage_state *stage_state) in gen7_emit_sampler_state_pointers_xs() argument 66 stage_state->stage == MESA_SHADER_VERTEX) { in gen7_emit_sampler_state_pointers_xs() 71 OUT_BATCH(packet_headers[stage_state->stage] << 16 | (2 - 2)); in gen7_emit_sampler_state_pointers_xs() 72 OUT_BATCH(stage_state->sampler_offset); in gen7_emit_sampler_state_pointers_xs() 585 struct brw_stage_state *stage_state) in brw_upload_sampler_state_table() argument 588 uint32_t sampler_count = stage_state->sampler_count; in brw_upload_sampler_state_table() 601 32, &stage_state->sampler_offset); in brw_upload_sampler_state_table() 604 uint32_t batch_offset_for_sampler_state = stage_state->sampler_offset; in brw_upload_sampler_state_table() 619 if (brw->gen >= 7 && stage_state->stage != MESA_SHADER_COMPUTE) { in brw_upload_sampler_state_table() 621 gen7_emit_sampler_state_pointers_xs(brw, stage_state); in brw_upload_sampler_state_table()
|
D | brw_tes.c | 73 struct brw_stage_state *stage_state = &brw->tes.base; in brw_codegen_tes_prog() local 149 brw_alloc_stage_scratch(brw, stage_state, in brw_codegen_tes_prog() 157 &stage_state->prog_offset, &brw->tes.base.prog_data); in brw_codegen_tes_prog() 199 struct brw_stage_state *stage_state = &brw->tes.base; in brw_upload_tes_prog() local 213 &stage_state->prog_offset, in brw_upload_tes_prog()
|
D | brw_state.h | 184 struct brw_stage_state *stage_state); 310 const struct brw_stage_state *stage_state, 350 const struct brw_stage_state *stage_state, 373 struct brw_stage_state *stage_state, 379 const struct brw_stage_state *stage_state,
|
D | brw_program.c | 389 struct brw_stage_state *stage_state, in brw_alloc_stage_scratch() argument 393 if (stage_state->per_thread_scratch < per_thread_size) { in brw_alloc_stage_scratch() 394 stage_state->per_thread_scratch = per_thread_size; in brw_alloc_stage_scratch() 396 if (stage_state->scratch_bo) in brw_alloc_stage_scratch() 397 drm_intel_bo_unreference(stage_state->scratch_bo); in brw_alloc_stage_scratch() 399 stage_state->scratch_bo = in brw_alloc_stage_scratch()
|
D | brw_gs_surface_state.c | 41 struct brw_stage_state *stage_state = &brw->gs.base; in brw_upload_gs_pull_constants() local 55 stage_state, prog_data); in brw_upload_gs_pull_constants()
|
D | brw_tes_surface_state.c | 41 struct brw_stage_state *stage_state = &brw->tes.base; in brw_upload_tes_pull_constants() local 55 stage_state, prog_data); in brw_upload_tes_pull_constants()
|