Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228562
b: refs/heads/master
c: 23c45e8
h: refs/heads/master
v: v3
  • Loading branch information
Francisco Jerez authored and Ben Skeggs committed Dec 3, 2010
1 parent 25fc9e9 commit 8ef2dfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87a326a38589e1c919af5f86a59cd571ff0aa831
refs/heads/master: 23c45e8ed203f933753fb66a6290c4ff853eb7bb
10 changes: 7 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nouveau_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,13 +942,17 @@ nouveau_ttm_fault_reserve_notify(struct ttm_buffer_object *bo)
void
nouveau_bo_fence(struct nouveau_bo *nvbo, struct nouveau_fence *fence)
{
spin_lock(&nvbo->bo.bdev->fence_lock);
__nouveau_fence_unref(&nvbo->bo.sync_obj);
struct nouveau_fence *old_fence;

if (likely(fence))
nvbo->bo.sync_obj = nouveau_fence_ref(fence);
nouveau_fence_ref(fence);

spin_lock(&nvbo->bo.bdev->fence_lock);
old_fence = nvbo->bo.sync_obj;
nvbo->bo.sync_obj = fence;
spin_unlock(&nvbo->bo.bdev->fence_lock);

nouveau_fence_unref(&old_fence);
}

struct ttm_bo_driver nouveau_bo_driver = {
Expand Down

0 comments on commit 8ef2dfe

Please sign in to comment.