i915g: Return the max result for the fake occlusion queries.
authorStéphane Marchesin <marcheu@chromium.org>
Mon, 27 Jun 2011 02:38:12 +0000 (19:38 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Mon, 27 Jun 2011 09:05:59 +0000 (02:05 -0700)
src/gallium/drivers/i915/i915_query.c

index 77ed946..c886df7 100644 (file)
@@ -69,7 +69,8 @@ static boolean i915_get_query_result(struct pipe_context *ctx,
 {
    uint64_t *result = (uint64_t*)vresult;
 
-   *result = 0;
+   /* 2* viewport Max */
+   *result = 512*1024*1024;
    return TRUE;
 }