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 77ed946c5c579430068d273120e03ae0943518a8..c886df74bad5564687d9e03e3c2be16a9d1baa16 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;
 }