Searched refs:USED_BATCH (Results 1 – 5 of 5) sorted by relevance
79 #define USED_BATCH(batch) ((uintptr_t)((batch).map_next - (batch).map)) macro101 - USED_BATCH(*batch) * 4; in intel_batchbuffer_space()127 brw->batch.emit = USED_BATCH(brw->batch); in intel_batchbuffer_begin()137 unsigned int _n = USED_BATCH(*batch) - batch->emit; in intel_batchbuffer_advance()
104 if (USED_BATCH(brw->batch) == 0) in intel_batchbuffer_reset_to_saved()158 USED_BATCH(*batch)); in do_batch_dump()167 USED_BATCH(*batch)); in do_batch_dump()330 ret = drm_intel_bo_subdata(batch->bo, 0, 4 * USED_BATCH(*batch), batch->map); in do_flush_locked()356 ret = drm_intel_bo_mrb_exec(batch->bo, 4 * USED_BATCH(*batch), in do_flush_locked()360 4 * USED_BATCH(*batch), flags); in do_flush_locked()387 if (USED_BATCH(brw->batch) == 0) in _intel_batchbuffer_flush()396 int bytes_for_commands = 4 * USED_BATCH(brw->batch); in _intel_batchbuffer_flush()412 if (USED_BATCH(brw->batch) & 1) { in _intel_batchbuffer_flush()
91 4 * USED_BATCH(brw->batch)); in brw_annotate_aub()140 offset < 4 * USED_BATCH(*batch) + batch->reserved_space) { in __brw_state_batch()
253 if ((USED_BATCH(brw->batch) & 15) > 12) { in brw_upload_urb_fence()254 int pad = 16 - (USED_BATCH(brw->batch) & 15); in brw_upload_urb_fence()
213 uint32_t saved_used = USED_BATCH(brw->batch); in genX()247 assert((USED_BATCH(brw->batch) - saved_used) * 4 + in genX()