r300g: fix query result of GPU_FINISHED
authorMarek Olšák <maraeo@gmail.com>
Thu, 10 Nov 2011 21:58:34 +0000 (22:58 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 10 Nov 2011 21:58:34 +0000 (22:58 +0100)
src/gallium/drivers/r300/r300_query.c

index e986276d8d4c674830e1eba4fbf9e191e6a7c381..8f7de79538da1db11b24c67c1449f3f23046769a 100644 (file)
@@ -149,7 +149,7 @@ static boolean r300_get_query_result(struct pipe_context* pipe,
             r300->rws->buffer_wait(q->buf, RADEON_USAGE_READWRITE);
             *r = TRUE;
         } else {
-            *r = r300->rws->buffer_is_busy(q->buf, RADEON_USAGE_READWRITE);
+            *r = !r300->rws->buffer_is_busy(q->buf, RADEON_USAGE_READWRITE);
         }
         return *r;
     }