summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-05-06 15:24:12 -0700
committerEric Anholt <[email protected]>2013-05-07 11:45:45 -0700
commit7a74808d7856e9749895afeb14125c463b2f4fd0 (patch)
treed570e5cb8a56b2158b360969a7ec9c00c53d3cae /src/mesa
parentf8c324268223611ce7d14c4109faed4ab0eb3798 (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel_copy.c3
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 5d80fed8705..34376ba544e 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);