From: Marek Olšák Date: Fri, 22 Jul 2011 17:22:50 +0000 (+0200) Subject: winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e22a1005c0913b404ae82650cdc4f58bcbd5445b;p=mesa.git winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs --- 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);