summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-07-22 19:22:50 +0200
committerMarek Olšák <[email protected]>2011-07-25 23:10:40 +0200
commite22a1005c0913b404ae82650cdc4f58bcbd5445b (patch)
tree05f804b6e7d68dc29d4d0a9ac62a0c6a9d390967 /src/gallium
parent67c995e0f1b50ff08784e97482ca3e9e0bfd42ca (diff)
winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_cs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
index b8b170adcbe..ea2a820b30a 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.h
@@ -112,7 +112,7 @@ radeon_bo_is_referenced_by_cs_for_write(struct radeon_drm_cs *cs,
static INLINE boolean
radeon_bo_is_referenced_by_any_cs(struct radeon_bo *bo)
{
- return bo->num_cs_references;
+ return bo->num_cs_references != 0;
}
void radeon_drm_cs_sync_flush(struct radeon_drm_cs *cs);