summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2015-12-22 15:26:56 +0800
committerYang Rong <rong.r.yang@intel.com>2015-12-23 14:34:49 +0800
commit2f5450fac39a723ba355983d601e1eb59f626fe8 (patch)
tree2a87abe2ec7375b6b134b5411348240a031ea055 /src
parent8398f211d12f2caef263300f6f23c2c2a8bb931c (diff)
Driver: Fix GPGPU delete bug
The first patch 192feb51 has something wrong in rebase and takes new bug in. Now fix both the original bug and revert the wrong patch. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/intel/intel_gpgpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index d1038e14..7e379a21 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -190,7 +190,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);
@@ -213,7 +213,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;