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