Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345064
b: refs/heads/master
c: 0a46fb5
h: refs/heads/master
v: v3
  • Loading branch information
Maarten Lankhorst authored and Dave Airlie committed Nov 7, 2012
1 parent 86c4adc commit e3ebd16
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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: a9dbfff1cbe5972ae0ef07b51530a70240ec9f2c
refs/heads/master: 0a46fb5f41dbc7fae20764556ec7bf742cc0763a
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ void radeon_vm_bo_invalidate(struct radeon_device *rdev,
{
struct radeon_bo_va *bo_va;

BUG_ON(!atomic_read(&bo->tbo.reserved));
BUG_ON(!radeon_bo_is_reserved(bo));
list_for_each_entry(bo_va, &bo->va, bo_list) {
bo_va->valid = false;
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/gpu/drm/radeon/radeon_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ int radeon_bo_get_surface_reg(struct radeon_bo *bo)
int steal;
int i;

BUG_ON(!atomic_read(&bo->tbo.reserved));
BUG_ON(!radeon_bo_is_reserved(bo));

if (!bo->tiling_flags)
return 0;
Expand Down Expand Up @@ -510,7 +510,7 @@ void radeon_bo_get_tiling_flags(struct radeon_bo *bo,
uint32_t *tiling_flags,
uint32_t *pitch)
{
BUG_ON(!atomic_read(&bo->tbo.reserved));
BUG_ON(!radeon_bo_is_reserved(bo));
if (tiling_flags)
*tiling_flags = bo->tiling_flags;
if (pitch)
Expand All @@ -520,7 +520,7 @@ void radeon_bo_get_tiling_flags(struct radeon_bo *bo,
int radeon_bo_check_tiling(struct radeon_bo *bo, bool has_moved,
bool force_drop)
{
BUG_ON(!atomic_read(&bo->tbo.reserved));
BUG_ON(!radeon_bo_is_reserved(bo));

if (!(bo->tiling_flags & RADEON_TILING_SURFACE))
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static inline unsigned long radeon_bo_size(struct radeon_bo *bo)

static inline bool radeon_bo_is_reserved(struct radeon_bo *bo)
{
return !!atomic_read(&bo->tbo.reserved);
return ttm_bo_is_reserved(&bo->tbo);
}

static inline unsigned radeon_bo_ngpu_pages(struct radeon_bo *bo)
Expand Down

0 comments on commit e3ebd16

Please sign in to comment.