Home | History | Annotate | Download | only in i915

Lines Matching refs:batch

43    intel->batch.cpu_map = malloc(intel->maxBatchSize);
44 intel->batch.map = intel->batch.cpu_map;
50 if (intel->batch.last_bo != NULL) {
51 drm_intel_bo_unreference(intel->batch.last_bo);
52 intel->batch.last_bo = NULL;
54 intel->batch.last_bo = intel->batch.bo;
56 intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer",
59 intel->batch.reserved_space = BATCH_RESERVED;
60 intel->batch.used = 0;
66 free(intel->batch.cpu_map);
67 drm_intel_bo_unreference(intel->batch.last_bo);
68 drm_intel_bo_unreference(intel->batch.bo);
75 struct intel_batchbuffer *batch = &intel->batch;
82 ret = drm_intel_bo_map(batch->bo, false);
85 batch->bo->virtual,
86 batch->bo->offset,
87 batch->used);
94 batch->map,
95 batch->bo->offset,
96 batch->used);
104 drm_intel_bo_unmap(batch->bo);
116 struct intel_batchbuffer *batch = &intel->batch;
119 ret = drm_intel_bo_subdata(batch->bo, 0, 4*batch->used, batch->map);
125 ret = drm_intel_bo_mrb_exec(batch->bo, 4 * batch->used, NULL, 0, 0,
148 if (intel->batch.used == 0)
152 intel->first_post_swapbuffers_batch = intel->batch.bo;
158 4*intel->batch.used);
160 intel->batch.reserved_space = 0;
167 if (intel->batch.used & 1) {
181 drm_intel_bo_wait_rendering(intel->batch.bo);
202 ret = drm_intel_bo_emit_reloc(intel->batch.bo, 4*intel->batch.used,
227 ret = drm_intel_bo_emit_reloc_fence(intel->batch.bo, 4*intel->batch.used,
249 memcpy(intel->batch.map + intel->batch.used, data, bytes);
250 intel->batch.used += bytes >> 2;