]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/gpu/drm/radeon/radeon_ring.c
drm/radeon/kms: free fence IB if it wasn't emited at IB free time
[net-next-2.6.git] / drivers / gpu / drm / radeon / radeon_ring.c
index 694799f6fac1e7fd75c60d79398216d34e249de2..6579eb4c1f287007a3f22179c4593db621d12228 100644 (file)
@@ -100,6 +100,8 @@ void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib **ib)
        if (tmp == NULL) {
                return;
        }
+       if (!tmp->fence->emited)
+               radeon_fence_unref(&tmp->fence);
        mutex_lock(&rdev->ib_pool.mutex);
        tmp->free = true;
        mutex_unlock(&rdev->ib_pool.mutex);