[Beignet] [PATCH 1/2] GPGPU delete should using nodes when busy

Pan Xiuli xiuli.pan at intel.com
Mon Sep 21 01:41:51 PDT 2015


This may be a typo, but won't cause anything wrong serious(add non-busy gpgpu into nodes).
Now it can make the gpgpu nodes work as expected.

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 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..7317157 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -210,7 +210,7 @@ intel_gpgpu_delete(intel_gpgpu_t *gpgpu)
     return;
 
   if(gpgpu->batch && gpgpu->batch->buffer &&
-     !drm_intel_bo_busy(gpgpu->batch->buffer)) {
+     drm_intel_bo_busy(gpgpu->batch->buffer)) {
     TRY_ALLOC_NO_ERR (node, CALLOC(struct intel_gpgpu_node));
     node->gpgpu = gpgpu;
     node->next = NULL;
-- 
2.1.4



More information about the Beignet mailing list