i915: Fix compile on linux-dri-debug
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#define I915_BATCH_H
|
||||
|
||||
#include "i915_winsys.h"
|
||||
#include "i915_debug.h"
|
||||
|
||||
struct i915_batchbuffer
|
||||
{
|
||||
@@ -110,7 +109,6 @@ i915_batchbuffer_flush( struct i915_batchbuffer *batch,
|
||||
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)
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "i915_blit.h"
|
||||
#include "i915_reg.h"
|
||||
#include "i915_batch.h"
|
||||
#include "i915_debug.h"
|
||||
|
||||
#define FILE_DEBUG_FLAG DEBUG_BLIT
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ intel_batchbuffer_space(struct intel_batchbuffer *batch)
|
||||
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;
|
||||
@@ -100,7 +100,7 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch,
|
||||
{
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user