winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs
authorMarek Olšák <maraeo@gmail.com>
Fri, 22 Jul 2011 17:22:50 +0000 (19:22 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 25 Jul 2011 21:10:40 +0000 (23:10 +0200)
src/gallium/winsys/radeon/drm/radeon_drm_cs.h

index b8b170adcbe0d9fdd0ee1dc131a81be0bcce77d4..ea2a820b30a0d560b073c31caedc5ca7665cc36c 100644 (file)
@@ -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);