r300g: actually implement the is_buffer_busy hook the right way
authorMarek Olšák <maraeo@gmail.com>
Tue, 15 Feb 2011 02:54:24 +0000 (03:54 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 15 Feb 2011 03:00:47 +0000 (04:00 +0100)
Ooops.

src/gallium/winsys/radeon/drm/radeon_drm_bo.c

index e3c6195d5f6360b1d55f45e2c6f0d432978a04a8..f3c4002883dc73e46a60df7835cc331f5a0e1b4b 100644 (file)
@@ -304,14 +304,14 @@ static boolean radeon_bomgr_is_buffer_busy(struct pb_manager *_mgr,
    struct radeon_bo *bo = radeon_bo(_buf);
 
    if (radeon_bo_is_referenced_by_any_cs(bo)) {
-       return FALSE;
+       return TRUE;
    }
 
    if (radeon_bo_is_busy((struct r300_winsys_bo*)bo)) {
-       return FALSE;
+       return TRUE;
    }
 
-   return TRUE;
+   return FALSE;
 }
 
 static void radeon_bomgr_destroy(struct pb_manager *_mgr)