Home | History | Annotate | Download | only in i965

Lines Matching refs:batch

38 blorp_emit_dwords(struct blorp_batch *batch, unsigned n)
40 assert(batch->blorp->driver_ctx == batch->driver_batch);
41 struct brw_context *brw = batch->driver_batch;
44 uint32_t *map = brw->batch.map_next;
45 brw->batch.map_next += n;
51 blorp_emit_reloc(struct blorp_batch *batch,
54 assert(batch->blorp->driver_ctx == batch->driver_batch);
55 struct brw_context *brw = batch->driver_batch;
57 uint32_t offset = (char *)location - (char *)brw->batch.map;
59 return intel_batchbuffer_reloc64(&brw->batch, address.buffer, offset,
64 return intel_batchbuffer_reloc(&brw->batch, address.buffer, offset,
72 blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset,
75 assert(batch->blorp->driver_ctx == batch->driver_batch);
76 struct brw_context *brw = batch->driver_batch;
79 drm_intel_bo_emit_reloc(brw->batch.bo, ss_offset,
84 void *reloc_ptr = (void *)brw->batch.map + ss_offset;
93 blorp_alloc_dynamic_state(struct blorp_batch *batch,
99 assert(batch->blorp->driver_ctx == batch->driver_batch);
100 struct brw_context *brw = batch->driver_batch;
106 blorp_alloc_binding_table(struct blorp_batch *batch, unsigned num_entries,
111 assert(batch->blorp->driver_ctx == batch->driver_batch);
112 struct brw_context *brw = batch->driver_batch;
127 blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size,
130 assert(batch->blorp->driver_ctx == batch->driver_batch);
131 struct brw_context *brw = batch->driver_batch;
150 .buffer = brw->batch.bo,
160 blorp_flush_range(struct blorp_batch *batch, void *start, size_t size)
162 /* All allocated states come from the batch which we will flush before we
168 blorp_emit_urb_config(struct blorp_batch *batch, unsigned vs_entry_size)
170 assert(batch->blorp->driver_ctx == batch->driver_batch);
171 struct brw_context *brw = batch->driver_batch;
187 genX(blorp_exec)(struct blorp_batch *batch,
190 assert(batch->blorp->driver_ctx == batch->driver_batch);
191 struct brw_context *brw = batch->driver_batch;
212 drm_intel_bo *saved_bo = brw->batch.bo;
213 uint32_t saved_used = USED_BATCH(brw->batch);
214 uint32_t saved_state_batch_offset = brw->batch.state_batch_offset;
236 blorp_emit(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) {
241 blorp_exec(batch, params);
243 /* Make sure we didn't wrap the batch unintentionally, and make sure we
246 assert(brw->batch.bo == saved_bo);
247 assert((USED_BATCH(brw->batch) - saved_used) * 4 +
248 (saved_state_batch_offset - brw->batch.state_batch_offset) <
255 /* Check if the blorp op we just did would make our batch likely to fail to
256 * map all the BOs into the GPU at batch exec time later. If so, flush the
257 * batch and try again with nothing else in the batch.
259 if (dri_bufmgr_check_aperture_space(&brw->batch.bo, 1)) {