i965: Count occlusion query samples for CopyPixels using the 2D engine.
authorEric Anholt <eric@anholt.net>
Mon, 6 May 2013 22:24:12 +0000 (15:24 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 May 2013 18:45:45 +0000 (11:45 -0700)
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@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_pixel_copy.c

index 5d80fed87054194889b5e7899b7b116745bc8e90..34376ba544e76492abc6fcf05e10cb88d9b53a69 100644 (file)
@@ -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);