summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_batchbuffer.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-03-05 12:40:45 -0800
committerEric Anholt <[email protected]>2010-03-05 15:23:30 -0800
commit342a7f23bf76e21b049cba9ab97bf4aa640a5bfd (patch)
tree942d33931f6d064c6df4b5b7b102ebf7cb3f1f22 /src/mesa/drivers/dri/intel/intel_batchbuffer.h
parent8a9d8bd52af4414e59320c68238b8929edf3ff80 (diff)
intel: Move the assertions about reloc delta from the macros to the function.
Cuts another 1800 bytes from the driver.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_batchbuffer.h')
-rw-r--r--src/mesa/drivers/dri/intel/intel_batchbuffer.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.h b/src/mesa/drivers/dri/intel/intel_batchbuffer.h
index 860aa1327a1..b7625b5b0d9 100644
--- a/src/mesa/drivers/dri/intel/intel_batchbuffer.h
+++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.h
@@ -128,12 +128,10 @@ static INLINE uint32_t float_as_int(float f)
float_as_int(f))
#define OUT_RELOC(buf, read_domains, write_domain, delta) do { \
- assert((unsigned) (delta) < buf->size); \
intel_batchbuffer_emit_reloc(intel->batch, buf, \
read_domains, write_domain, delta); \
} while (0)
#define OUT_RELOC_FENCED(buf, read_domains, write_domain, delta) do { \
- assert((unsigned) (delta) < buf->size); \
intel_batchbuffer_emit_reloc_fenced(intel->batch, buf, \
read_domains, write_domain, delta); \
} while (0)