Mesa (master): i915g: Return the max result for the fake occlusion queries.

Stephane Marchesin marcheu at kemper.freedesktop.org
Mon Jun 27 09:06:04 UTC 2011


Module: Mesa
Branch: master
Commit: 9d29d48bb05907180881340862e2ebcd271af63d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d29d48bb05907180881340862e2ebcd271af63d

Author: Stéphane Marchesin <marcheu at chromium.org>
Date:   Sun Jun 26 19:38:12 2011 -0700

i915g: Return the max result for the fake occlusion queries.

---

 src/gallium/drivers/i915/i915_query.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_query.c b/src/gallium/drivers/i915/i915_query.c
index 77ed946..c886df7 100644
--- a/src/gallium/drivers/i915/i915_query.c
+++ b/src/gallium/drivers/i915/i915_query.c
@@ -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;
 }
 




More information about the mesa-commit mailing list