00001 #ifndef INTEL_BATCHBUFFER_H
00002 #define INTEL_BATCHBUFFER_H
00003
00004 #include "intel_be_batchbuffer.h"
00005
00006
00007
00008
00009
00010 #undef BEGIN_BATCH
00011 #define BEGIN_BATCH(dwords, relocs) \
00012 (i915_batchbuffer_check(&intel->base.batch->base, dwords, relocs))
00013
00014 #undef OUT_BATCH
00015 #define OUT_BATCH(d) \
00016 i915_batchbuffer_dword(&intel->base.batch->base, d)
00017
00018 #undef OUT_RELOC
00019 #define OUT_RELOC(buf,flags,mask,delta) do { \
00020 assert((delta) >= 0); \
00021 intel_be_offset_relocation(intel->base.batch, delta, buf, flags, mask); \
00022 } while (0)
00023
00024 #endif