diff options
author | Marek Olšák <[email protected]> | 2011-07-22 19:20:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-07-25 23:10:40 +0200 |
commit | 67c995e0f1b50ff08784e97482ca3e9e0bfd42ca (patch) | |
tree | 6558a1c7790f382d215773510ff7e43107f034bb /src/gallium/winsys/radeon/drm | |
parent | ce9daf6f0bda857c9ee5d021cfb444db6376bfe7 (diff) |
winsys/radeon: little change in radeon_bo_is_referenced_by_cs
Diffstat (limited to 'src/gallium/winsys/radeon/drm')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_cs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h index 339beedc6ab..b8b170adcbe 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h @@ -88,8 +88,9 @@ static INLINE boolean radeon_bo_is_referenced_by_cs(struct radeon_drm_cs *cs, struct radeon_bo *bo) { - return bo->num_cs_references == bo->rws->num_cs || - (bo->num_cs_references && radeon_get_reloc(cs->csc, bo) != -1); + int num_refs = bo->num_cs_references; + return num_refs == bo->rws->num_cs || + (num_refs && radeon_get_reloc(cs->csc, bo) != -1); } static INLINE boolean |