Lines Matching refs:batch
37 i915_winsys_batchbuffer_space(struct i915_winsys_batchbuffer *batch)
39 return batch->size - (batch->ptr - batch->map);
43 i915_winsys_batchbuffer_check(struct i915_winsys_batchbuffer *batch,
46 return dwords * 4 <= i915_winsys_batchbuffer_space(batch);
50 i915_winsys_batchbuffer_dword_unchecked(struct i915_winsys_batchbuffer *batch,
53 *(unsigned *)batch->ptr = dword;
54 batch->ptr += 4;
58 i915_winsys_batchbuffer_float(struct i915_winsys_batchbuffer *batch,
63 assert (i915_winsys_batchbuffer_space(batch) >= 4);
64 i915_winsys_batchbuffer_dword_unchecked(batch, uif.ui);
68 i915_winsys_batchbuffer_dword(struct i915_winsys_batchbuffer *batch,
71 assert (i915_winsys_batchbuffer_space(batch) >= 4);
72 i915_winsys_batchbuffer_dword_unchecked(batch, dword);
76 i915_winsys_batchbuffer_write(struct i915_winsys_batchbuffer *batch,
80 assert (i915_winsys_batchbuffer_space(batch) >= size);
82 memcpy(batch->ptr, data, size);
83 batch->ptr += size;
87 i915_winsys_validate_buffers(struct i915_winsys_batchbuffer *batch,
91 return batch->iws->validate_buffers(batch, buffers, num_of_buffers);
95 i915_winsys_batchbuffer_reloc(struct i915_winsys_batchbuffer *batch,
100 return batch->iws->batchbuffer_reloc(batch, buffer, usage, offset, fenced);