Mesa (master): intel: Remove the unrelaxed relocation assertion

Chris Wilson ickle at kemper.freedesktop.org
Wed Mar 30 14:13:20 UTC 2011


Module: Mesa
Branch: master
Commit: 6584d0cd4fa3a3255a4c0962f31338601df705cb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6584d0cd4fa3a3255a4c0962f31338601df705cb

Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Mar 30 15:10:50 2011 +0100

intel: Remove the unrelaxed relocation assertion

Now that we purposefully generate delta that point outside of the target
buffer, the assertion has outlived its usefulness.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

---

 src/mesa/drivers/dri/intel/intel_batchbuffer.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
index 42b4f92..53d6e7c 100644
--- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c
@@ -176,8 +176,6 @@ intel_batchbuffer_emit_reloc(struct intel_context *intel,
 {
    int ret;
 
-   assert(delta < buffer->size);
-
    ret = drm_intel_bo_emit_reloc(intel->batch.bo, 4*intel->batch.used,
 				 buffer, delta,
 				 read_domains, write_domain);
@@ -203,8 +201,6 @@ intel_batchbuffer_emit_reloc_fenced(struct intel_context *intel,
 {
    int ret;
 
-   assert(delta < buffer->size);
-
    ret = drm_intel_bo_emit_reloc_fence(intel->batch.bo, 4*intel->batch.used,
 				       buffer, delta,
 				       read_domains, write_domain);




More information about the mesa-commit mailing list