summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2015-10-13 12:51:13 +0800
committerYang Rong <rong.r.yang@intel.com>2015-10-13 14:57:53 +0800
commit192feb51bdb4b916f56c7310276ad0d3213bf8cd (patch)
tree65c405306289d8d034f26465999746bf288a16ba
parent15ced6f6ed456f63401ac053c5ec109524af8ca8 (diff)
Fix gpgpu node related bug
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 <xiuli.pan@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
-rw-r--r--src/intel/intel_gpgpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index 901bd98b..60d318ad 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);