i915g: Don't invert signalled/unsignalled fences
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 19 Jan 2012 03:23:48 +0000 (19:23 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 19 Jan 2012 03:25:41 +0000 (19:25 -0800)
NOTE: This is a candidate for the 8.0 branch.

src/gallium/drivers/i915/i915_screen.c

index 5444425d5ea445886f4175de60213db9832a4602..6fc854f20f15304493d7b811a9aba4acd1c3fd9a 100644 (file)
@@ -368,7 +368,7 @@ i915_fence_signalled(struct pipe_screen *screen,
 {
    struct i915_screen *is = i915_screen(screen);
 
-   return is->iws->fence_signalled(is->iws, fence) == 0;
+   return is->iws->fence_signalled(is->iws, fence) == 1;
 }
 
 static boolean
@@ -378,7 +378,7 @@ i915_fence_finish(struct pipe_screen *screen,
 {
    struct i915_screen *is = i915_screen(screen);
 
-   return is->iws->fence_finish(is->iws, fence) == 0;
+   return is->iws->fence_finish(is->iws, fence) == 1;
 }