blob: 1fa2719845850c875e306f19615ff517d49e83a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef INTEL_BATCHBUFFER_H
#define INTEL_BATCHBUFFER_H
#include "intel_drm/intel_be_batchbuffer.h"
/*
* Need to redefine the BATCH defines
*/
#undef BEGIN_BATCH
#define BEGIN_BATCH(dwords, relocs) \
(i915_batchbuffer_check(&intel->base.batch->base, dwords, relocs))
#undef OUT_BATCH
#define OUT_BATCH(d) \
i915_batchbuffer_dword(&intel->base.batch->base, d)
#undef OUT_RELOC
#define OUT_RELOC(buf,flags,mask,delta) do { \
assert((delta) >= 0); \
intel_be_offset_relocation(intel->base.batch, delta, buf, flags, mask); \
} while (0)
#endif
|