[Mesa-dev] [PATCH 1/3] i965: Count occlusion query samples for CopyPixels using the 2D engine.

Ian Romanick idr at freedesktop.org
Tue May 7 10:46:29 PDT 2013


On 05/06/2013 04:41 PM, Eric Anholt wrote:
> 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.

Patch 1 and 2 are

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

I'll defer to Ken on patch 3.

> ---
>   src/mesa/drivers/dri/intel/intel_pixel_copy.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> 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-dev mailing list