#define I915_BATCH_H
#include "i915_winsys.h"
-#include "i915_debug.h"
struct i915_batchbuffer
{
i915_batchbuffer_reloc( i915->batch, buf, flags, delta )
#define FLUSH_BATCH(fence) do { \
- if (0) i915_dump_batchbuffer( i915 ); \
i915->winsys->batch_flush( i915->winsys, fence ); \
i915->hardware_dirty = ~0; \
} while (0)
static INLINE void
intel_batchbuffer_emit_dword(struct intel_batchbuffer *batch, GLuint dword)
{
- assert(batch->map);
+ assert(batch->base.map);
assert(intel_batchbuffer_space(batch) >= 4);
*(GLuint *) (batch->base.ptr) = dword;
batch->base.ptr += 4;
{
struct _DriFenceObject *fence;
- assert(sz < batch->size - 8);
+ assert(sz < batch->base.size - 8);
if (intel_batchbuffer_space(batch) < sz ||
(batch->flags != 0 && flags != 0 && batch->flags != flags)) {
fence = intel_batchbuffer_flush(batch);