r600g: fix int->bool conversion in fence_signalled
authorMarek Olšák <maraeo@gmail.com>
Fri, 4 Jan 2013 11:40:04 +0000 (12:40 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 4 Jan 2013 11:42:03 +0000 (12:42 +0100)
NOTE: This is a candidate for the stable branches.

src/gallium/drivers/r600/r600_pipe.c

index 65dcbf8a5e9ecb7f2e4a708ba837b5bca93e06e6..83d474b04cc61f866ff02012fd630acb839cd2f1 100644 (file)
@@ -758,7 +758,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,