From e22a1005c0913b404ae82650cdc4f58bcbd5445b Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 22 Jul 2011 19:22:50 +0200 Subject: winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs --- src/gallium/winsys/radeon/drm/radeon_drm_cs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys') 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); -- cgit v1.2.3