i915: Fix compile on linux-dri-debug
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 3 Jun 2008 10:35:01 +0000 (12:35 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 3 Jun 2008 10:35:01 +0000 (12:35 +0200)
src/gallium/drivers/i915simple/i915_batch.h
src/gallium/drivers/i915simple/i915_blit.c
src/gallium/winsys/dri/intel/intel_batchbuffer.h

index 987d0b4d2841ac5cd5e350a72fd9e33a1e9079a6..45bf4f4028feb6357308fd4e242f497c540699e8 100644 (file)
@@ -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)
index b500ff36a8bfa2b5f9d9d3720d060b1b466d5657..22f91fab926f547f582908fcfae44afd4d084896 100644 (file)
@@ -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
 
index dcb2121ddfd6f9d1a6819e1a6fd9aebe12937681..abb7a624f5c9329434b814bcb15947323fba34ae 100644 (file)
@@ -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);