radeonsi: fix int->bool conversion in fence_signalled
authorMarek Olšák <maraeo@gmail.com>
Fri, 4 Jan 2013 11:40:33 +0000 (12:40 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 4 Jan 2013 11:42:03 +0000 (12:42 +0100)
src/gallium/drivers/radeonsi/radeonsi_pipe.c

index 4bab97a7473789115b50e1df1deb93c9a62fca05..6eee8825161e0d9cfac8b3976728ce576ff16a5d 100644 (file)
@@ -545,7 +545,7 @@ static boolean r600_fence_signalled(struct pipe_screen *pscreen,
        struct r600_screen *rscreen = (struct r600_screen *)pscreen;
        struct r600_fence *rfence = (struct r600_fence*)fence;
 
-       return rscreen->fences.data[rfence->index];
+       return rscreen->fences.data[rfence->index] != 0;
 }
 
 static boolean r600_fence_finish(struct pipe_screen *pscreen,