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 <[email protected]> --- 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 6cd73d6..b7958d5 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 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
