Browse Source

Add an assert

tags/texman_0_1_20060325
Keith Whitwell 20 years ago
parent
commit
b6759e2be7
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/mesa/drivers/dri/i915/intel_batchbuffer.h

+ 6
- 1
src/mesa/drivers/dri/i915/intel_batchbuffer.h View File

@@ -104,7 +104,12 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch,
/* Here are the crusty old macros, to be removed:
*/
#define BATCH_LOCALS
#define BEGIN_BATCH(n, flags) intel_batchbuffer_require_space(intel->batch, n*4, flags)

#define BEGIN_BATCH(n, flags) do { \
assert(!intel->prim.flush); \
intel_batchbuffer_require_space(intel->batch, n*4, flags); \
} while (0)

#define OUT_BATCH(d) intel_batchbuffer_emit_dword(intel->batch, d)
#define OUT_RELOC(buf,flags,delta) intel_batchbuffer_emit_reloc(intel->batch, buf, flags, delta)
#define ADVANCE_BATCH() do { } while(0)

Loading…
Cancel
Save