This should be a typo, we should wait for the gpgpu and create node only if the batch buffer is busy.
Signed-off-by: Pan Xiuli <[email protected]> --- src/intel/intel_gpgpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index 901bd98..60d318a 100644 --- a/src/intel/intel_gpgpu.c +++ b/src/intel/intel_gpgpu.c @@ -187,7 +187,7 @@ intel_gpgpu_delete(intel_gpgpu_t *gpgpu) node = p->next; while(node) { if(node->gpgpu->batch && node->gpgpu->batch->buffer && - !drm_intel_bo_busy(node->gpgpu->batch->buffer)) { + drm_intel_bo_busy(node->gpgpu->batch->buffer)) { p->next = node->next; intel_gpgpu_delete_finished(node->gpgpu); cl_free(node); -- 2.1.4 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
