Mesa (master): i965: Count occlusion query samples for CopyPixels using the 2D engine.

Eric Anholt anholt at kemper.freedesktop.org
Tue May 7 19:06:26 UTC 2013


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon May  6 15:24:12 2013 -0700

i965: Count occlusion query samples for CopyPixels using the 2D engine.

We accidentally "fixed" the piglit test for this when introducing Y
tiling, since this path stopped being executed.  In reenabling this path
for Y tiling, we ended up regressing it again, so just fix it.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59439
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/intel/intel_pixel_copy.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_pixel_copy.c b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
index 5d80fed..34376ba 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
@@ -213,6 +213,9 @@ do_blit_copypixels(struct gl_context * ctx,
       return false;
    }
 
+   if (ctx->Query.CurrentOcclusionObject)
+      ctx->Query.CurrentOcclusionObject->Result += width * height;
+
 out:
    intel_check_front_buffer_rendering(intel);
 




More information about the mesa-commit mailing list