[Beignet] [PATCH 3/4] Remove intel_gpgpu_check_binded_buf_address()
Zhenyu Wang
zhenyuw at linux.intel.com
Tue Oct 21 20:27:57 PDT 2014
On recent kernel with full PPGTT support, we can possibly bind buffer
offset with 0, but intel_gpgpu_check_binded_buf_address() always thinks
it's invalid, which is not true. So simply remove the check.
Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
---
src/intel/intel_gpgpu.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index 167d8d9..105a077 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -694,14 +694,6 @@ intel_gpgpu_batch_reset(intel_gpgpu_t *gpgpu, size_t sz)
{
return intel_batchbuffer_reset(gpgpu->batch, sz);
}
-/* check we do not get a 0 starting address for binded buf */
-static void
-intel_gpgpu_check_binded_buf_address(intel_gpgpu_t *gpgpu)
-{
- uint32_t i;
- for (i = 0; i < gpgpu->binded_n; ++i)
- assert(gpgpu->binded_buf[i]->offset != 0);
-}
static void
intel_gpgpu_flush_batch_buffer(intel_batchbuffer_t *batch)
@@ -717,7 +709,6 @@ intel_gpgpu_flush(intel_gpgpu_t *gpgpu)
if (!gpgpu->batch || !gpgpu->batch->buffer)
return;
intel_gpgpu_flush_batch_buffer(gpgpu->batch);
- intel_gpgpu_check_binded_buf_address(gpgpu);
}
static int
--
2.1.1
More information about the Beignet
mailing list