[Beignet] [V2 1/4] Fix gpgpu node related bug

Pan Xiuli xiuli.pan at intel.com
Mon Oct 12 21:51:13 PDT 2015


This should be a typo, we should wait for the gpgpu and create
node only if the batch buffer is busy.
---
 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



More information about the Beignet mailing list